divide logic level, now it is more low level driver.
clean up code.
Advertise channel example:
Code from app.c:
/ create IO and so on ... /
int res = 0;
app.radio = radio_open("BLE", RADIO_MODE_BLE_1Mbit);
/ set channel /
radio_set_channel(BLE_ADV_CHANNEL_39);
res = radio_rx_sync(HAL_RF, KERNEL_HANDLE, 0, io, 3000);
if(res > 0)
ble_debug_adv_common(io);
nrf_rf.c major changes:
Advertise channel example: Code from app.c:
/ create IO and so on ... / int res = 0; app.radio = radio_open("BLE", RADIO_MODE_BLE_1Mbit); / set channel / radio_set_channel(BLE_ADV_CHANNEL_39); res = radio_rx_sync(HAL_RF, KERNEL_HANDLE, 0, io, 3000); if(res > 0) ble_debug_adv_common(io);