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 /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
yihui 1:a607cd9655d7 2 *
yihui 1:a607cd9655d7 3 * The information contained herein is property of Nordic Semiconductor ASA.
yihui 1:a607cd9655d7 4 * Terms and conditions of usage are described in detail in NORDIC
yihui 1:a607cd9655d7 5 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
yihui 1:a607cd9655d7 6 *
yihui 1:a607cd9655d7 7 * Licensees are granted free, non-transferable use of the information. NO
yihui 1:a607cd9655d7 8 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
yihui 1:a607cd9655d7 9 * the file.
yihui 1:a607cd9655d7 10 */
yihui 1:a607cd9655d7 11
yihui 1:a607cd9655d7 12 /** @file
yihui 1:a607cd9655d7 13 *
yihui 1:a607cd9655d7 14 * @defgroup ble_radio_notification Radio Notification Event Handler
yihui 1:a607cd9655d7 15 * @{
yihui 1:a607cd9655d7 16 * @ingroup ble_sdk_lib
yihui 1:a607cd9655d7 17 * @brief Module for propagating Radio Notification events to the application.
yihui 1:a607cd9655d7 18 */
yihui 1:a607cd9655d7 19
yihui 1:a607cd9655d7 20 #ifndef BLE_RADIO_NOTIFICATION_H__
yihui 1:a607cd9655d7 21 #define BLE_RADIO_NOTIFICATION_H__
yihui 1:a607cd9655d7 22
yihui 1:a607cd9655d7 23 #include <stdint.h>
yihui 1:a607cd9655d7 24 #include <stdbool.h>
yihui 1:a607cd9655d7 25 #include "nrf_soc.h"
yihui 1:a607cd9655d7 26
yihui 1:a607cd9655d7 27 /**@brief Application radio notification event handler type. */
yihui 1:a607cd9655d7 28 typedef void (*ble_radio_notification_evt_handler_t) (bool radio_active);
yihui 1:a607cd9655d7 29
yihui 1:a607cd9655d7 30 /**@brief Function for initializing the Radio Notification module.
yihui 1:a607cd9655d7 31 *
yihui 1:a607cd9655d7 32 * @param[in] irq_priority Interrupt priority for the Radio Notification interrupt handler.
yihui 1:a607cd9655d7 33 * @param[in] distance The time from an Active event until the radio is activated.
yihui 1:a607cd9655d7 34 * @param[in] evt_handler Handler to be executed when a radio notification event has been
yihui 1:a607cd9655d7 35 * received.
yihui 1:a607cd9655d7 36 *
yihui 1:a607cd9655d7 37 * @return NRF_SUCCESS on successful initialization, otherwise an error code.
yihui 1:a607cd9655d7 38 */
yihui 1:a607cd9655d7 39 uint32_t ble_radio_notification_init(nrf_app_irq_priority_t irq_priority,
yihui 1:a607cd9655d7 40 nrf_radio_notification_distance_t distance,
yihui 1:a607cd9655d7 41 ble_radio_notification_evt_handler_t evt_handler);
yihui 1:a607cd9655d7 42
yihui 1:a607cd9655d7 43 #endif // BLE_RADIO_NOTIFICATION_H__
yihui 1:a607cd9655d7 44
yihui 1:a607cd9655d7 45 /** @} */