can: Add support for lower bit rates

This commit adds support for lower bit rates in the CAN Driver for
ESP32 Rev 2 or later chips.
This commit is contained in:
Darian
2019-10-17 12:33:17 +08:00
committed by Angus Gratton
parent 7016cb8864
commit 820fd6447d
4 changed files with 45 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ typedef union {
uint32_t tx: 1; /* IER.1 Transmit Interrupt Enable */
uint32_t err_warn: 1; /* IER.2 Error Interrupt Enable */
uint32_t data_overrun: 1; /* IER.3 Data Overrun Interrupt Enable */
uint32_t reserved1: 1; /* Internal Reserved (Wake-up not supported) */
uint32_t brp_div: 1; /* THIS IS NOT AN INTERRUPT. brp_div will prescale BRP by 2. Only available on ESP32 Revision 2 or later. Reserved otherwise */
uint32_t err_passive: 1; /* IER.5 Error Passive Interrupt Enable */
uint32_t arb_lost: 1; /* IER.6 Arbitration Lost Interrupt Enable */
uint32_t bus_err: 1; /* IER.7 Bus Error Interrupt Enable */