From 838c430635b146a545033bf4f4552c02958508f2 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sun, 4 Sep 2022 18:22:50 +0200 Subject: new stereo audio driver --- fw/fe310/eos/soc/i2s_priv.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'fw/fe310/eos/soc/i2s_priv.h') 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 -- cgit v1.2.3