cc2538_rf: default to netdev_ieee802154_submac#15534
Conversation
fjmolinas
left a comment
There was a problem hiding this comment.
If I compile without using docker (newer toolchain) I get the following:
/home/francisco/workspace/RIOT2/sys/net/link_layer/ieee802154/submac.c: In function 'ieee802154_set_state':
/home/francisco/workspace/RIOT2/sys/net/link_layer/ieee802154/submac.c:415:21: error: implicit conversion from 'enum <anonymous>' to 'ieee802154_submac_state_t' [-Werror=enum-conversion]
415 | state == IEEE802154_STATE_IDLE
| ^~~~~
/home/francisco/workspace/RIOT2/sys/net/link_layer/ieee802154/submac.c:419:64: error: implicit conversion from 'ieee802154_submac_state_t' to 'ieee802154_trx_state_t' [-Werror=enum-conversion]
419 | if ((res = ieee802154_radio_request_set_trx_state(dev, new_state)) < 0) {
| ^~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [/home/francisco/workspace/RIOT2/Makefile.base:107: /home/francisco/workspace/RIOT2/examples/gnrc_networking/bin/openmote-b/ieee802154/submac.o] Error 1
make[2]: *** [/home/francisco/workspace/RIOT2/Makefile.base:30: ALL--/home/francisco/workspace/RIOT2/sys/net/link_layer/ieee802154] Error 2
make[2]: *** Waiting for unfinished jobs....
issue with new gcc needs to be resolved
Seems this is unrelated to this PR though and should be fixed in master. |
|
When built in docker and pinging with parameters
So seems situation is for some reason worse than when the |
|
#15584 will take care of the compilation error, but for good measure we should wait for that one to get in before. |
testing something with the lavel check
|
Gooo! Thanks for the great work @jia200x !! |
Contribution description
Following #15132, this PR makes
netdev_ieee802154_submacdefault forcc2538_rf. The basic driver doesn't support ACK handling and retransmissions, so the SubMAC fixes this lack.Testing procedure
Compare ping statistics (with 1kb packets) for any cc2538_rf board between current master and this PR.
Issues/PRs references
#15132