![](/media/cache/profiles/312e53ccba0b2ddfefd4a1f05b55bcdd.jpg.50x50_q85.jpg)
BLE FOTA APP
It doesn't work with the default FOTA bootloader. It use NVIC_SystemReset() to enter a bootloader.
nRF51822/nordic/nrf-sdk/ble/ble_central_bondmngr.h@1:a607cd9655d7, 2014-10-10 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
yihui | 1:a607cd9655d7 | 1 | #ifndef __BLE_CENTRAL_BONDMNGR_H_ |
yihui | 1:a607cd9655d7 | 2 | #define __BLE_CENTRAL_BONDMNGR_H_ |
yihui | 1:a607cd9655d7 | 3 | |
yihui | 1:a607cd9655d7 | 4 | #include "ble.h" |
yihui | 1:a607cd9655d7 | 5 | #include "ble_gap.h" |
yihui | 1:a607cd9655d7 | 6 | |
yihui | 1:a607cd9655d7 | 7 | #include <stdint.h> |
yihui | 1:a607cd9655d7 | 8 | #include <stdbool.h> |
yihui | 1:a607cd9655d7 | 9 | |
yihui | 1:a607cd9655d7 | 10 | typedef struct |
yihui | 1:a607cd9655d7 | 11 | { |
yihui | 1:a607cd9655d7 | 12 | ble_gap_sec_params_t * p_sec_params; |
yihui | 1:a607cd9655d7 | 13 | } ble_central_bondmngr_t; |
yihui | 1:a607cd9655d7 | 14 | |
yihui | 1:a607cd9655d7 | 15 | typedef struct |
yihui | 1:a607cd9655d7 | 16 | { |
yihui | 1:a607cd9655d7 | 17 | ble_gap_sec_params_t * p_sec_params; |
yihui | 1:a607cd9655d7 | 18 | bool delete_bonds; |
yihui | 1:a607cd9655d7 | 19 | } ble_central_bondmngr_init_t; |
yihui | 1:a607cd9655d7 | 20 | |
yihui | 1:a607cd9655d7 | 21 | uint32_t ble_central_bondmngr_init(ble_central_bondmngr_t * p_bm, ble_central_bondmngr_init_t * p_bm_init); |
yihui | 1:a607cd9655d7 | 22 | void ble_central_bondmngr_on_ble_evt(ble_central_bondmngr_t * p_bm, ble_evt_t * p_ble_evt); |
yihui | 1:a607cd9655d7 | 23 | uint32_t ble_central_bondmngr_store(ble_central_bondmngr_t * p_bm); |
yihui | 1:a607cd9655d7 | 24 | |
yihui | 1:a607cd9655d7 | 25 | #endif |