-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial TWAI Driver Implementation (#192)
* wip: initial implementation of transmission only. * Moved TWAI to its own directory and added initial reception of packets. * Added extended id transmit and receive. * Added maybe better code for making packet filters. * Fixed bug with ids and improved methods of copying data to the peripheral. * Added some guards against Bus Off * Added reception of remote frames. * Clean up of comments, etc * Updated TWAI naming and cleaned up example a bit. * Updated bitselector to include better unpacking methods. * Add embedded-can and limit initial TWAI implementation to esp32c3. * Added embedded-can to esp32c3 twai example. * Switched twai filter to using bytestrings. Co-authored-by: dimi <dimi.polonski@gmail.com> * Implemented new() for twai filters. * Clean up TWAI docs and example. * Fix filter constructors and add examples. * pre driver PeripheralRef update. * PeripheralRef/twai * Format comments with nightly rustfmt. * Add gpio PeripheralRef and use volatile for direct register access. Co-authored-by: dimi <dimi.polonski@gmail.com>
- Loading branch information
Showing
9 changed files
with
1,349 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,5 +67,6 @@ mod peripherals { | |
TIMG0, | ||
TIMG1, | ||
APB_SARADC, | ||
TWAI, | ||
} | ||
} |
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
Oops, something went wrong.