Update skyloong/gk980/q1

This commit is contained in:
NaturalZh 2024-04-30 13:55:30 +08:00
parent d9a77925a2
commit 3d2f0fefeb
2 changed files with 5 additions and 6 deletions

View File

@ -22,7 +22,6 @@
# define MAC_MOD_INDEX 24
# define WIN_LOCK_INDEX 75
# define SCR_LOCK_INDEX 14
# define SDB B5
# define RGB_MATRIX_KEYPRESSES
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#endif // RGB_MATRIX_ENABLE

View File

@ -127,7 +127,7 @@ const aw20216s_led_t PROGMEM g_aw20216s_leds[AW20216S_LED_COUNT] = {
void suspend_power_down_kb() {
# ifdef RGB_MATRIX_ENABLE
writePinLow(SDB);
writePinLow(AW20216S_EN_PIN_1);
# endif
writePinLow(MAC_PIN);
suspend_power_down_user();
@ -135,13 +135,13 @@ void suspend_power_down_kb() {
void suspend_wakeup_init_kb() {
# ifdef RGB_MATRIX_ENABLE
writePinHigh(SDB);
writePinHigh(AW20216S_EN_PIN_1);
# endif
suspend_wakeup_init_user();
}
bool shutdown_kb(bool jump_to_bootloader) {
writePinLow(SDB);
writePinLow(AW20216S_EN_PIN_1);
return shutdown_user(jump_to_bootloader);
}
@ -162,8 +162,8 @@ void board_init(void) {
// JTAG-DP Disabled and SW-DP Disabled
AFIO->MAPR = (AFIO->MAPR & ~AFIO_MAPR_SWJ_CFG_Msk) | AFIO_MAPR_SWJ_CFG_DISABLE;
# ifdef RGB_MATRIX_ENABLE
setPinOutput(SDB);
writePinHigh(SDB);
setPinOutput(AW20216S_EN_PIN_1);
writePinHigh(AW20216S_EN_PIN_1);
# endif
setPinOutput(MAC_PIN);
writePinHigh(MAC_PIN);