BLE FOTA APP

Dependencies:   BLE_API mbed

It doesn't work with the default FOTA bootloader. It use NVIC_SystemReset() to enter a bootloader.

Committer:
yihui
Date:
Fri Oct 10 03:36:28 2014 +0000
Revision:
1:a607cd9655d7
use NVIC_SystemReset() to run bootloader

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yihui 1:a607cd9655d7 1 /*
yihui 1:a607cd9655d7 2 * Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
yihui 1:a607cd9655d7 3 *
yihui 1:a607cd9655d7 4 * The information contained herein is confidential property of Nordic Semiconductor. The use,
yihui 1:a607cd9655d7 5 * copying, transfer or disclosure of such information is prohibited except by express written
yihui 1:a607cd9655d7 6 * agreement with Nordic Semiconductor.
yihui 1:a607cd9655d7 7 *
yihui 1:a607cd9655d7 8 */
yihui 1:a607cd9655d7 9 /**
yihui 1:a607cd9655d7 10 @addtogroup BLE_COMMON
yihui 1:a607cd9655d7 11 @{
yihui 1:a607cd9655d7 12 @addtogroup nrf_error
yihui 1:a607cd9655d7 13 @{
yihui 1:a607cd9655d7 14 @ingroup BLE_COMMON
yihui 1:a607cd9655d7 15 @}
yihui 1:a607cd9655d7 16
yihui 1:a607cd9655d7 17 @defgroup ble_err General error codes
yihui 1:a607cd9655d7 18 @{
yihui 1:a607cd9655d7 19
yihui 1:a607cd9655d7 20 @brief General error code definitions for the BLE API.
yihui 1:a607cd9655d7 21
yihui 1:a607cd9655d7 22 @ingroup BLE_COMMON
yihui 1:a607cd9655d7 23 */
yihui 1:a607cd9655d7 24 #ifndef NRF_BLE_ERR_H__
yihui 1:a607cd9655d7 25 #define NRF_BLE_ERR_H__
yihui 1:a607cd9655d7 26
yihui 1:a607cd9655d7 27 #include "nrf_error.h"
yihui 1:a607cd9655d7 28
yihui 1:a607cd9655d7 29 /* @defgroup BLE_ERRORS Error Codes
yihui 1:a607cd9655d7 30 * @{ */
yihui 1:a607cd9655d7 31 #define BLE_ERROR_NOT_ENABLED (NRF_ERROR_STK_BASE_NUM+0x001) /**< @ref sd_ble_enable has not been called. */
yihui 1:a607cd9655d7 32 #define BLE_ERROR_INVALID_CONN_HANDLE (NRF_ERROR_STK_BASE_NUM+0x002) /**< Invalid connection handle. */
yihui 1:a607cd9655d7 33 #define BLE_ERROR_INVALID_ATTR_HANDLE (NRF_ERROR_STK_BASE_NUM+0x003) /**< Invalid attribute handle. */
yihui 1:a607cd9655d7 34 #define BLE_ERROR_NO_TX_BUFFERS (NRF_ERROR_STK_BASE_NUM+0x004) /**< Buffer capacity exceeded. */
yihui 1:a607cd9655d7 35 /** @} */
yihui 1:a607cd9655d7 36
yihui 1:a607cd9655d7 37
yihui 1:a607cd9655d7 38 /** @defgroup BLE_ERROR_SUBRANGES Module specific error code subranges
yihui 1:a607cd9655d7 39 * @brief Assignment of subranges for module specific error codes.
yihui 1:a607cd9655d7 40 * @note For specific error codes, see ble_<module>.h or ble_error_<module>.h.
yihui 1:a607cd9655d7 41 * @{ */
yihui 1:a607cd9655d7 42 #define NRF_L2CAP_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x100) /**< L2CAP specific errors. */
yihui 1:a607cd9655d7 43 #define NRF_GAP_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x200) /**< GAP specific errors. */
yihui 1:a607cd9655d7 44 #define NRF_GATTC_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x300) /**< GATT client specific errors. */
yihui 1:a607cd9655d7 45 #define NRF_GATTS_ERR_BASE (NRF_ERROR_STK_BASE_NUM+0x400) /**< GATT server specific errors. */
yihui 1:a607cd9655d7 46 /** @} */
yihui 1:a607cd9655d7 47
yihui 1:a607cd9655d7 48 #endif
yihui 1:a607cd9655d7 49
yihui 1:a607cd9655d7 50
yihui 1:a607cd9655d7 51 /**
yihui 1:a607cd9655d7 52 @}
yihui 1:a607cd9655d7 53 @}
yihui 1:a607cd9655d7 54 */