2024-04-05 01:38:12 +00:00
|
|
|
// Copyright 2024 zvecr <git@zvecr.com>
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2023-03-29 04:54:34 +00:00
|
|
|
#include "quantum.h"
|
2020-05-25 02:15:27 +00:00
|
|
|
|
2024-04-05 01:38:12 +00:00
|
|
|
void keyboard_pre_init_kb(void) {
|
2020-05-25 02:15:27 +00:00
|
|
|
// Workaround for reversible pcb/mcu
|
2024-04-05 01:38:12 +00:00
|
|
|
gpio_set_pin_output_open_drain(C13);
|
|
|
|
gpio_set_pin_output_open_drain(B9);
|
|
|
|
gpio_set_pin_output_open_drain(B8);
|
2020-05-25 02:15:27 +00:00
|
|
|
|
|
|
|
keyboard_pre_init_user();
|
|
|
|
}
|
|
|
|
|
|
|
|
void board_init(void) {
|
|
|
|
AFIO->MAPR |= AFIO_MAPR_USART1_REMAP | AFIO_MAPR_TIM3_REMAP_PARTIALREMAP;
|
|
|
|
}
|