diff options
| author | hathach <[email protected]> | 2013-11-13 14:00:39 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-13 14:00:39 +0700 |
| commit | 7d84139bd4e69e0b4cb42fb638a7a6d52afe93de (patch) | |
| tree | 66247225ca9ced6cf01b3e5135a53ab0625f307a /tinyusb/common | |
| parent | 92d9c36dbcfd933f872c91ad061e2e5ab184b020 (diff) | |
fix potential issue with stall endpoints
NOTE: cannot able to STALL control OUT endpoints --> unsupported with data out request may got to an issue.
clean up configure, add max string descriptor configure as windows sometimes ask for string @ index 238 !!!
Diffstat (limited to 'tinyusb/common')
| -rw-r--r-- | tinyusb/common/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tinyusb/common/common.h b/tinyusb/common/common.h index 82b64576c..4ea40b0e2 100644 --- a/tinyusb/common/common.h +++ b/tinyusb/common/common.h @@ -92,6 +92,8 @@ #define STRING_CONCAT_(a, b) a##b // concat without expand #define XSTRING_CONCAT_(a, b) STRING_CONCAT_(a, b) // expand then concat +#define MAX_OF(a, b) ( (a) > (b) ? (a) : (b) ) + #define U16_HIGH_U8(u16) ((uint8_t) (((u16) >> 8) & 0x00ff)) #define U16_LOW_U8(u16) ((uint8_t) ((u16) & 0x00ff)) #define U16_TO_U8S_BE(u16) U16_HIGH_U8(u16), U16_LOW_U8(u16) |
