X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=inline;f=quantum%2Fconfig_common.h;h=bc4d9ec1af1a03a9f4d079cf0c6a8abaae93fb8e;hb=db0c1795520eea60e0092ced7048c9da7b508d37;hp=606cd9381ae02a9587d258e20fce4603e7998cca;hpb=3cf179be61a10860b2b66aecf2ec5ca6f0e30605;p=qmk_firmware.git diff --git a/quantum/config_common.h b/quantum/config_common.h index 606cd9381..bc4d9ec1a 100644 --- a/quantum/config_common.h +++ b/quantum/config_common.h @@ -21,6 +21,9 @@ #define ROW2COL 1 #define CUSTOM_MATRIX 2 /* Disables built-in matrix scanning code */ +// useful for direct pin mapping +#define NO_PIN (~0) + #ifdef __AVR__ #ifndef __ASSEMBLER__ #include @@ -56,6 +59,11 @@ #define PINC_ADDRESS 0x3 #define PINB_ADDRESS 0x6 #define PINA_ADDRESS 0x9 + #elif defined(__AVR_ATmega328P__) + #define ADDRESS_BASE 0x00 + #define PINB_ADDRESS 0x3 + #define PINC_ADDRESS 0x6 + #define PIND_ADDRESS 0x9 #else #error "Pins are not defined" #endif @@ -196,6 +204,8 @@ #define B13 PAL_LINE(GPIOB, 13) #define B14 PAL_LINE(GPIOB, 14) #define B15 PAL_LINE(GPIOB, 15) + #define B16 PAL_LINE(GPIOB, 16) + #define B17 PAL_LINE(GPIOB, 17) #define C0 PAL_LINE(GPIOC, 0) #define C1 PAL_LINE(GPIOC, 1) #define C2 PAL_LINE(GPIOC, 2)