Kconfig 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. menu "Hardware Abstraction Layer (HAL) and Low Level (LL)"
  2. choice HAL_DEFAULT_ASSERTION_LEVEL
  3. bool "Default HAL assertion level"
  4. default HAL_ASSERTION_EQUALS_SYSTEM
  5. help
  6. Set the assert behavior / level for HAL component.
  7. HAL component assert level can be set separately,
  8. but the level can't exceed the system assertion level.
  9. e.g. If the system assertion is disabled, then the HAL
  10. assertion can't be enabled either. If the system assertion
  11. is enable, then the HAL assertion can still be disabled
  12. by this Kconfig option.
  13. config HAL_ASSERTION_EQUALS_SYSTEM
  14. bool "Same as system assertion level"
  15. config HAL_ASSERTION_DISABLE
  16. bool "Disabled"
  17. depends on COMPILER_OPTIMIZATION_ASSERTION_LEVEL >= 0
  18. config HAL_ASSERTION_SILIENT
  19. bool "Silent"
  20. depends on COMPILER_OPTIMIZATION_ASSERTION_LEVEL >= 1
  21. config HAL_ASSERTION_ENABLE
  22. bool "Enabled"
  23. depends on COMPILER_OPTIMIZATION_ASSERTION_LEVEL >= 2
  24. endchoice
  25. config HAL_DEFAULT_ASSERTION_LEVEL
  26. int
  27. default COMPILER_OPTIMIZATION_ASSERTION_LEVEL if HAL_ASSERTION_EQUALS_SYSTEM
  28. default 0 if HAL_ASSERTION_DISABLE
  29. default 1 if HAL_ASSERTION_SILIENT
  30. default 2 if HAL_ASSERTION_ENABLE
  31. endmenu