xtensa/esp32s2: Add support to TWAI/CANBus controller

This commit is contained in:
Eren Terzioglu
2023-08-25 14:50:49 +03:00
committed by Xiang Xiao
parent fc76b9955c
commit ded321a515
20 changed files with 2472 additions and 17 deletions
@@ -295,4 +295,22 @@ After successfully built and flashed, run on the boards' terminal::
16 bits/sample and 48KHz. These arguments can be supplied to select
different audio formats, for instance::
nxlooper> loopback 2 8 44100
nxlooper> loopback 2 8 44100
twai
----
This configuration enables the support for the TWAI (Two-Wire Automotive Interface) driver.
You can test it by connecting TWAI RX and TWAI TX pins which are GPIO0 and GPIO2 by default
to a external transceiver or connecting TWAI RX to TWAI TX pin by enabling
the ``Device Drivers -> CAN Driver Support -> CAN loopback mode`` option and running the ``can`` example::
nsh> can
nmsgs: 0
min ID: 1 max ID: 2047
Bit timing:
Baud: 1000000
TSEG1: 15
TSEG2: 4
SJW: 3
ID: 1 DLC: 1
@@ -348,6 +348,24 @@ To test it, just run the following::
Where x in the timer instance.
twai
----
This configuration enables the support for the TWAI (Two-Wire Automotive Interface) driver.
You can test it by connecting TWAI RX and TWAI TX pins which are GPIO0 and GPIO2 by default
to a external transceiver or connecting TWAI RX to TWAI TX pin by enabling
the ``Device Drivers -> CAN Driver Support -> CAN loopback mode`` option and running the ``can`` example::
nsh> can
nmsgs: 0
min ID: 1 max ID: 2047
Bit timing:
Baud: 1000000
TSEG1: 15
TSEG2: 4
SJW: 3
ID: 1 DLC: 1
watchdog
--------
@@ -98,7 +98,7 @@ Peripheral Support NOTES
========== ======= =====
ADC No
AES No
CAN/TWAI No
CAN/TWAI Yes
DMA Yes
eFuse No
Ethernet No