Update keyboards/yunzii/al68/al68.c

Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
yunzii keyboard 2024-08-28 11:29:46 +08:00 committed by GitHub
parent 7b903c7b27
commit 5c867196a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,8 +23,8 @@
void keyboard_pre_init_kb(void) {
AFIO->MAPR = (AFIO->MAPR & ~AFIO_MAPR_SWJ_CFG_Msk);
AFIO->MAPR|= AFIO_MAPR_SWJ_CFG_DISABLE; //diable JTAG (GD32 different to STM32)
setPinOutput(A8);
writePinHigh(A8); //ENABLE USB
gpio_set_pin_output(A8);
gpio_write_pin_high(A8); //ENABLE USB
uart_init(460800);
wait_ms(400);
}