diff options
| author | hathach <[email protected]> | 2023-04-06 11:15:57 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-04-06 11:15:57 +0700 |
| commit | 106084289dec0146c117fad69925696b388509be (patch) | |
| tree | c7fbfbfe3b55bbc716d29c9cacc8bd5831c36989 /src/class | |
| parent | 5f327dd49fea1ae2cf73e1d371a8e9e37ac1e12f (diff) | |
add define for vendor_flush() to write_flush() for backward compatible
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/vendor/vendor_device.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/class/vendor/vendor_device.h b/src/class/vendor/vendor_device.h index 7afd49cc1..d239406b4 100644 --- a/src/class/vendor/vendor_device.h +++ b/src/class/vendor/vendor_device.h @@ -52,7 +52,9 @@ uint32_t tud_vendor_n_write_flush (uint8_t itf); uint32_t tud_vendor_n_write_available (uint8_t itf); static inline uint32_t tud_vendor_n_write_str (uint8_t itf, char const* str); -uint32_t tud_vendor_n_flush (uint8_t itf); + +// backward compatible +#define tud_vendor_n_flush(itf) tud_vendor_n_write_flush(itf) //--------------------------------------------------------------------+ // Application API (Single Port) @@ -67,6 +69,9 @@ static inline uint32_t tud_vendor_write_str (char const* str); static inline uint32_t tud_vendor_write_available (void); static inline uint32_t tud_vendor_write_flush (void); +// backward compatible +#define tud_vendor_flush() tud_vendor_write_flush() + //--------------------------------------------------------------------+ // Application Callback API (weak is optional) //--------------------------------------------------------------------+ |
