|
|
@@ -141,18 +141,25 @@ menu "FreeRTOS"
|
|
|
|
|
|
choice FREERTOS_ASSERT
|
|
|
prompt "FreeRTOS assertions"
|
|
|
- default FREERTOS_ASSERT_FAIL_ABORT
|
|
|
+ default FREERTOS_ASSERT_FAIL_ABORT if !COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE
|
|
|
+ default FREERTOS_ASSERT_DISABLE if COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE
|
|
|
help
|
|
|
Failed FreeRTOS configASSERT() assertions can be configured to
|
|
|
behave in different ways.
|
|
|
|
|
|
+ By default these behave the same as the global project assert settings.
|
|
|
+
|
|
|
config FREERTOS_ASSERT_FAIL_ABORT
|
|
|
bool "abort() on failed assertions"
|
|
|
+ depends on !COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE
|
|
|
help
|
|
|
If a FreeRTOS configASSERT() fails, FreeRTOS will abort() and
|
|
|
halt execution. The panic handler can be configured to handle
|
|
|
the outcome of an abort() in different ways.
|
|
|
|
|
|
+ If assertions are disabled for the entire project, they are also
|
|
|
+ disabled in FreeRTOS and this option is unavailable.
|
|
|
+
|
|
|
config FREERTOS_ASSERT_FAIL_PRINT_CONTINUE
|
|
|
bool "Print and continue failed assertions"
|
|
|
help
|