summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/soc/i2s_priv.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-09-04 18:22:50 +0200
committerUros Majstorovic <majstor@majstor.org>2022-09-04 18:22:50 +0200
commit838c430635b146a545033bf4f4552c02958508f2 (patch)
treef305dbe0d6757453cdfd42b25de8097070787ff3 /fw/fe310/eos/soc/i2s_priv.h
parent4c96cd2d5f7cb8de7d48b5dbd728af7fda572d9d (diff)
new stereo audio driver
Diffstat (limited to 'fw/fe310/eos/soc/i2s_priv.h')
-rw-r--r--fw/fe310/eos/soc/i2s_priv.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fw/fe310/eos/soc/i2s_priv.h b/fw/fe310/eos/soc/i2s_priv.h
index 25237c3..bc3cb1a 100644
--- a/fw/fe310/eos/soc/i2s_priv.h
+++ b/fw/fe310/eos/soc/i2s_priv.h
@@ -6,3 +6,12 @@
#define I2S_ABUF_OFF_IDXW 2
#define I2S_ABUF_OFF_SIZE 4
#define I2S_ABUF_OFF_ARRAY 8
+
+#define I2S_IRQ_SD_ID INT_GPIO_BASE + I2S_PIN_INT
+
+#define I2S_CTRL_ADDR_CK PWM0_CTRL_ADDR
+#define I2S_CTRL_ADDR_WS PWM1_CTRL_ADDR
+#define I2S_CTRL_ADDR_SR_SEL PWM2_CTRL_ADDR
+
+#define I2S_IDLE1_CYCLES 4
+#define I2S_IDLE2_CYCLES 4