BLE stack initialization.
Initializes the SoftDevice and the BLE event interrupt.
59 ble_conn_bw_counts_t count = {{1,0,0},{1,0,0}};
62 nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;
63 SOFTDEVICE_HANDLER_INIT(&clock_lf_cfg, NULL);
66 ble_enable_params_t ble_enable_params = {0};
68 ble_enable_params.common_enable_params.p_conn_bw_counts = &count;
71 opt.common_opt.conn_bw.conn_bw.conn_bw_rx = BLE_CONN_BW_HIGH;
72 opt.common_opt.conn_bw.conn_bw.conn_bw_tx = BLE_CONN_BW_HIGH;
73 opt.common_opt.conn_bw.role = BLE_GAP_ROLE_PERIPH;
78 err_code = softdevice_enable(&ble_enable_params);
79 APP_ERROR_CHECK(err_code);
81 err_code = sd_ble_opt_set(BLE_COMMON_OPT_CONN_BW, &opt);
82 APP_ERROR_CHECK(err_code);
85 APP_ERROR_CHECK(err_code);
89 err_code = sd_nvic_SetPriority(SD_EVT_IRQn, APP_IRQ_PRIORITY_LOW);
90 APP_ERROR_CHECK(err_code);
static void m_ble_evt_dispatch(ble_evt_t *p_ble_evt)
Dispatches a BLE stack event to all profiles.
#define CENTRAL_LINK_COUNT
#define PERIPHERAL_LINK_COUNT