distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
fatalErrorHook() header More...
Go to the source code of this file.
Functions | |
void | fatalErrorHook (const char *file, int line, const char *function, const char *message) |
Hook function called when fatal error is detected. More... | |
fatalErrorHook() header
void fatalErrorHook | ( | const char * | file, |
int | line, | ||
const char * | function, | ||
const char * | message | ||
) |
Hook function called when fatal error is detected.
This function is called at the beginning of fatalErrorHandler(). It may be used to put the system into a safe state, log the failure, reset the device, etc. After this function returns, the system is halted by calling abort() with masked interrupts.
[in] | file | is a null-terminated string with the name of file in which fatal error was detected |
[in] | line | is a line number at which fatal error was detected |
[in] | function | is a null-terminated string with function in which fatal error was detected |
[in] | message | is a null-terminated string with the message of fatal error |