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