From edec491d59697a635ddce7a19a870dd3e8d2f3ed Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Tue, 15 Oct 2019 18:11:40 +0200 Subject: event handler flags per evt subtype timer has evt subtypes i2s refactor i2s has spk event i2s fixed intr handler audio buf push msgq fixed get message --- code/fe310/eos/i2s_def.h | 5 ++--- 1 file changed, 2 insertions(+), 3 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 06fef72..1f7687a 100644 --- a/code/fe310/eos/i2s_def.h +++ b/code/fe310/eos/i2s_def.h @@ -1,6 +1,5 @@ -#define I2S_EVT_MIC 0x0 -#define I2S_EVT_SPK 0x1 -#define I2S_MAX_HANDLER 2 +#define I2S_ETYPE_MIC 1 +#define I2S_ETYPE_SPK 2 #define I2S_PIN_CK 1 /* PWM 0.1 */ #define I2S_PIN_CK_SW 21 /* PWM 1.2 */ -- cgit v1.2.3