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 nrf_soc_api
yihui 1:a607cd9655d7 11 @{
yihui 1:a607cd9655d7 12 @defgroup nrf_soc_error SoC Library Error Codes
yihui 1:a607cd9655d7 13 @{
yihui 1:a607cd9655d7 14
yihui 1:a607cd9655d7 15 @brief Error definitions for the SoC library
yihui 1:a607cd9655d7 16
yihui 1:a607cd9655d7 17 */
yihui 1:a607cd9655d7 18
yihui 1:a607cd9655d7 19 /* Header guard */
yihui 1:a607cd9655d7 20 #ifndef NRF_ERROR_SOC_H__
yihui 1:a607cd9655d7 21 #define NRF_ERROR_SOC_H__
yihui 1:a607cd9655d7 22
yihui 1:a607cd9655d7 23 #include "nrf_error.h"
yihui 1:a607cd9655d7 24
yihui 1:a607cd9655d7 25 /* Mutex Errors */
yihui 1:a607cd9655d7 26 #define NRF_ERROR_SOC_MUTEX_ALREADY_TAKEN (NRF_ERROR_SOC_BASE_NUM + 0) ///< Mutex already taken
yihui 1:a607cd9655d7 27
yihui 1:a607cd9655d7 28 /* NVIC errors */
yihui 1:a607cd9655d7 29 #define NRF_ERROR_SOC_NVIC_INTERRUPT_NOT_AVAILABLE (NRF_ERROR_SOC_BASE_NUM + 1) ///< NVIC interrupt not available
yihui 1:a607cd9655d7 30 #define NRF_ERROR_SOC_NVIC_INTERRUPT_PRIORITY_NOT_ALLOWED (NRF_ERROR_SOC_BASE_NUM + 2) ///< NVIC interrupt priority not allowed
yihui 1:a607cd9655d7 31 #define NRF_ERROR_SOC_NVIC_SHOULD_NOT_RETURN (NRF_ERROR_SOC_BASE_NUM + 3) ///< NVIC should not return
yihui 1:a607cd9655d7 32
yihui 1:a607cd9655d7 33 /* Power errors */
yihui 1:a607cd9655d7 34 #define NRF_ERROR_SOC_POWER_MODE_UNKNOWN (NRF_ERROR_SOC_BASE_NUM + 4) ///< Power mode unknown
yihui 1:a607cd9655d7 35 #define NRF_ERROR_SOC_POWER_POF_THRESHOLD_UNKNOWN (NRF_ERROR_SOC_BASE_NUM + 5) ///< Power POF threshold unknown
yihui 1:a607cd9655d7 36 #define NRF_ERROR_SOC_POWER_OFF_SHOULD_NOT_RETURN (NRF_ERROR_SOC_BASE_NUM + 6) ///< Power off should not return
yihui 1:a607cd9655d7 37
yihui 1:a607cd9655d7 38 /* Rand errors */
yihui 1:a607cd9655d7 39 #define NRF_ERROR_SOC_RAND_NOT_ENOUGH_VALUES (NRF_ERROR_SOC_BASE_NUM + 7) ///< RAND not enough values
yihui 1:a607cd9655d7 40
yihui 1:a607cd9655d7 41 /* PPI errors */
yihui 1:a607cd9655d7 42 #define NRF_ERROR_SOC_PPI_INVALID_CHANNEL (NRF_ERROR_SOC_BASE_NUM + 8) ///< Invalid PPI Channel
yihui 1:a607cd9655d7 43 #define NRF_ERROR_SOC_PPI_INVALID_GROUP (NRF_ERROR_SOC_BASE_NUM + 9) ///< Invalid PPI Group
yihui 1:a607cd9655d7 44
yihui 1:a607cd9655d7 45 #endif // NRF_ERROR_SOC_H__
yihui 1:a607cd9655d7 46 /**
yihui 1:a607cd9655d7 47 @}
yihui 1:a607cd9655d7 48 @}
yihui 1:a607cd9655d7 49 */