STM32 firmware for a remotely-controlled stepper motor demo with a mobile interface.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
f105-motor-demo_stm32/project/spl_assert.c

25 lines
544 B

#include "main.h"
#include "utils/timebase.h"
#include "com/debug.h"
#ifdef USE_FULL_ASSERT
/**
* @brief Reports the name of the source file and the source line number
* where the assert_param error has occurred.
* @param file: pointer to the source file name
* @param line: assert_param error line source number
* @return None
*/
void __attribute__((noreturn))
assert_failed(uint8_t* file, uint32_t line)
{
error("Assert failed in file %s, line %"PRIu32".", file, line);
/* Infinite loop */
while (1);
}
#endif