diff options
| -rw-r--r-- | keyboards/planck/ez/halconf.h | 23 | ||||
| -rw-r--r-- | keyboards/planck/ez/mcuconf.h | 41 | ||||
| -rw-r--r-- | keyboards/planck/ez/rules.mk | 17 |
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 |
| 2 | MCU = STM32F303 | 2 | MCU = STM32F303 |
| 3 | BOARD = QMK_PROTON_C | ||
| 4 | 3 | ||
| 5 | # Bootloader selection | 4 | # Bootloader selection |
| 6 | BOOTLOADER = stm32-dfu | 5 | BOOTLOADER = 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 | # |
| 12 | BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite | 11 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite |
| 13 | MOUSEKEY_ENABLE = yes # Mouse keys | 12 | MOUSEKEY_ENABLE = yes # Mouse keys |
| 14 | EXTRAKEY_ENABLE = yes # Audio control and System control | 13 | EXTRAKEY_ENABLE = yes # Audio control and System control |
| 15 | CONSOLE_ENABLE = yes # Console for debug | 14 | CONSOLE_ENABLE = yes # Console for debug |
| 16 | COMMAND_ENABLE = yes # Commands for debug and configuration | 15 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 17 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 16 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 18 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | 17 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
| 19 | AUDIO_ENABLE = yes # Audio output on port C6 | 18 | AUDIO_ENABLE = yes # Audio output |
| 20 | UNICODE_ENABLE = no # Unicode | ||
| 21 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | 19 | RGBLIGHT_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 |
| 24 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 25 | #SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | ||
| 26 | 23 | ||
| 27 | ENCODER_ENABLE = yes | 24 | ENCODER_ENABLE = yes |
| 28 | RGB_MATRIX_DRIVER = IS31FL3737 | 25 | RGB_MATRIX_DRIVER = IS31FL3737 |
| 29 | 26 | ||
| 30 | LAYOUTS = ortho_4x12 planck_mit | 27 | LAYOUTS = ortho_4x12 planck_mit |
| 31 | LAYOUTS_HAS_RGB = no | 28 | LAYOUTS_HAS_RGB = no |
| 29 | |||
| 30 | RGB_MATRIX_SUPPORTED = yes | ||
| 31 | RGBLIGHT_SUPPORTED = no | ||
| 32 | BAKCLIGHT_SUPPORTED = no | ||
