Skip to content

Commit faaed19

Browse files
authored
Update vendor_device.h
1 parent 5add4c9 commit faaed19

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/class/vendor/vendor_device.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* The MIT License (MIT)
33
*
44
* Copyright (c) 2019 Ha Thach (tinyusb.org)
@@ -48,6 +48,7 @@ bool tud_vendor_n_peek (uint8_t itf, uint8_t* ui8);
4848
void tud_vendor_n_read_flush (uint8_t itf);
4949

5050
uint32_t tud_vendor_n_write (uint8_t itf, void const* buffer, uint32_t bufsize);
51+
uint32_t tud_vendor_n_write_flush (uint8_t itf);
5152
uint32_t tud_vendor_n_write_available (uint8_t itf);
5253

5354
static inline uint32_t tud_vendor_n_write_str (uint8_t itf, char const* str);
@@ -64,7 +65,7 @@ static inline void tud_vendor_read_flush (void);
6465
static inline uint32_t tud_vendor_write (void const* buffer, uint32_t bufsize);
6566
static inline uint32_t tud_vendor_write_str (char const* str);
6667
static inline uint32_t tud_vendor_write_available (void);
67-
static inline uint32_t tud_vendor_flush (void);
68+
static inline uint32_t tud_vendor_write_flush (void);
6869

6970
//--------------------------------------------------------------------+
7071
// Application Callback API (weak is optional)
@@ -114,6 +115,11 @@ static inline uint32_t tud_vendor_write (void const* buffer, uint32_t bufsize)
114115
return tud_vendor_n_write(0, buffer, bufsize);
115116
}
116117

118+
static inline uint32_t tud_vendor_write_flush (void)
119+
{
120+
return tud_vendor_n_write_flush(0);
121+
}
122+
117123
static inline uint32_t tud_vendor_write_str (char const* str)
118124
{
119125
return tud_vendor_n_write_str(0, str);
@@ -124,11 +130,6 @@ static inline uint32_t tud_vendor_write_available (void)
124130
return tud_vendor_n_write_available(0);
125131
}
126132

127-
static inline uint32_t tud_vendor_flush (void)
128-
{
129-
return tud_vendor_n_flush(0);
130-
}
131-
132133
//--------------------------------------------------------------------+
133134
// Internal Class Driver API
134135
//--------------------------------------------------------------------+

0 commit comments

Comments
 (0)