i find that the macro APP_ERROR_CHECK call the macro APP_ERROR_HANDLER
do \
{ \
const uint32_t LOCAL_ERR_CODE = (ERR_CODE); \
if (LOCAL_ERR_CODE != NRF_SUCCESS) \
{ \
APP_ERROR_HANDLER(LOCAL_ERR_CODE); \
} \
} while (0)
and than the APP_ERROR_HANDLER shows here
#define APP_ERROR_HANDLER(ERR_CODE)
do
{
app_error_handler((ERR_CODE), 0, 0);
} while (0)
#endif
finally ,the main function of the app_error_handler shows here
volatile bool loop = true;
UNUSED_VARIABLE(loop);
m_error_code = error_code;
m_line_num = line_num;
m_p_file_name = p_file_name;
UNUSED_VARIABLE(m_error_code);
UNUSED_VARIABLE(m_line_num);
UNUSED_VARIABLE(m_p_file_name);
__disable_irq();
while(loop);
i do not know how to take use of this function?
can i get some suggestion here?
thank you very much.