diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-01-09 17:51:35 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-01-09 17:51:35 +0100 |
commit | 4a49ee4a0dd2b75a81511519a190eaada9664930 (patch) | |
tree | 8f09ccb2d4a96515441d6c81790273058671ca78 /code/fe310/eos/i2s_def.h | |
parent | a67f35abdb7ef55c062c26251b7354d9968d385b (diff) |
i2s speaker driver added
Diffstat (limited to 'code/fe310/eos/i2s_def.h')
-rw-r--r-- | code/fe310/eos/i2s_def.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/code/fe310/eos/i2s_def.h b/code/fe310/eos/i2s_def.h index e924776..fc22b49 100644 --- a/code/fe310/eos/i2s_def.h +++ b/code/fe310/eos/i2s_def.h @@ -2,21 +2,20 @@ #define I2S_EVT_SPK 0x1 #define I2S_MAX_HANDLER 2 -#define I2S_PIN_CK 1 // pin 9 -#define I2S_PIN_CKE 12 // pin 18 -#define I2S_PIN_CKF 18 // pin 2 -#define I2S_PIN_SD 13 // pin 19 -#define I2S_PIN_WS 11 // pin 17 +#define I2S_PIN_CK 1 +#define I2S_PIN_CK_SW 12 +#define I2S_PIN_CK_SR 18 +#define I2S_PIN_WS_MIC 11 +#define I2S_PIN_WS_SPK 19 +#define I2S_PIN_SD_IN 13 +#define I2S_PIN_SD_OUT 20 -#define I2S_PIN_LR 13 // pin 19 - -#define I2S_IRQ_WS_ID (INT_PWM2_BASE + 0) -#define I2S_IRQ_SD_ID (INT_PWM2_BASE + 3) +#define I2S_IRQ_WS_ID (INT_PWM1_BASE + 0) +#define I2S_IRQ_SD_ID (INT_PWM1_BASE + 2) #define I2S_IRQ_WS_PRIORITY 6 #define I2S_IRQ_SD_PRIORITY 7 -#define I2S_SMPL_BITS 13 #define I2S_IDLE_CYCLES 8 #define I2S_PWM_SCALE_CK 2 |