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>
617 B
617 B
1 | D0 | GPIO_00 |
---|---|---|
2 | D1 | GPIO_01 |
3 | D2 | GPIO_02 |
4 | D3 | GPIO_03 |
5 | D4 | GPIO_04 |
6 | D5 | GPIO_05 |
7 | D6 | GPIO_06 |
8 | D7 | GPIO_07 |
9 | D8 | GPIO_08 |
10 | D9 | GPIO_SD_00 |
11 | D10 | GPIO_SD_01 |
12 | D11 | GPIO_SD_02 |
13 | D12 | GPIO_SD_05 |
14 | D13 | GPIO_SD_12 |
15 | D14 | GPIO_SD_13 |
16 | A0 | GPIO_AD_02 |
17 | A1 | GPIO_AD_03 |
18 | A2 | GPIO_AD_04 |
19 | A3 | GPIO_AD_05 |
20 | A4 | GPIO_AD_06 |
21 | LED | GPIO_11 |
22 | SDA1 | GPIO_AD_13 |
23 | SCL1 | GPIO_AD_14 |
24 | SDA2 | GPIO_AD_07 |
25 | SCL2 | GPIO_AD_08 |
26 | SDI | GPIO_AD_09 |
27 | SDO | GPIO_AD_10 |
28 | CS0 | GPIO_AD_11 |
29 | SCK | GPIO_AD_12 |
30 | USB_OTG1_PWR | GPIO_AD_00 |
31 | BT0 | GPIO_SD_04 |
32 | BT1 | GPIO_SD_03 |
33 | RX | GPIO_09 |
34 | TX | GPIO_10 |
35 | RELAY1 | GPIO_SD_12 |
36 | RELAY2 | GPIO_SD_13 |
37 | MCK | GPIO_08 |
38 | SCK_RX | GPIO_01 |
39 | WS_RX | GPIO_02 |
40 | SD_RX | GPIO_03 |
41 | SCK_TX | GPIO_06 |
42 | WS_TX | GPIO_07 |
43 | SD_TX | GPIO_04 |