forked from RIOT-OS/RIOT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpu/cc2538: add NETDEV_EVENTs and fix reception
This commit adds NETDEV_EVENT_RX_COMPLETE, NETDEV_EVENT_TX_COMPLETE, NETDEV_EVENT_RX_START & NETDEV_EVENT_CRC_ERROR. In RIOT-OS#13906 the crc lookahead had been moved because it would sometimes be inconsistent. The reason why is because since the reception is offloaded a new packet can be received before retrieving the first pkt from the FIFO. This PR fixes it by disabling reception while the frame is not processes i.e., `_recv` is not called. We also now flush at the end of a succesfull reception to know where in the fifo to probe. cc2538_off now does not flush the FIFO this the radio could be turned off after reception of a pkt but before this one is retrieved from the FIFO.
- Loading branch information
Showing
4 changed files
with
155 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters