G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
g32_assert.h
Go to the documentation of this file.
1
43
44/* Define to prevent recursive inclusion -------------------------------------*/
45#ifndef G32_ASSERT_H
46#define G32_ASSERT_H
47
48#ifdef __cplusplus
49extern "C" {
50#endif
51
52/* Exported types ------------------------------------------------------------*/
53/* Exported constants --------------------------------------------------------*/
54/* Includes ------------------------------------------------------------------*/
55/* Exported macro ------------------------------------------------------------*/
56#ifdef USE_FULL_ASSERT
57
58#define ASSERT_PARAM(_PARAM_) ((_PARAM_) ? (void)0U : AssertFailedHandler((uint8_t *)__FILE__, __LINE__))
59/* Declaration */
60void AssertFailedHandler(uint8_t* file, uint32_t line);
61
62#else
63#define ASSERT_PARAM(_PARAM_) ((void)0U)
64#endif /* USE_FULL_ASSERT */
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif /* G32_ASSERT_H */
71
void AssertFailedHandler(uint8_t *file, uint32_t line)