mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-10-23 09:21:55 +02:00
[quantum] combine repeated lines of code (#10837)
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
# 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__) || defined(__AVR_ATmega16U2__)
|
# elif defined(__AVR_ATmega32U2__) || defined(__AVR_ATmega16U2__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega328__)
|
||||||
# define ADDRESS_BASE 0x00
|
# define ADDRESS_BASE 0x00
|
||||||
# define PINB_ADDRESS 0x3
|
# define PINB_ADDRESS 0x3
|
||||||
# define PINC_ADDRESS 0x6
|
# define PINC_ADDRESS 0x6
|
||||||
@@ -58,11 +58,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_ATmega328P__) || defined(__AVR_ATmega328__)
|
|
||||||
# define ADDRESS_BASE 0x00
|
|
||||||
# define PINB_ADDRESS 0x3
|
|
||||||
# define PINC_ADDRESS 0x6
|
|
||||||
# define PIND_ADDRESS 0x9
|
|
||||||
# elif defined(__AVR_ATtiny85__)
|
# elif defined(__AVR_ATtiny85__)
|
||||||
# define ADDRESS_BASE 0x10
|
# define ADDRESS_BASE 0x10
|
||||||
# define PINB_ADDRESS 0x6
|
# define PINB_ADDRESS 0x6
|
||||||
|
|||||||
Reference in New Issue
Block a user