fault-handlers-assertion.h 1022 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #include "software-modes.h"
  3. //$interrupt-section HardFault
  4. void HardFault_handler (FAULT_MODE) asm ("interrupt.section.HardFault") ;
  5. //$interrupt-section MemManage
  6. void MemManage_handler (FAULT_MODE) asm ("interrupt.section.MemManage") ;
  7. //$interrupt-section BusFault
  8. void BusFault_handler (FAULT_MODE) asm ("interrupt.section.BusFault") ;
  9. //$interrupt-section UsageFault
  10. void UsageFault_handler (FAULT_MODE) asm ("interrupt.section.UsageFault") ;
  11. void assertion (const bool inAssertion,
  12. const uint32_t inMessageValue,
  13. const char * inFileName,
  14. const int inLine) ;
  15. void assertNonNullPointer (const void * inPointer,
  16. const char * inFileName,
  17. const int inLine) ;
  18. //$section assertion.failure
  19. void assertionFailure (const uint32_t inMessageValue,
  20. const char * inFileName,
  21. const int inLine) asm ("assertion.failure") ;
  22. void section_assertionFailure (FAULT_MODE_
  23. const uint32_t inMessageValue,
  24. const char * inFileName,
  25. const int inLine) asm ("section.assertion.failure") ;