drivers/ieee802154: Added RAW device to nRF5 radio driver

This commit adds missing RAW mode device to the driver.

Change-Id: I9ee9c41bc94b0ae202613ef707030033b46df1de
Signed-off-by: Wojciech Bober <wojciech.bober@nordicsemi.no>
This commit is contained in:
Wojciech Bober 2017-03-06 16:20:19 +01:00 committed by Jukka Rissanen
commit 4199713d44

View file

@ -413,6 +413,12 @@ static struct ieee802154_radio_api nrf5_radio_api = {
.get_lqi = nrf5_get_lqi,
};
#if defined(CONFIG_IEEE802154_NRF5_RAW)
DEVICE_AND_API_INIT(nrf5_154_radio, CONFIG_IEEE802154_NRF5_DRV_NAME,
nrf5_init, &nrf5_data, &nrf5_radio_cfg,
POST_KERNEL, CONFIG_IEEE802154_NRF5_INIT_PRIO,
&nrf5_radio_api);
#else
NET_DEVICE_INIT(nrf5_154_radio, CONFIG_IEEE802154_NRF5_DRV_NAME,
nrf5_init, &nrf5_data, &nrf5_radio_cfg,
CONFIG_IEEE802154_NRF5_INIT_PRIO,
@ -424,3 +430,4 @@ NET_STACK_INFO_ADDR(RX, nrf5_154_radio,
CONFIG_IEEE802154_NRF5_RX_STACK_SIZE,
((struct nrf5_802154_data *)
(&__device_nrf5_154_radio))->rx_stack, 0);
#endif