summaryrefslogtreecommitdiff
path: root/code/fe310/eos/i2s.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-02-19 06:47:43 +0100
committerUros Majstorovic <majstor@majstor.org>2020-02-19 06:47:43 +0100
commit6666a131ab36b1d96a854da80524d860f9a3884b (patch)
tree5039423cb8c5592c20f8dd3aec417158ac058484 /code/fe310/eos/i2s.h
parent15bddabc5cbe0e751fadcaaa7f7c7c36bca61331 (diff)
eve long press/double tap/inertial scroll
spi flush bugfix resolved dependecies: spi -> net; event -> net renamed various handlers
Diffstat (limited to 'code/fe310/eos/i2s.h')
-rw-r--r--code/fe310/eos/i2s.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/code/fe310/eos/i2s.h b/code/fe310/eos/i2s.h
index 83c39b3..81d13f4 100644
--- a/code/fe310/eos/i2s.h
+++ b/code/fe310/eos/i2s.h
@@ -10,13 +10,13 @@ typedef struct EOSABuf {
uint8_t *array;
} EOSABuf;
-typedef void (*eos_i2s_fptr_t) (unsigned char);
+typedef void (*eos_i2s_handler_t) (unsigned char);
void eos_i2s_init(void);
void eos_i2s_start(uint32_t sample_rate, unsigned char fmt);
void eos_i2s_stop(void);
void eos_i2s_mic_init(uint8_t *mic_arr, uint16_t mic_arr_size);
-void eos_i2s_mic_set_handler(eos_i2s_fptr_t wm_handler, uint8_t flags);
+void eos_i2s_mic_set_handler(eos_i2s_handler_t wm_handler);
void eos_i2s_mic_set_wm(uint16_t wm);
uint16_t eos_i2s_mic_len(void);
uint16_t eos_i2s_mic_read(uint8_t *sample, uint16_t ssize);
@@ -25,7 +25,7 @@ int eos_i2s_mic_pop16(uint16_t *sample);
int eos_i2s_mic_vol_get(void);
void eos_i2s_mic_vol_set(int vol);
void eos_i2s_spk_init(uint8_t *mic_arr, uint16_t mic_arr_size);
-void eos_i2s_spk_set_handler(eos_i2s_fptr_t wm_handler, uint8_t flags);
+void eos_i2s_spk_set_handler(eos_i2s_handler_t wm_handler);
void eos_i2s_spk_set_wm(uint16_t wm);
uint16_t eos_i2s_spk_len(void);
uint16_t eos_i2s_spk_write(uint8_t *sample, uint16_t ssize);