@ -1,45 +1,10 @@ | |||
/* Copyright 2020 zvecr <git@zvecr.com> | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation, either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
*/ | |||
// Copyright 2024 zvecr <git@zvecr.com> | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#pragma once | |||
#define SPLIT_HAND_PIN B3 | |||
#define SELECT_SOFT_SERIAL_SPEED 0 | |||
#define WS2812_PWM_DRIVER PWMD3 | |||
#define WS2812_PWM_CHANNEL 1 | |||
#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM3 | |||
#define WS2812_PWM_DMA_CHANNEL 3 | |||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | |||
#define LOCKING_SUPPORT_ENABLE | |||
/* Locking resynchronize hack */ | |||
#define LOCKING_RESYNC_ENABLE | |||
/* | |||
* Feature disable options | |||
* These options are also useful to firmware size reduction. | |||
*/ | |||
/* disable debug print */ | |||
//#define NO_DEBUG | |||
/* disable print */ | |||
//#define NO_PRINT | |||
/* disable action features */ | |||
//#define NO_ACTION_LAYER | |||
//#define NO_ACTION_TAPPING | |||
//#define NO_ACTION_ONESHOT |
@ -1,19 +1 @@ | |||
# Build Options | |||
# change yes to no to disable | |||
# | |||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | |||
MOUSEKEY_ENABLE = yes # Mouse keys | |||
EXTRAKEY_ENABLE = yes # Audio control and System control | |||
CONSOLE_ENABLE = no # Console for debug | |||
COMMAND_ENABLE = no # Commands for debug and configuration | |||
NKRO_ENABLE = yes # Enable N-Key Rollover | |||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | |||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | |||
AUDIO_ENABLE = no # Audio output | |||
SPLIT_KEYBOARD = yes | |||
SERIAL_DRIVER = usart | |||
# Disable unsupported hardware | |||
AUDIO_SUPPORTED = no | |||
BACKLIGHT_SUPPORTED = no |
@ -1,5 +1,3 @@ | |||
{ | |||
"processor": "STM32F401", | |||
"bootloader": "stm32-dfu", | |||
"board": "BLACKPILL_STM32_F401" | |||
"development_board": "blackpill_f401" | |||
} |
@ -0,0 +1 @@ | |||
SERIAL_DRIVER = usart |
@ -1,5 +1,3 @@ | |||
{ | |||
"processor": "STM32F411", | |||
"bootloader": "stm32-dfu", | |||
"board": "BLACKPILL_STM32_F411" | |||
"development_board": "blackpill_f411" | |||
} |
@ -0,0 +1 @@ | |||
SERIAL_DRIVER = usart |
@ -1,19 +0,0 @@ | |||
# Build Options | |||
# change yes to no to disable | |||
# | |||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | |||
KEYBOARD_SHARED_EP = yes # Free up some extra endpoints - needed if console+mouse+extra | |||
MOUSEKEY_ENABLE = yes # Mouse keys | |||
EXTRAKEY_ENABLE = yes # Audio control and System control | |||
CONSOLE_ENABLE = no # Console for debug | |||
COMMAND_ENABLE = no # Commands for debug and configuration | |||
NKRO_ENABLE = yes # Enable N-Key Rollover | |||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | |||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | |||
ENCODER_ENABLE = yes # Enable rotary encoder support | |||
AUDIO_ENABLE = no # Audio output | |||
SPLIT_KEYBOARD = yes | |||
SERIAL_DRIVER = usart | |||
DEFAULT_FOLDER = zvecr/zv48/f401 |
@ -1,27 +1,15 @@ | |||
/* Copyright 2020 zvecr <git@zvecr.com> | |||
* | |||
* This program is free software: you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation, either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
*/ | |||
// Copyright 2024 zvecr <git@zvecr.com> | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#include "quantum.h" | |||
void keyboard_pre_init_kb(void){ | |||
void keyboard_pre_init_kb(void) { | |||
// Workaround for reversible pcb/mcu | |||
palSetLineMode(C13, PAL_MODE_INPUT_PULLUP); | |||
palSetLineMode(C15, PAL_MODE_INPUT_PULLUP); | |||
palSetLineMode(B7, PAL_MODE_OUTPUT_OPENDRAIN); | |||
palSetLineMode(A0, PAL_MODE_OUTPUT_OPENDRAIN); | |||
palSetLineMode(A1, PAL_MODE_OUTPUT_OPENDRAIN); | |||
gpio_set_pin_input_high(C13); | |||
gpio_set_pin_input_high(C15); | |||
gpio_set_pin_output_open_drain(B7); | |||
gpio_set_pin_output_open_drain(A0); | |||
gpio_set_pin_output_open_drain(A1); | |||
keyboard_pre_init_user(); | |||
} |