This website requires JavaScript.
Explore
Help
Sign In
RIOT-OS
/
RIOT
Watch
1
Star
0
Fork
0
You've already forked RIOT
mirror of
https://github.com/RIOT-OS/RIOT.git
synced
2024-12-29 04:50:03 +01:00
Code
Releases
Activity
630b14b322
RIOT
/
drivers
/
sx1280
/
Makefile.dep
4 lines
90 B
Makefile
Raw
Normal View
History
Unescape
Escape
drivers/sx1280: initial import
2022-05-17 15:46:24 +02:00
USEPKG
+=
lorabasics
USEMODULE
+=
lorabasics_sx1280_driver
sys/net/gnrc/netif: allow checking if a netdev is legacy or new API A if `netdev_driver_t::confirm_send()` is provided, it provides the new netdev API. However, detecting the API at runtime and handling both API styles comes at a cost. This can be optimized in case only new or only old style netdevs are in use. To do so, this adds the pseudo modules `netdev_legacy_api` and `netdev_new_api`. As right now no netdev actually implements the new API, all netdevs pull in `netdev_legacy_api`. If `netdev_legacy_api` is in used but `netdev_new_api` is not, we can safely assume at compile time that only legacy netdevs are in use. Similar, if only `netdev_new_api` is used, only support for the new API is needed. Only when both are in use, run time checks are needed. This provides two helper function to check for a netif if the corresponding netdev implements the old or the new API. (With one being the inverse of the other.) They are suitable for constant folding when only new or only legacy devices are in use. Consequently, dead branches should be eliminated by the optimizer.
2022-08-09 14:58:36 +02:00
USEMODULE
+=
netdev_legacy_api
Copy Permalink