1
- /*
1
+ /*
2
2
* The MIT License (MIT)
3
3
*
4
4
* Copyright (c) 2019 Ha Thach (tinyusb.org)
@@ -48,6 +48,7 @@ bool tud_vendor_n_peek (uint8_t itf, uint8_t* ui8);
48
48
void tud_vendor_n_read_flush (uint8_t itf );
49
49
50
50
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 );
51
52
uint32_t tud_vendor_n_write_available (uint8_t itf );
52
53
53
54
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);
64
65
static inline uint32_t tud_vendor_write (void const * buffer , uint32_t bufsize );
65
66
static inline uint32_t tud_vendor_write_str (char const * str );
66
67
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 );
68
69
69
70
//--------------------------------------------------------------------+
70
71
// Application Callback API (weak is optional)
@@ -114,6 +115,11 @@ static inline uint32_t tud_vendor_write (void const* buffer, uint32_t bufsize)
114
115
return tud_vendor_n_write (0 , buffer , bufsize );
115
116
}
116
117
118
+ static inline uint32_t tud_vendor_write_flush (void )
119
+ {
120
+ return tud_vendor_n_write_flush (0 );
121
+ }
122
+
117
123
static inline uint32_t tud_vendor_write_str (char const * str )
118
124
{
119
125
return tud_vendor_n_write_str (0 , str );
@@ -124,11 +130,6 @@ static inline uint32_t tud_vendor_write_available (void)
124
130
return tud_vendor_n_write_available (0 );
125
131
}
126
132
127
- static inline uint32_t tud_vendor_flush (void )
128
- {
129
- return tud_vendor_n_flush (0 );
130
- }
131
-
132
133
//--------------------------------------------------------------------+
133
134
// Internal Class Driver API
134
135
//--------------------------------------------------------------------+
0 commit comments