mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
esp32[c3|c6|h2]: Add I2S support
Add I2S support for risc-v based Espressif devices Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
This commit is contained in:
committed by
Lup Yuen Lee
parent
f286a63223
commit
3661cdeed9
@@ -208,6 +208,29 @@ You can scan for all I2C devices using the following command::
|
||||
|
||||
nsh> i2c dev 0x00 0x7f
|
||||
|
||||
i2schar
|
||||
-------
|
||||
|
||||
This configuration enables the I2S character device and the i2schar example
|
||||
app, which provides an easy-to-use way of testing the I2S peripheral,
|
||||
enabling both the TX and the RX for those peripherals.
|
||||
|
||||
**I2S pinout**
|
||||
|
||||
============ ========== =========================================
|
||||
ESP32-C3 Pin Signal Pin Description
|
||||
============ ========== =========================================
|
||||
0 MCLK Master Clock
|
||||
4 SCLK Bit Clock (SCLK)
|
||||
5 LRCK Word Select (LRCLK)
|
||||
18 DOUT Data Out
|
||||
19 DIN Data In
|
||||
============ ========== =========================================
|
||||
|
||||
After successfully built and flashed, run on the boards's terminal::
|
||||
|
||||
nsh> i2schar
|
||||
|
||||
nimble
|
||||
------
|
||||
|
||||
|
||||
@@ -191,6 +191,29 @@ You can scan for all I2C devices using the following command::
|
||||
|
||||
nsh> i2c dev 0x00 0x7f
|
||||
|
||||
i2schar
|
||||
-------
|
||||
|
||||
This configuration enables the I2S character device and the i2schar example
|
||||
app, which provides an easy-to-use way of testing the I2S peripheral,
|
||||
enabling both the TX and the RX for those peripherals.
|
||||
|
||||
**I2S pinout**
|
||||
|
||||
============ ========== =========================================
|
||||
ESP32-C3 Pin Signal Pin Description
|
||||
============ ========== =========================================
|
||||
0 MCLK Master Clock
|
||||
4 SCLK Bit Clock (SCLK)
|
||||
5 LRCK Word Select (LRCLK)
|
||||
18 DOUT Data Out
|
||||
19 DIN Data In
|
||||
============ ========== =========================================
|
||||
|
||||
After successfully built and flashed, run on the boards's terminal::
|
||||
|
||||
nsh> i2schar
|
||||
|
||||
motor
|
||||
-------
|
||||
|
||||
|
||||
@@ -175,6 +175,29 @@ You can scan for all I2C devices using the following command::
|
||||
|
||||
nsh> i2c dev 0x00 0x7f
|
||||
|
||||
i2schar
|
||||
-------
|
||||
|
||||
This configuration enables the I2S character device and the i2schar example
|
||||
app, which provides an easy-to-use way of testing the I2S peripheral,
|
||||
enabling both the TX and the RX for those peripherals.
|
||||
|
||||
**I2S pinout**
|
||||
|
||||
============ ========== =========================================
|
||||
ESP32-C3 Pin Signal Pin Description
|
||||
============ ========== =========================================
|
||||
0 MCLK Master Clock
|
||||
4 SCLK Bit Clock (SCLK)
|
||||
5 LRCK Word Select (LRCLK)
|
||||
18 DOUT Data Out
|
||||
19 DIN Data In
|
||||
============ ========== =========================================
|
||||
|
||||
After successfully built and flashed, run on the boards's terminal::
|
||||
|
||||
nsh> i2schar
|
||||
|
||||
mcuboot_nsh
|
||||
--------------------
|
||||
|
||||
|
||||
@@ -282,7 +282,7 @@ eFuse Yes
|
||||
GPIO Yes
|
||||
HMAC No
|
||||
I2C Yes
|
||||
I2S No
|
||||
I2S Yes
|
||||
Int. Temp. Yes
|
||||
LED No
|
||||
LED_PWM Yes
|
||||
|
||||
@@ -174,6 +174,29 @@ You can scan for all I2C devices using the following command::
|
||||
|
||||
nsh> i2c dev 0x00 0x7f
|
||||
|
||||
i2schar
|
||||
-------
|
||||
|
||||
This configuration enables the I2S character device and the i2schar example
|
||||
app, which provides an easy-to-use way of testing the I2S peripheral,
|
||||
enabling both the TX and the RX for those peripherals.
|
||||
|
||||
**I2S pinout**
|
||||
|
||||
============ ========== =========================================
|
||||
ESP32-C3 Pin Signal Pin Description
|
||||
============ ========== =========================================
|
||||
0 MCLK Master Clock
|
||||
4 SCLK Bit Clock (SCLK)
|
||||
5 LRCK Word Select (LRCLK)
|
||||
10 DOUT Data Out
|
||||
11 DIN Data In
|
||||
============ ========== =========================================
|
||||
|
||||
After successfully built and flashed, run on the boards's terminal::
|
||||
|
||||
nsh> i2schar
|
||||
|
||||
mcuboot_nsh
|
||||
--------------------
|
||||
|
||||
|
||||
@@ -282,7 +282,7 @@ eFuse Yes
|
||||
GPIO Yes
|
||||
HMAC No
|
||||
I2C Yes
|
||||
I2S No
|
||||
I2S Yes
|
||||
Int. Temp. Yes
|
||||
LED No
|
||||
LED_PWM Yes
|
||||
|
||||
Reference in New Issue
Block a user