mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-28 20:09:23 +00:00
consolodate options, add 646
This commit is contained in:
parent
4caf9eade0
commit
d2e3e527d5
@ -30,19 +30,19 @@
|
|||||||
// If you want to add more to this list, reference the PINx definitions in these header
|
// If you want to add more to this list, reference the PINx definitions in these header
|
||||||
// files: https://github.com/vancegroup-mirrors/avr-libc/tree/master/avr-libc/include/avr
|
// files: https://github.com/vancegroup-mirrors/avr-libc/tree/master/avr-libc/include/avr
|
||||||
|
|
||||||
#if defined(__AVR_ATmega32U4__)
|
#if defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega16U4__)
|
||||||
#define ADDRESS_BASE 0x00
|
#define ADDRESS_BASE 0x00
|
||||||
#define PINB_ADDRESS 0x3
|
#define PINB_ADDRESS 0x3
|
||||||
#define PINC_ADDRESS 0x6
|
#define PINC_ADDRESS 0x6
|
||||||
#define PIND_ADDRESS 0x9
|
#define PIND_ADDRESS 0x9
|
||||||
#define PINE_ADDRESS 0xC
|
#define PINE_ADDRESS 0xC
|
||||||
#define PINF_ADDRESS 0xF
|
#define PINF_ADDRESS 0xF
|
||||||
#elif defined(__AVR_ATmega32U2__)
|
#elif defined(__AVR_ATmega32U2__) || defined(__AVR_ATmega16U2__)
|
||||||
#define ADDRESS_BASE 0x00
|
#define ADDRESS_BASE 0x00
|
||||||
#define PINB_ADDRESS 0x3
|
#define PINB_ADDRESS 0x3
|
||||||
#define PINC_ADDRESS 0x6
|
#define PINC_ADDRESS 0x6
|
||||||
#define PIND_ADDRESS 0x9
|
#define PIND_ADDRESS 0x9
|
||||||
#elif defined(__AVR_AT90USB1286__)
|
#elif defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB646__)
|
||||||
#define ADDRESS_BASE 0x00
|
#define ADDRESS_BASE 0x00
|
||||||
#define PINA_ADDRESS 0x0
|
#define PINA_ADDRESS 0x0
|
||||||
#define PINB_ADDRESS 0x3
|
#define PINB_ADDRESS 0x3
|
||||||
@ -56,18 +56,6 @@
|
|||||||
#define PINC_ADDRESS 0x3
|
#define PINC_ADDRESS 0x3
|
||||||
#define PINB_ADDRESS 0x6
|
#define PINB_ADDRESS 0x6
|
||||||
#define PINA_ADDRESS 0x9
|
#define PINA_ADDRESS 0x9
|
||||||
#elif defined(__AVR_ATmega16U2__)
|
|
||||||
#define ADDRESS_BASE 0x00
|
|
||||||
#define PINB_ADDRESS 0x3
|
|
||||||
#define PINC_ADDRESS 0x6
|
|
||||||
#define PIND_ADDRESS 0x9
|
|
||||||
#elif defined(__AVR_ATmega16U4__)
|
|
||||||
#define ADDRESS_BASE 0x00
|
|
||||||
#define PINB_ADDRESS 0x3
|
|
||||||
#define PINC_ADDRESS 0x6
|
|
||||||
#define PIND_ADDRESS 0x9
|
|
||||||
#define PINE_ADDRESS 0xC
|
|
||||||
#define PINF_ADDRESS 0xF
|
|
||||||
#else
|
#else
|
||||||
#error "Pins are not defined"
|
#error "Pins are not defined"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user