Nordic stack and drivers for the mbed BLE API
Dependents: BLE_Health_Thermometer2
Fork of nRF51822 by
Revision 54:f3badab88f02, committed 2014-08-22
- Comitter:
- todotani
- Date:
- Fri Aug 22 11:24:48 2014 +0000
- Parent:
- 53:1e5c300cec7f
- Commit message:
- BLE_Health_Thermometer for mbed HRM1017 with new BLE library
Changed in this revision
btle/btle.cpp | Show annotated file Show diff for this revision Revisions of this file |
projectconfig.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 1e5c300cec7f -r f3badab88f02 btle/btle.cpp --- a/btle/btle.cpp Fri Jul 25 10:33:52 2014 +0100 +++ b/btle/btle.cpp Fri Aug 22 11:24:48 2014 +0000 @@ -63,7 +63,8 @@ error_t btle_init(void) { APP_TIMER_INIT(0, 8, 5, false); - SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false); + //SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false); + SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, false); ASSERT_STATUS( softdevice_ble_evt_handler_set(btle_handler)); ASSERT_STATUS( softdevice_sys_evt_handler_set(sys_evt_dispatch));
diff -r 1e5c300cec7f -r f3badab88f02 projectconfig.h --- a/projectconfig.h Fri Jul 25 10:33:52 2014 +0100 +++ b/projectconfig.h Fri Aug 22 11:24:48 2014 +0000 @@ -113,7 +113,7 @@ /*--------------------------------- GAP -------------------------------*/ #define CFG_GAP_APPEARANCE BLE_APPEARANCE_GENERIC_TAG - #define CFG_GAP_LOCAL_NAME "nRF5x" + #define CFG_GAP_LOCAL_NAME "HRM1017" #define CFG_GAP_CONNECTION_MIN_INTERVAL_MS 500 /**< Minimum acceptable connection interval */ #define CFG_GAP_CONNECTION_MAX_INTERVAL_MS 1000 /**< Maximum acceptable connection interval */