Created
December 5, 2014 02:47
-
-
Save ksksue/d16948ed69e4e89f33b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void ble_stack_init(void) | |
{ | |
// Initialize SoftDevice. | |
SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, false); | |
// Subscribe for BLE events. | |
uint32_t err_code = softdevice_ble_evt_handler_set(ble_evt_dispatch); | |
APP_ERROR_CHECK(err_code); | |
// Register with the SoftDevice handler module for BLE events. | |
err_code = softdevice_sys_evt_handler_set(sys_evt_dispatch); | |
APP_ERROR_CHECK(err_code); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment