mirror of https://github.com/ARMmbed/mbed-os.git
STM32F2 : map ST HAL assert into MBED assert
parent
2257d4b2f2
commit
06ffb4cf8a
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue