diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-10-08 22:47:10 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-10-08 22:47:10 +0200 |
commit | 99739c5a4c3ecec5aec81711d2e5385bfe7a2b10 (patch) | |
tree | 8c5f706e7f3a97a8956b64ce12e8eff43d7b992a /code/fe310/eos/i2s_def.h | |
parent | 4c4154b1c37a8f1909836547db35dbc7029c90b1 (diff) |
fixed audio and spi pins for board REV1
Diffstat (limited to 'code/fe310/eos/i2s_def.h')
-rw-r--r-- | code/fe310/eos/i2s_def.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/code/fe310/eos/i2s_def.h b/code/fe310/eos/i2s_def.h index fc22b49..06fef72 100644 --- a/code/fe310/eos/i2s_def.h +++ b/code/fe310/eos/i2s_def.h @@ -2,16 +2,16 @@ #define I2S_EVT_SPK 0x1 #define I2S_MAX_HANDLER 2 -#define I2S_PIN_CK 1 -#define I2S_PIN_CK_SW 12 +#define I2S_PIN_CK 1 /* PWM 0.1 */ +#define I2S_PIN_CK_SW 21 /* PWM 1.2 */ #define I2S_PIN_CK_SR 18 -#define I2S_PIN_WS_MIC 11 -#define I2S_PIN_WS_SPK 19 +#define I2S_PIN_WS_MIC 19 /* PWM 1.1 */ +#define I2S_PIN_WS_SPK 11 /* PWM 2.1 */ #define I2S_PIN_SD_IN 13 -#define I2S_PIN_SD_OUT 20 +#define I2S_PIN_SD_OUT 12 -#define I2S_IRQ_WS_ID (INT_PWM1_BASE + 0) -#define I2S_IRQ_SD_ID (INT_PWM1_BASE + 2) +#define I2S_IRQ_WS_ID (INT_PWM2_BASE + 0) +#define I2S_IRQ_SD_ID (INT_PWM2_BASE + 2) #define I2S_IRQ_WS_PRIORITY 6 #define I2S_IRQ_SD_PRIORITY 7 |