Skip to content

Commit 06ffb4c

Browse files
committed
STM32F2 : map ST HAL assert into MBED assert
1 parent 2257d4b commit 06ffb4c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

targets/TARGET_STM/TARGET_STM32F2/device/stm32f2xx_hal_conf.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,8 @@
382382
* If expr is true, it returns no value.
383383
* @retval None
384384
*/
385-
#define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
386-
/* Exported functions ------------------------------------------------------- */
387-
void assert_failed(uint8_t* file, uint32_t line);
385+
#include "mbed_assert.h"
386+
#define assert_param(expr) MBED_ASSERT(expr)
388387
#else
389388
#define assert_param(expr) ((void)0)
390389
#endif /* USE_FULL_ASSERT */

0 commit comments

Comments
 (0)