summaryrefslogtreecommitdiff
path: root/code/fe310/eos/i2s_def.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2018-03-23 01:39:08 +0100
committerUros Majstorovic <majstor@majstor.org>2018-03-23 01:39:08 +0100
commitef64f315409a23e6698f536e96ef56113ddff798 (patch)
tree6a87fb7439b6f567b24c798ad9469cd95737bc3e /code/fe310/eos/i2s_def.h
parent1aaad9e44871ee421548a14dee25f710b77eba20 (diff)
fixed asm rts spi handler; added sample rate to i2s init; refactored
Diffstat (limited to 'code/fe310/eos/i2s_def.h')
-rw-r--r--code/fe310/eos/i2s_def.h5
1 files changed, 3 insertions, 2 deletions
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 */