summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-17 21:20:37 +0700
committerhathach <[email protected]>2018-07-17 21:20:37 +0700
commit6129670e4a23812d1926b15c191d76538f7a325a (patch)
treee3785b364447e1b64cb030f00d63364d2b44f72c /src
parent798ce59ebd46118c7d64e9cfa54319787715ef7d (diff)
forgot to add tud_cdc_read_flush()
Diffstat (limited to 'src')
-rw-r--r--src/class/cdc/cdc_device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/class/cdc/cdc_device.h b/src/class/cdc/cdc_device.h
index 046878680..4014f5fa9 100644
--- a/src/class/cdc/cdc_device.h
+++ b/src/class/cdc/cdc_device.h
@@ -90,6 +90,7 @@ static inline void tud_cdc_set_wanted_char (char wanted)
static inline uint32_t tud_cdc_available (void) { return tud_cdc_n_available(0); }
static inline char tud_cdc_read_char (void) { return tud_cdc_n_read_char(0); }
static inline uint32_t tud_cdc_read (void* buffer, uint32_t bufsize) { return tud_cdc_n_read(0, buffer, bufsize); }
+static inline void tud_cdc_read_flush (void) { tud_cdc_n_read_flush(0); }
static inline char tud_cdc_peek (int pos) { return tud_cdc_n_peek(0, pos); }
static inline uint32_t tud_cdc_write_char (char ch) { return tud_cdc_n_write_char(0, ch); }