From ef64f315409a23e6698f536e96ef56113ddff798 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Fri, 23 Mar 2018 01:39:08 +0100 Subject: fixed asm rts spi handler; added sample rate to i2s init; refactored --- code/fe310/eos/i2s_def.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'code/fe310/eos/i2s_def.h') diff --git a/code/fe310/eos/i2s_def.h b/code/fe310/eos/i2s_def.h index 0f3207e..4a7fd85 100644 --- a/code/fe310/eos/i2s_def.h +++ b/code/fe310/eos/i2s_def.h @@ -15,15 +15,16 @@ #define I2S_IRQ_CI_ID (INT_PWM2_BASE + 2) #define I2S_IRQ_SD_PRIORITY 7 -#define I2S_IRQ_CK_PRIORITY 7 +#define I2S_IRQ_CK_PRIORITY 6 #define I2S_IRQ_WS_PRIORITY 6 -#define I2S_IRQ_CI_PRIORITY 6 +#define I2S_IRQ_CI_PRIORITY 7 #define I2S_IRQ_MASK 5 #define I2S_SMPL_BITS 13 #define I2S_SMPL_BITS_S 5 #define I2S_PWM_SCALE_CK 2 +#define I2S_PWM_SCALE_CK_MASK 0x0003 #define I2S_ABUF_SIZE_CHUNK 16 /* asm */ -- cgit v1.2.3