hal_debug.h 403 B

123456789101112131415161718192021222324252627282930
  1. #ifndef SUNXI_HAL_DEBUG_H
  2. #define SUNXI_HAL_DEBUG_H
  3. #ifdef __cplusplus
  4. extern "C"
  5. {
  6. #endif
  7. #ifdef CONFIG_KERNEL_FREERTOS
  8. #include <FreeRTOSConfig.h>
  9. #define hal_soft_break soft_break
  10. #else
  11. #include <debug.h>
  12. #define hal_soft_break software_break
  13. #endif
  14. #define hal_sys_abort() \
  15. do { \
  16. hal_soft_break(0); \
  17. } while (0)
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif