diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2019-01-10 11:22:57 -0500 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-01-10 08:22:57 -0800 |
| commit | 3cf179be61a10860b2b66aecf2ec5ca6f0e30605 (patch) | |
| tree | 960c7bdde165f4419a96c2d48049e22226912882 /quantum/config_common.h | |
| parent | ebbc372f72993123cd24fe27228e8d07c9b8d7fb (diff) | |
| download | qmk_firmware-3cf179be61a10860b2b66aecf2ec5ca6f0e30605.tar.gz qmk_firmware-3cf179be61a10860b2b66aecf2ec5ca6f0e30605.zip | |
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.h | 40 |
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 @@ | |||
| 125 | #endif | 125 | #endif |
| 126 | 126 | ||
| 127 | #elif defined(PROTOCOL_CHIBIOS) | 127 | #elif defined(PROTOCOL_CHIBIOS) |
| 128 | // Defines mapping for Proton C replacement | ||
| 129 | #ifdef CONVERT_TO_PROTON_C | ||
| 130 | // Left side (front) | ||
| 131 | #define D3 PAL_LINE(GPIOA, 9) | ||
| 132 | #define D2 PAL_LINE(GPIOA, 10) | ||
| 133 | // GND | ||
| 134 | // GND | ||
| 135 | #define D1 PAL_LINE(GPIOB, 7) | ||
| 136 | #define D0 PAL_LINE(GPIOB, 6) | ||
| 137 | #define D4 PAL_LINE(GPIOB, 5) | ||
| 138 | #define C6 PAL_LINE(GPIOB, 4) | ||
| 139 | #define D7 PAL_LINE(GPIOB, 3) | ||
| 140 | #define E6 PAL_LINE(GPIOB, 2) | ||
| 141 | #define B4 PAL_LINE(GPIOB, 1) | ||
| 142 | #define B5 PAL_LINE(GPIOB, 0) | ||
| 143 | |||
| 144 | // Right side (front) | ||
| 145 | // RAW | ||
| 146 | // GND | ||
| 147 | // RESET | ||
| 148 | // VCC | ||
| 149 | #define F4 PAL_LINE(GPIOA, 2) | ||
| 150 | #define F5 PAL_LINE(GPIOA, 1) | ||
| 151 | #define F6 PAL_LINE(GPIOA, 0) | ||
| 152 | #define F7 PAL_LINE(GPIOB, 8) | ||
| 153 | #define B1 PAL_LINE(GPIOB, 13) | ||
| 154 | #define B3 PAL_LINE(GPIOB, 14) | ||
| 155 | #define B2 PAL_LINE(GPIOB, 15) | ||
| 156 | #define B6 PAL_LINE(GPIOB, 9) | ||
| 157 | |||
| 158 | // LEDs (only D5/C13 uses an actual LED) | ||
| 159 | #ifdef CONVERT_TO_PROTON_C_RXLED | ||
| 160 | #define D5 PAL_LINE(GPIOC, 13) | ||
| 161 | #define B0 PAL_LINE(GPIOC, 13) | ||
| 162 | #else | ||
| 163 | #define D5 PAL_LINE(GPIOC, 13) | ||
| 164 | #define B0 PAL_LINE(GPIOC, 14) | ||
| 165 | #endif | ||
| 166 | #else | ||
| 128 | #define A0 PAL_LINE(GPIOA, 0) | 167 | #define A0 PAL_LINE(GPIOA, 0) |
| 129 | #define A1 PAL_LINE(GPIOA, 1) | 168 | #define A1 PAL_LINE(GPIOA, 1) |
| 130 | #define A2 PAL_LINE(GPIOA, 2) | 169 | #define A2 PAL_LINE(GPIOA, 2) |
| @@ -221,6 +260,7 @@ | |||
| 221 | #define F13 PAL_LINE(GPIOF, 13) | 260 | #define F13 PAL_LINE(GPIOF, 13) |
| 222 | #define F14 PAL_LINE(GPIOF, 14) | 261 | #define F14 PAL_LINE(GPIOF, 14) |
| 223 | #define F15 PAL_LINE(GPIOF, 15) | 262 | #define F15 PAL_LINE(GPIOF, 15) |
| 263 | #endif | ||
| 224 | #endif | 264 | #endif |
| 225 | 265 | ||
| 226 | /* USART configuration */ | 266 | /* USART configuration */ |
