A31L12x F/W Packages  1.4.0
ABOV Cortex-M0+ Core based MCUs Integrated Driver
A31L12x_hal_libcfg.h
Go to the documentation of this file.
1 /***************************************************************************//****************************************************************************/
34 
35 #ifndef _A31L12x_LIBCFG_H_
36 #define _A31L12x_LIBCFG_H_
37 
38 /*******************************************************************************
39  * Included File
40  ******************************************************************************/
41 /* Un-comment the line below to compile the library in DEBUG mode, this will expanse
42 the "CHECK_PARAM" macro in the FW library code */
43 
44 #define USE_FULL_ASSERT
45 
46 /* DEBUG_FRAMWORK ------------------------------ */
47 #define _DEBUG_MSG
48 
49 
50 /*******************************************************************************
51  * Public Macro
52  ******************************************************************************/
53 
54 #ifdef USE_FULL_ASSERT
55  /*-------------------------------------------------------------------------*//*-------------------------------------------------------------------------*/
65  #define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))
66 #else
67  #define CHECK_PARAM(expr) ((void)0U)
68 #endif
69 
70 
71 /*******************************************************************************
72  * Public Typedef
73  ******************************************************************************/
74 
75 
76 /*******************************************************************************
77  * Exported Public Function
78  ******************************************************************************/
79 
80 #ifdef USE_FULL_ASSERT
81  void check_failed( uint8_t* file, uint32_t line );
82 #endif
83 
84 #endif /* _A31L12x_LIBCFG_H_ */
85 
void check_failed(uint8_t *file, uint32_t line)