diff options
author | Uros Majstorovic <majstor@majstor.org> | 2018-03-17 01:56:21 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2018-03-17 01:56:21 +0100 |
commit | 723b3db6942c8b3f51a819870df6e523008c2ed0 (patch) | |
tree | 6053da05f47b4031745e7e69af051a4b658861d1 /code/fe310/eos/i2s_def.h | |
parent | b623f680f6a7aa53de6a1d949d857b37f391c80d (diff) |
pwm scaling for i2s sck line added
Diffstat (limited to 'code/fe310/eos/i2s_def.h')
-rw-r--r-- | code/fe310/eos/i2s_def.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/code/fe310/eos/i2s_def.h b/code/fe310/eos/i2s_def.h index 4b7620e..99aabbe 100644 --- a/code/fe310/eos/i2s_def.h +++ b/code/fe310/eos/i2s_def.h @@ -2,14 +2,15 @@ #define I2S_EVT_SPK 0x1 #define I2S_MAX_HANDLER 2 -#define I2S_PIN_CK 19 // pin 3 -#define I2S_PIN_WS 11 // pin 17 #define I2S_PIN_SD 12 // pin 18 +// #define I2S_PIN_CK 19 // pin 3 +#define I2S_PIN_CK 1 // pin 9 +#define I2S_PIN_WS 11 // pin 17 #define I2S_PIN_LR 13 // pin 19 -#define I2S_IRQ_SD_ID (INT_PWM1_BASE + 2) -#define I2S_IRQ_CK_ID (INT_PWM1_BASE + 0) +#define I2S_IRQ_SD_ID (INT_PWM0_BASE + 2) +#define I2S_IRQ_CK_ID (INT_PWM0_BASE + 0) #define I2S_IRQ_WS_ID (INT_PWM2_BASE + 0) #define I2S_IRQ_CI_ID (INT_PWM2_BASE + 2) @@ -22,6 +23,7 @@ #define I2S_SMPL_BITS 13 #define I2S_SMPL_BITS_S 5 +#define I2S_PWM_SCALE_CK 2 #define I2S_ABUF_SIZE_CHUNK 64 /* asm */ |