/* This is the task that runs the Link Layer. */
void ble_ll_task(void *arg)
/* This is the task that runs the Link Layer. */
void ble_ll_task(void *arg)
{
    struct ble_npl_event *ev;
    ble_phy_init();
    ble_phy_txpwr_set(MYNEWT_VAL(BLE_LL_TX_PWR_DBM));
    ble_hci_trans_cfg_ll(ble_ll_hci_cmd_rx, NULL, ble_ll_hci_acl_rx, NULL);
    ble_ll_hci_send_noop();
    while (1) {
        ev = ble_npl_eventq_get(&g_ble_ll_data.ll_evq, BLE_NPL_TIME_FOREVER);
        assert(ev);
        ble_npl_event_run(ev);
    }
}