Skip to content

Commit b606267

Browse files
committed
STM32F1 : map ST HAL assert into MBED assert
1 parent 2257d4b commit b606267

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_hal_conf.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,8 @@
350350
* If expr is true, it returns no value.
351351
* @retval None
352352
*/
353-
#define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
354-
/* Exported functions ------------------------------------------------------- */
355-
void assert_failed(uint8_t* file, uint32_t line);
353+
#include "mbed_assert.h"
354+
#define assert_param(expr) MBED_ASSERT(expr)
356355
#else
357356
#define assert_param(expr) ((void)0)
358357
#endif /* USE_FULL_ASSERT */

0 commit comments

Comments
 (0)