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