STM32F2 : map ST HAL assert into MBED assert

pull/3510/head
jeromecoutant 2016-12-02 13:47:05 +01:00 committed by Anna Bridge
parent 605ceb5e1e
commit 23510b4152
1 changed files with 2 additions and 3 deletions

View File

@ -382,9 +382,8 @@
* If expr is true, it returns no value.
* @retval None
*/
#define assert_param(expr) ((expr) ? (void)0 : 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)0)
#endif /* USE_FULL_ASSERT */