diff options
author | tmk <nobody@nowhere> | 2012-03-04 01:12:35 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2012-03-04 01:23:44 +0900 |
commit | 446f87f9e82e57fdc255cab3051a4b598fa4da75 (patch) | |
tree | b0aa46d9dfad0b83d1386e7d2c8f686df08d8d49 /pjrc/usb.h | |
parent | e157aa7f91814864a75ecdb84188a443d63acc86 (diff) | |
download | qmk_firmware-446f87f9e82e57fdc255cab3051a4b598fa4da75.tar.gz qmk_firmware-446f87f9e82e57fdc255cab3051a4b598fa4da75.zip |
Fiexed AT90USB162 compatibility.(different number of endpoint)
Diffstat (limited to 'pjrc/usb.h')
-rw-r--r-- | pjrc/usb.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pjrc/usb.h b/pjrc/usb.h index 82e18f1763..0eb58fc395 100644 --- a/pjrc/usb.h +++ b/pjrc/usb.h @@ -53,7 +53,13 @@ void usb_remote_wakeup(void); ((s) == 16 ? 0x10 : \ 0x00))) -#define MAX_ENDPOINT 4 +#if defined (__AVR_AT90USB162__) || defined (__AVR_AT90USB82__) +# define MAX_ENDPOINT 4 +# define UERST_MASK 0x1E +#else +# define MAX_ENDPOINT 6 +# define UERST_MASK 0x7E +#endif #define LSB(n) (n & 255) #define MSB(n) ((n >> 8) & 255) |