-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: rework ieee802154 drivers #17838
tests: rework ieee802154 drivers #17838
Conversation
23719fc
to
461c045
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test applications that have device-specific shell commands should keep those. Also, please take a look at the initial puts
of the test applications, as many say Ethernet driver.
461c045
to
da892ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for the clean up. Please squash right in the style nit-picks.
d21f321
to
2eac520
Compare
Done, thanks for the review @maribu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK. Code looks good. I tested with tests/driver_at86rf2xx
using the samr21-xpro
and with tests/driver_at86rf215
using our custom miot-nucleo-f767zi
testbed board. There is one issue with the AT86RF215 test application, as that needs to allocate twice the number of netdevs, as the sub-GHz and the 2.4 GHz transceiver in that chip are represented as two netdevs in RIOT. I already tested it successfully with the proposed changes.
tests/driver_at86rf215/init_dev.h
Outdated
#endif | ||
|
||
#define AT86RF215_NUM ARRAY_SIZE(at86rf215_params) | ||
#define NETDEV_IEEE802154_MINIMAL_NUMOF AT86RF215_NUM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#define NETDEV_IEEE802154_MINIMAL_NUMOF AT86RF215_NUM | |
/* AT86RF215 contains one sub-GHz and one 2.4 GHz driver */ | |
#define NETDEV_IEEE802154_MINIMAL_NUMOF (2 * AT86RF215_NUM) |
tests/driver_at86rf215/main.c
Outdated
#include "od.h" | ||
|
||
static char batmon_stack[THREAD_STACKSIZE_MAIN]; | ||
static at86rf215_t *dev; | ||
static at86rf215_t at86rf215[AT86RF215_NUM]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static at86rf215_t at86rf215[AT86RF215_NUM]; | |
static at86rf215_t at86rf215[NETDEV_IEEE802154_MINIMAL_NUMOF]; |
😢 |
This index is used to register the network device.
2eac520
to
37bdc32
Compare
ping @maribu applied the fixes and rebased. |
Many thanks @leandrolanzieri @maribu and @jia200x |
Contribution description
Split from #17789, but with a difference: instead of using symlinks the common functionality to interact with ieee802154 netdev drivers is implemented in its own test_utils module.
Testing procedure
Issues/PRs references
Split from #17789
Similar to #17813