diff options
Diffstat (limited to 'keyboards/preonic/rev3/mcuconf.h')
-rw-r--r-- | keyboards/preonic/rev3/mcuconf.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/keyboards/preonic/rev3/mcuconf.h b/keyboards/preonic/rev3/mcuconf.h new file mode 100644 index 000000000..fbc4e7ca6 --- /dev/null +++ b/keyboards/preonic/rev3/mcuconf.h | |||
@@ -0,0 +1,30 @@ | |||
1 | /* Copyright 2021 QMK Contributors | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 3 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include_next "mcuconf.h" | ||
18 | |||
19 | // The SysTick timer from the normal quantum/stm32 uses TIM2 -- the WS2812 pin used | ||
20 | // on the Planck requires the use of TIM2 to run PWM -- rework which timers are | ||
21 | // allocated for PWM usage. | ||
22 | #undef STM32_PWM_USE_TIM2 | ||
23 | #undef STM32_PWM_USE_TIM3 | ||
24 | #define STM32_PWM_USE_TIM2 TRUE | ||
25 | #define STM32_PWM_USE_TIM3 FALSE | ||
26 | |||
27 | // As mentioned above, we need to reallocate the SysTick timer used from | ||
28 | // TIM2 to TIM3. | ||
29 | #undef STM32_ST_USE_TIMER | ||
30 | #define STM32_ST_USE_TIMER 3 | ||