mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-25 12:46:41 +00:00
Update keyboards/yunzii/al68/al68.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
parent
7b903c7b27
commit
5c867196a9
@ -23,8 +23,8 @@
|
|||||||
void keyboard_pre_init_kb(void) {
|
void keyboard_pre_init_kb(void) {
|
||||||
AFIO->MAPR = (AFIO->MAPR & ~AFIO_MAPR_SWJ_CFG_Msk);
|
AFIO->MAPR = (AFIO->MAPR & ~AFIO_MAPR_SWJ_CFG_Msk);
|
||||||
AFIO->MAPR|= AFIO_MAPR_SWJ_CFG_DISABLE; //diable JTAG (GD32 different to STM32)
|
AFIO->MAPR|= AFIO_MAPR_SWJ_CFG_DISABLE; //diable JTAG (GD32 different to STM32)
|
||||||
setPinOutput(A8);
|
gpio_set_pin_output(A8);
|
||||||
writePinHigh(A8); //ENABLE USB
|
gpio_write_pin_high(A8); //ENABLE USB
|
||||||
uart_init(460800);
|
uart_init(460800);
|
||||||
wait_ms(400);
|
wait_ms(400);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user