1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #ifndef __STM32_ASSERT_H
- #define __STM32_ASSERT_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifdef USE_FULL_ASSERT
- #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
- void assert_failed(uint8_t* file, uint32_t line);
- #else
- #define assert_param(expr) ((void)0U)
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|