esp32[c3|h2|c6]: Add support to TWAI/CANBus controller

This commit is contained in:
Eren Terzioglu
2024-04-02 18:49:57 +03:00
committed by Xiang Xiao
parent 7e30d38558
commit 891d67bb5e
32 changed files with 1786 additions and 2 deletions
@@ -175,6 +175,25 @@ 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 an external transceiver or connecting TWAI RX to TWAI TX pin by enabling
the `CONFIG_CAN_LOOPBACK` option (``Device Drivers -> CAN Driver Support -> CAN loopback mode``)
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
usbconsole
----------
@@ -148,6 +148,7 @@ Peripheral Support NOTES
ADC No
AES No
Bluetooth No
CAN/TWAI Yes
CDC Console Yes Rev.3
DMA No
eFuse No
@@ -210,6 +210,25 @@ 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 an external transceiver or connecting TWAI RX to TWAI TX pin by enabling
the `CONFIG_CAN_LOOPBACK` option (``Device Drivers -> CAN Driver Support -> CAN loopback mode``)
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
usbconsole
----------
@@ -210,6 +210,25 @@ 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 an external transceiver or connecting TWAI RX to TWAI TX pin by enabling
the `CONFIG_CAN_LOOPBACK` option (``Device Drivers -> CAN Driver Support -> CAN loopback mode``)
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
usbconsole
----------
@@ -138,7 +138,7 @@ Peripheral Support
ADC No
AES No
Bluetooth No
CAN/TWAI No
CAN/TWAI Yes
DMA No
ECC No
eFuse No
@@ -209,6 +209,25 @@ 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 an external transceiver or connecting TWAI RX to TWAI TX pin by enabling
the `CONFIG_CAN_LOOPBACK` option (``Device Drivers -> CAN Driver Support -> CAN loopback mode``)
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
usbconsole
----------
@@ -138,7 +138,7 @@ Peripheral Support
ADC No
AES No
Bluetooth No
CAN/TWAI No
CAN/TWAI Yes
DMA No
ECC No
eFuse No