STM32F2 : map ST HAL assert into MBED assert

pull/3389/head
jeromecoutant 2016-12-02 13:47:05 +01:00
parent 2257d4b2f2
commit 06ffb4cf8a
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 */