I2S Write
Functional Overview
Once this application is launched, it performs the following operations:
Initialize the I2S controller driver
Allocate a buffer of a fixed length
Send data via I2S
Wait for the transmission to complete
Environmental Requirements
The demo uses an EVB board
The default GPIO used is configured in the device table
Compilation and Flashing
Example location: examples/peripheral/i2s
For compilation, flashing, and other operations, please refer to: Quick Start
Running result
Successfully running will output the following logs
D/dt [0.002] add device iflash
D/ptb [0.002] partition table base 0xe000
D/ft [0.002] ft_0 base 0, ft_1 base 1000
D/ft [0.004] ft init too
D/ft [0.004] ft init 1
D/main [0.004] boot reason 0
D/main [0.004] heap size 273144(266.74KB)
D/main [0.004] flash size 0x200000(2MB)
D/dt [0.006] add device i2s
I/I2S DRV [0.006] clock:160000000, bitrate:256000, mclk:1, mdiv:39, bdiv:625
I/I2S DRV [0.008] GPIO[07] configured!
I/I2S DRV [0.008] GPIO[08] configured!
I/I2S DRV [0.008] GPIO[09] configured!
I/I2S DRV [0.008] GPIO[10] configured!
I/I2S DRV [0.008] GPIO[11] configured!
I/I2S DRV [0.010] Driver i2s was successfully initialized.
I/I2S [0.140] I2S send 1 pkt done!
I/I2S HAL [0.140] Stop tx DMA
I/I2S HAL [0.140] Stop tx DMA
I/I2S DRV [0.140] I2S driver de-initialized!