1
0
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:
benpicco 2024-11-21 10:25:14 +00:00 committed by GitHub
commit 27073eeab6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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,
};