mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/ethos: port to netdev_new_api
This commit is contained in:
parent
d169826005
commit
fc72c76054
@ -1,7 +1,7 @@
|
|||||||
FEATURES_REQUIRED += periph_uart
|
FEATURES_REQUIRED += periph_uart
|
||||||
USEMODULE += iolist
|
USEMODULE += iolist
|
||||||
USEMODULE += netdev_eth
|
USEMODULE += netdev_eth
|
||||||
USEMODULE += netdev_legacy_api
|
USEMODULE += netdev_new_api
|
||||||
USEMODULE += random
|
USEMODULE += random
|
||||||
USEMODULE += tsrb
|
USEMODULE += tsrb
|
||||||
|
|
||||||
|
@ -442,6 +442,13 @@ static int _get(netdev_t *dev, netopt_t opt, void *value, size_t max_len)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int _confirm_send(netdev_t *dev, void *info)
|
||||||
|
{
|
||||||
|
(void)dev;
|
||||||
|
(void)info;
|
||||||
|
return -EOPNOTSUPP;
|
||||||
|
}
|
||||||
|
|
||||||
/* netdev interface */
|
/* netdev interface */
|
||||||
static const netdev_driver_t netdev_driver_ethos = {
|
static const netdev_driver_t netdev_driver_ethos = {
|
||||||
.send = _send,
|
.send = _send,
|
||||||
@ -449,5 +456,6 @@ static const netdev_driver_t netdev_driver_ethos = {
|
|||||||
.init = _init,
|
.init = _init,
|
||||||
.isr = _isr,
|
.isr = _isr,
|
||||||
.get = _get,
|
.get = _get,
|
||||||
.set = netdev_eth_set
|
.set = netdev_eth_set,
|
||||||
|
.confirm_send = _confirm_send,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user