diff --git a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_conf.h b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_conf.h index 310db53d91..fdd0d8a672 100644 --- a/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_conf.h +++ b/targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_conf.h @@ -321,9 +321,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 */