Skip to content

Commit 35ccdab

Browse files
jeromecoutantadbridge
authored andcommitted
STM32F0 : map ST HAL assert into MBED assert
1 parent 144f9b3 commit 35ccdab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_conf.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,8 @@
296296
* If expr is true, it returns no value.
297297
* @retval None
298298
*/
299-
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
300-
/* Exported functions ------------------------------------------------------- */
301-
void assert_failed(uint8_t* file, uint32_t line);
299+
#include "mbed_assert.h"
300+
#define assert_param(expr) MBED_ASSERT(expr)
302301
#else
303302
#define assert_param(expr) ((void)0U)
304303
#endif /* USE_FULL_ASSERT */

0 commit comments

Comments
 (0)