ARMEBS4  revision-26.06.2015
stm32_assert.c
Go to the documentation of this file.
1 /**
2  * \file stm32_assert.c
3  *
4  * \brief assert_failed function for the ST library
5  */
6 
7 #include "heivs/config.h"
8 #if USE_STM32_LIB_ASSERT
9 #include "heivs/bsp.h"
10 #include "stm32/libstm32_conf.h"
11 
12 __attribute__ ((weak))
13 void assert_failed(uint8_t* file, uint32_t line)
14 {
15  (void)file;
16  (void)line;
17 
19  {
20  breakpoint();
21  }
22 
24 }
25 
26 #endif
Library configuration file.
BSP - Board Support Package.
#define breakpoint()
Breakpoint (from code)
Definition: utils.h:74
libheivs configuration file
void bsp_fatal(status_e status)
fatal error
Definition: bsp.c:123
#define debugger_is_connected()
Detect is debugger is connected.
Definition: utils.h:67
Compile time configuration error.
Definition: error.h:72