cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(stm32_zephyr_deadlock)
option(FIX_LOCK_ORDER "Acquire both locks in the same order" OFF)
target_sources(app PRIVATE src/main.c)
if(FIX_LOCK_ORDER)
  target_compile_definitions(app PRIVATE FIX_LOCK_ORDER=1)
endif()
