aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/planck/ez/halconf.h23
-rw-r--r--keyboards/planck/ez/mcuconf.h41
-rw-r--r--keyboards/planck/ez/rules.mk17
3 files changed, 73 insertions, 8 deletions
diff --git a/keyboards/planck/ez/halconf.h b/keyboards/planck/ez/halconf.h
new file mode 100644
index 000000000..f1044867f
--- /dev/null
+++ b/keyboards/planck/ez/halconf.h
@@ -0,0 +1,23 @@
1/* Copyright 2021 QMK
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 <https://www.gnu.org/licenses/>.
15 */
16#pragma once
17
18#define HAL_USE_I2C TRUE
19#define HAL_USE_GPT TRUE
20#define HAL_USE_DAC TRUE
21#define HAL_USE_PWM TRUE
22
23#include_next <halconf.h>
diff --git a/keyboards/planck/ez/mcuconf.h b/keyboards/planck/ez/mcuconf.h
new file mode 100644
index 000000000..44035e782
--- /dev/null
+++ b/keyboards/planck/ez/mcuconf.h
@@ -0,0 +1,41 @@
1/* Copyright 2021 QMK
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 <https://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#include_next "mcuconf.h"
20
21// for i2c expander, and ISSI
22#undef STM32_I2C_USE_I2C1
23#define STM32_I2C_USE_I2C1 TRUE
24
25// for indicator LEDs
26#undef STM32_PWM_USE_TIM3
27#define STM32_PWM_USE_TIM3 TRUE
28#undef STM32_PWM_USE_TIM4
29#define STM32_PWM_USE_TIM4 TRUE
30
31// for audio
32#undef STM32_DAC_USE_DAC1_CH1
33#define STM32_DAC_USE_DAC1_CH1 TRUE
34#undef STM32_DAC_USE_DAC1_CH2
35#define STM32_DAC_USE_DAC1_CH2 TRUE
36#undef STM32_GPT_USE_TIM6
37#define STM32_GPT_USE_TIM6 TRUE
38#undef STM32_GPT_USE_TIM7
39#define STM32_GPT_USE_TIM7 TRUE
40#undef STM32_GPT_USE_TIM8
41#define STM32_GPT_USE_TIM8 TRUE
diff --git a/keyboards/planck/ez/rules.mk b/keyboards/planck/ez/rules.mk
index a570a9c3c..f17afe362 100644
--- a/keyboards/planck/ez/rules.mk
+++ b/keyboards/planck/ez/rules.mk
@@ -1,6 +1,5 @@
1# MCU name 1# MCU name
2MCU = STM32F303 2MCU = STM32F303
3BOARD = QMK_PROTON_C
4 3
5# Bootloader selection 4# Bootloader selection
6BOOTLOADER = stm32-dfu 5BOOTLOADER = stm32-dfu
@@ -9,23 +8,25 @@ BOOTLOADER = stm32-dfu
9# change to "no" to disable the options, or define them in the Makefile in 8# change to "no" to disable the options, or define them in the Makefile in
10# the appropriate keymap folder that will get included automatically 9# the appropriate keymap folder that will get included automatically
11# 10#
12BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite 11BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
13MOUSEKEY_ENABLE = yes # Mouse keys 12MOUSEKEY_ENABLE = yes # Mouse keys
14EXTRAKEY_ENABLE = yes # Audio control and System control 13EXTRAKEY_ENABLE = yes # Audio control and System control
15CONSOLE_ENABLE = yes # Console for debug 14CONSOLE_ENABLE = yes # Console for debug
16COMMAND_ENABLE = yes # Commands for debug and configuration 15COMMAND_ENABLE = yes # Commands for debug and configuration
17NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 16NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 17BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
19AUDIO_ENABLE = yes # Audio output on port C6 18AUDIO_ENABLE = yes # Audio output
20UNICODE_ENABLE = no # Unicode
21RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. 19RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
22 20
23# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 21# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
24SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 22SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
25#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
26 23
27ENCODER_ENABLE = yes 24ENCODER_ENABLE = yes
28RGB_MATRIX_DRIVER = IS31FL3737 25RGB_MATRIX_DRIVER = IS31FL3737
29 26
30LAYOUTS = ortho_4x12 planck_mit 27LAYOUTS = ortho_4x12 planck_mit
31LAYOUTS_HAS_RGB = no 28LAYOUTS_HAS_RGB = no
29
30RGB_MATRIX_SUPPORTED = yes
31RGBLIGHT_SUPPORTED = no
32BAKCLIGHT_SUPPORTED = no