bugfix for duplicate symbol

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

Common application error handler

Common application error handler

Common application error handler. More...

Functions

__WEAK void app_error_handler (uint32_t error_code, uint32_t line_num, const uint8_t *p_file_name)
 Function for error handling, which is called when an error has occurred.

Detailed Description

Common application error handler.

Common application error handler and macros for utilizing a common error handler.


Function Documentation

__WEAK void app_error_handler ( uint32_t  error_code,
uint32_t  line_num,
const uint8_t *  p_file_name 
)

Function for error handling, which is called when an error has occurred.

Warning:
This handler is an example only and does not fit a final product. You need to analyze how your product is supposed to react in case of error.
Parameters:
[in]error_codeError code supplied to the handler.
[in]line_numLine number where the handler is called.
[in]p_file_namePointer to the file name.

Function is implemented as weak so that it can be overwritten by custom application error handler when needed.

Parameters:
[in]error_codeError code supplied to the handler.
[in]line_numLine number where the handler is called.
[in]p_file_namePointer to the file name.

Definition at line 49 of file app_error.c.