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
yihui 1:a607cd9655d7 13 /* Attention!
yihui 1:a607cd9655d7 14 * To maintain compliance with Nordic Semiconductor ASA’s Bluetooth profile
yihui 1:a607cd9655d7 15 * qualification listings, this section of source code must not be modified.
yihui 1:a607cd9655d7 16 */
yihui 1:a607cd9655d7 17
yihui 1:a607cd9655d7 18 #ifndef BLE_SENSOR_LOCATION_H__
yihui 1:a607cd9655d7 19 #define BLE_SENSOR_LOCATION_H__
yihui 1:a607cd9655d7 20
yihui 1:a607cd9655d7 21 typedef enum {
yihui 1:a607cd9655d7 22 BLE_SENSOR_LOCATION_OTHER = 0 , /**<-- Other */
yihui 1:a607cd9655d7 23 BLE_SENSOR_LOCATION_TOP_OF_SHOE = 1 , /**<-- Top of shoe */
yihui 1:a607cd9655d7 24 BLE_SENSOR_LOCATION_IN_SHOE = 2 , /**<-- In shoe */
yihui 1:a607cd9655d7 25 BLE_SENSOR_LOCATION_HIP = 3 , /**<-- Hip */
yihui 1:a607cd9655d7 26 BLE_SENSOR_LOCATION_FRONT_WHEEL = 4 , /**<-- Front Wheel */
yihui 1:a607cd9655d7 27 BLE_SENSOR_LOCATION_LEFT_CRANK = 5 , /**<-- Left Crank */
yihui 1:a607cd9655d7 28 BLE_SENSOR_LOCATION_RIGHT_CRANK = 6 , /**<-- Right Crank */
yihui 1:a607cd9655d7 29 BLE_SENSOR_LOCATION_LEFT_PEDAL = 7 , /**<-- Left Pedal */
yihui 1:a607cd9655d7 30 BLE_SENSOR_LOCATION_RIGHT_PEDAL = 8 , /**<-- Right Pedal */
yihui 1:a607cd9655d7 31 BLE_SENSOR_LOCATION_FRONT_HUB = 9 , /**<-- Front Hub */
yihui 1:a607cd9655d7 32 BLE_SENSOR_LOCATION_REAR_DROPOUT = 10, /**<-- Rear Dropout */
yihui 1:a607cd9655d7 33 BLE_SENSOR_LOCATION_CHAINSTAY = 11, /**<-- Chainstay */
yihui 1:a607cd9655d7 34 BLE_SENSOR_LOCATION_REAR_WHEEL = 12, /**<-- Rear Wheel */
yihui 1:a607cd9655d7 35 BLE_SENSOR_LOCATION_REAR_HUB = 13, /**<-- Rear Hub */
yihui 1:a607cd9655d7 36 }ble_sensor_location_t;
yihui 1:a607cd9655d7 37
yihui 1:a607cd9655d7 38 #define BLE_NB_MAX_SENSOR_LOCATIONS 14
yihui 1:a607cd9655d7 39
yihui 1:a607cd9655d7 40 #endif // BLE_SENSOR_LOCATION_H__