diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-04-08 02:27:15 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-04-08 02:27:15 +0200 |
commit | 66e53b7e54878e2161f5c0dab6f90aebd9a1d97a (patch) | |
tree | 9ad45a813794be241123596531c993f471c01eb8 /fw/fe310/eos/i2s_def.h | |
parent | 4566511371a8a80201c1adb0535cde722cbd9b48 (diff) |
added board.h
Diffstat (limited to 'fw/fe310/eos/i2s_def.h')
-rw-r--r-- | fw/fe310/eos/i2s_def.h | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/fw/fe310/eos/i2s_def.h b/fw/fe310/eos/i2s_def.h index 3a09982..1af70bb 100644 --- a/fw/fe310/eos/i2s_def.h +++ b/fw/fe310/eos/i2s_def.h @@ -1,24 +1,5 @@ -#define I2S_ETYPE_MIC 1 -#define I2S_ETYPE_SPK 2 +#define EOS_I2S_FMT_ALAW 0 +#define EOS_I2S_FMT_PCM16 1 -#define I2S_PIN_CK 1 /* PWM 0.1 */ -#define I2S_PIN_CK_SW 21 /* PWM 1.2 */ -#define I2S_PIN_CK_SR 18 -#define I2S_PIN_WS_MIC 19 /* PWM 1.1 */ -#define I2S_PIN_WS_SPK 11 /* PWM 2.1 */ -#define I2S_PIN_SD_IN 13 -#define I2S_PIN_SD_OUT 12 - -#define I2S_IRQ_WS_ID (INT_PWM2_BASE + 0) -#define I2S_IRQ_SD_ID (INT_PWM2_BASE + 3) - -#define I2S_IDLE_CYCLES 8 - -#define I2S_PWM_SCALE_CK 2 -#define I2S_PWM_SCALE_CK_MASK 0x0003 - -/* asm */ -#define I2S_ABUF_OFF_IDXR 0 -#define I2S_ABUF_OFF_IDXW 2 -#define I2S_ABUF_OFF_SIZE 4 -#define I2S_ABUF_OFF_ARRAY 8 +#define EOS_I2S_ETYPE_MIC 1 +#define EOS_I2S_ETYPE_SPK 2 |