STM32 RTC Scheduler
RTC-based scheduler for ultra-low power applications
error_handler.c
Go to the documentation of this file.
1 
14 /* Includes ------------------------------------------------------------------*/
15 #include "error_handler.h"
16 #include <stdint.h>
17 
18 #ifdef USE_FULL_ASSERT
19 #include <stdio.h>
20 #endif /* USE_FULL_ASSERT */
21 
25 void ErrorHandler(void)
26 {
27  for(;;)
28  {
29  }
30 }
31 
32 #ifdef USE_FULL_ASSERT
33 
40 void assert_failed(char* file, uint32_t line)
41 {
42  printf("Assert: %s line %lu\r\n", file, line);
43  for(;;)
44  {
45  }
46 }
47 #endif /* USE_FULL_ASSERT */
error_handler.h
This file contains the error handling function prototypes.
ErrorHandler
void ErrorHandler(void)
This function is executed in case of an error.
Definition: error_handler.c:25