STM32F0 : map ST HAL assert into MBED assert

pull/3467/head
jeromecoutant 2016-12-07 14:13:19 +01:00 committed by Anna Bridge
parent 144f9b3f4d
commit 35ccdab0cc
1 changed files with 2 additions and 3 deletions

View File

@ -296,9 +296,8 @@
* If expr is true, it returns no value.
* @retval None
*/
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
/* Exported functions ------------------------------------------------------- */
void assert_failed(uint8_t* file, uint32_t line);
#include "mbed_assert.h"
#define assert_param(expr) MBED_ASSERT(expr)
#else
#define assert_param(expr) ((void)0U)
#endif /* USE_FULL_ASSERT */