1f6cb8f047
This commit adds support for machine.I2S on the mimxrt port. The I2S API is consistent with the existing stm32, esp32, and rp2 implementations. I2S features: - controller transmit and controller receive - 16-bit and 32-bit sample sizes - mono and stereo formats - sampling frequencies from 8kHz to 48kHz - 3 modes of operation: - blocking - non-blocking with callback - uasyncio - configurable internal buffer - optional MCK Tested with the following development boards: - MIMXRT1010_EVK, MIMXRT1015_EVK, MIMXRT1020_EVK, MIMXRT1050_EVK - Teensy 4.0, Teensy 4.1 - Olimex RT1010 - Seeed ARCH MIX Tested with the following I2S hardware peripherals: - UDA1334 - GY-SPH0645LM4H - WM8960 codec on board the MIMXRT boards and separate breakout board - INMP441 - PCM5102 - SGTL5000 on the Teensy audio shield Signed-off-by: Mike Teachman <mike.teachman@gmail.com>
91 lines
1.5 KiB
Plaintext
Executable File
91 lines
1.5 KiB
Plaintext
Executable File
D0,GPIO_AD_B0_03
|
|
D1,GPIO_AD_B0_02
|
|
D2,GPIO_EMC_04
|
|
D3,GPIO_EMC_05
|
|
D4,GPIO_EMC_06
|
|
D5,GPIO_EMC_08
|
|
D6,GPIO_B0_10
|
|
D7,GPIO_B1_01
|
|
D8,GPIO_B1_00
|
|
D9,GPIO_B0_11
|
|
D10,GPIO_B0_00
|
|
D11,GPIO_B0_02
|
|
D12,GPIO_B0_01
|
|
D13,GPIO_B0_03
|
|
D14,GPIO_AD_B1_02
|
|
D15,GPIO_AD_B1_03
|
|
D16,GPIO_AD_B1_07
|
|
D17,GPIO_AD_B1_06
|
|
D18,GPIO_AD_B1_01
|
|
D19,GPIO_AD_B1_00
|
|
D20,GPIO_AD_B1_10
|
|
D21,GPIO_AD_B1_11
|
|
D22,GPIO_AD_B1_08
|
|
D23,GPIO_AD_B1_09
|
|
D24,GPIO_AD_B0_12
|
|
D25,GPIO_AD_B0_13
|
|
D26,GPIO_AD_B1_14
|
|
D27,GPIO_AD_B1_15
|
|
D28,GPIO_EMC_32
|
|
D29,GPIO_EMC_31
|
|
D30,GPIO_EMC_37
|
|
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