exceptions.c 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #include "stm32f3xx_hal.h"
  2. /*!
  3. \brief this function handles NMI exception
  4. \param[in] none
  5. \param[out] none
  6. \retval none
  7. */
  8. void NMI_Handler(void)
  9. {
  10. }
  11. /*!
  12. \brief this function handles HardFault exception
  13. \param[in] none
  14. \param[out] none
  15. \retval none
  16. */
  17. void HardFault_Handler(void){
  18. /* if Hard Fault exception occurs, go to infinite loop */
  19. while (1){
  20. }
  21. }
  22. /*!
  23. \brief this function handles MemManage exception
  24. \param[in] none
  25. \param[out] none
  26. \retval none
  27. */
  28. void MemManage_Handler(void)
  29. {
  30. /* if Memory Manage exception occurs, go to infinite loop */
  31. while (1){
  32. }
  33. }
  34. /*!
  35. \brief this function handles BusFault exception
  36. \param[in] none
  37. \param[out] none
  38. \retval none
  39. */
  40. void BusFault_Handler(void)
  41. {
  42. /* if Bus Fault exception occurs, go to infinite loop */
  43. while (1){
  44. }
  45. }
  46. /*!
  47. \brief this function handles UsageFault exception
  48. \param[in] none
  49. \param[out] none
  50. \retval none
  51. */
  52. void UsageFault_Handler(void)
  53. {
  54. /* if Usage Fault exception occurs, go to infinite loop */
  55. while (1){
  56. }
  57. }
  58. /*!
  59. \brief this function handles DebugMon exception
  60. \param[in] none
  61. \param[out] none
  62. \retval none
  63. */
  64. void DebugMon_Handler(void)
  65. {
  66. }