mirror of https://github.com/ARMmbed/mbed-os.git
STM32F2 : map ST HAL assert into MBED assert
parent
2257d4b2f2
commit
06ffb4cf8a
|
@ -382,9 +382,8 @@
|
||||||
* If expr is true, it returns no value.
|
* If expr is true, it returns no value.
|
||||||
* @retval None
|
* @retval None
|
||||||
*/
|
*/
|
||||||
#define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
|
#include "mbed_assert.h"
|
||||||
/* Exported functions ------------------------------------------------------- */
|
#define assert_param(expr) MBED_ASSERT(expr)
|
||||||
void assert_failed(uint8_t* file, uint32_t line);
|
|
||||||
#else
|
#else
|
||||||
#define assert_param(expr) ((void)0)
|
#define assert_param(expr) ((void)0)
|
||||||
#endif /* USE_FULL_ASSERT */
|
#endif /* USE_FULL_ASSERT */
|
||||||
|
|
Loading…
Reference in New Issue