BLE_Nano nRF51 Central heart rate

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers app_error_weak.h Source File

app_error_weak.h

Go to the documentation of this file.
00001 /* Copyright (c) 2016 Nordic Semiconductor. All Rights Reserved.
00002  *
00003  * The information contained herein is property of Nordic Semiconductor ASA.
00004  * Terms and conditions of usage are described in detail in NORDIC
00005  * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
00006  *
00007  * Licensees are granted free, non-transferable use of the information. NO
00008  * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
00009  * the file.
00010  *
00011  */
00012 
00013 #ifndef APP_ERROR_WEAK_H__
00014 #define APP_ERROR_WEAK_H__
00015 
00016 /** @file
00017  *
00018  * @defgroup app_error Common application error handler
00019  * @{
00020  * @ingroup app_common
00021  *
00022  * @brief Common application error handler.
00023  */
00024  
00025 /**@brief       Callback function for asserts in the SoftDevice.
00026  *
00027  * @details     A pointer to this function will be passed to the SoftDevice. This function will be
00028  *              called by the SoftDevice if certain unrecoverable errors occur within the
00029  *              application or SoftDevice.
00030  *
00031  *              See @ref nrf_fault_handler_t for more details.
00032  *
00033  * @param[in] id    Fault identifier. See @ref NRF_FAULT_IDS.
00034  * @param[in] pc    The program counter of the instruction that triggered the fault, or 0 if
00035  *                  unavailable.
00036  * @param[in] info  Optional additional information regarding the fault. Refer to each fault
00037  *                  identifier for details.
00038  *
00039  * @remarks Function is implemented as weak so that it can be overwritten by custom application
00040  *          error handler when needed.
00041  */
00042 #ifdef __CC_ARM
00043          void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info);
00044 #else
00045 __WEAK void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info);
00046 #endif
00047 
00048 
00049 /** @} */
00050 
00051 #endif // APP_ERROR_WEAK_H__
00052