Skip to content

Commit

Permalink
[quantum] combine repeated lines of code (#10837)
Browse files Browse the repository at this point in the history
  • Loading branch information
myst729 authored Nov 2, 2020
1 parent b968a53 commit 4cdd300
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions quantum/config_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
# define PIND_ADDRESS 0x9
# define PINE_ADDRESS 0xC
# 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 PINB_ADDRESS 0x3
# define PINC_ADDRESS 0x6
Expand All @@ -58,11 +58,6 @@
# define PINC_ADDRESS 0x3
# define PINB_ADDRESS 0x6
# 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__)
# define ADDRESS_BASE 0x10
# define PINB_ADDRESS 0x6
Expand Down

0 comments on commit 4cdd300

Please sign in to comment.