summaryrefslogtreecommitdiffstats
path: root/quantum/config_common.h
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2019-01-10 17:22:57 +0100
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-01-10 17:22:57 +0100
commit3cf179be61a10860b2b66aecf2ec5ca6f0e30605 (patch)
tree960c7bdde165f4419a96c2d48049e22226912882 /quantum/config_common.h
parentebbc372f72993123cd24fe27228e8d07c9b8d7fb (diff)
downloadqmk_firmware-3cf179be61a10860b2b66aecf2ec5ca6f0e30605.tar.gz
qmk_firmware-3cf179be61a10860b2b66aecf2ec5ca6f0e30605.tar.xz
Adds Proton C Conversion (#4661)
* adds proton c base * fixes custom matrix include * adds readme.md * initial proton coversion, no pin mapping * start of mcu selection * add pin mapping and sweet16 test * add at90 to list * disable backlight, fix d7 * update flag names * doc updates * proton c update for mcu selection
Diffstat (limited to 'quantum/config_common.h')
-rw-r--r--quantum/config_common.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/quantum/config_common.h b/quantum/config_common.h
index cbff372ea..606cd9381 100644
--- a/quantum/config_common.h
+++ b/quantum/config_common.h
@@ -125,6 +125,45 @@
#endif
#elif defined(PROTOCOL_CHIBIOS)
+ // Defines mapping for Proton C replacement
+ #ifdef CONVERT_TO_PROTON_C
+ // Left side (front)
+ #define D3 PAL_LINE(GPIOA, 9)
+ #define D2 PAL_LINE(GPIOA, 10)
+ // GND
+ // GND
+ #define D1 PAL_LINE(GPIOB, 7)
+ #define D0 PAL_LINE(GPIOB, 6)
+ #define D4 PAL_LINE(GPIOB, 5)
+ #define C6 PAL_LINE(GPIOB, 4)
+ #define D7 PAL_LINE(GPIOB, 3)
+ #define E6 PAL_LINE(GPIOB, 2)
+ #define B4 PAL_LINE(GPIOB, 1)
+ #define B5 PAL_LINE(GPIOB, 0)
+
+ // Right side (front)
+ // RAW
+ // GND
+ // RESET
+ // VCC
+ #define F4 PAL_LINE(GPIOA, 2)
+ #define F5 PAL_LINE(GPIOA, 1)
+ #define F6 PAL_LINE(GPIOA, 0)
+ #define F7 PAL_LINE(GPIOB, 8)
+ #define B1 PAL_LINE(GPIOB, 13)
+ #define B3 PAL_LINE(GPIOB, 14)
+ #define B2 PAL_LINE(GPIOB, 15)
+ #define B6 PAL_LINE(GPIOB, 9)
+
+ // LEDs (only D5/C13 uses an actual LED)
+ #ifdef CONVERT_TO_PROTON_C_RXLED
+ #define D5 PAL_LINE(GPIOC, 13)
+ #define B0 PAL_LINE(GPIOC, 13)
+ #else
+ #define D5 PAL_LINE(GPIOC, 13)
+ #define B0 PAL_LINE(GPIOC, 14)
+ #endif
+ #else
#define A0 PAL_LINE(GPIOA, 0)
#define A1 PAL_LINE(GPIOA, 1)
#define A2 PAL_LINE(GPIOA, 2)
@@ -221,6 +260,7 @@
#define F13 PAL_LINE(GPIOF, 13)
#define F14 PAL_LINE(GPIOF, 14)
#define F15 PAL_LINE(GPIOF, 15)
+ #endif
#endif
/* USART configuration */