Update GPIO API usage in keyboard code (#23361)

This commit is contained in:
Ryan 2024-05-03 15:21:29 +10:00 committed by GitHub
parent 5426a7a129
commit d09a06a1b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
390 changed files with 3912 additions and 3913 deletions

View file

@ -35,7 +35,7 @@ bool is_keyboard_master(void) {
static int8_t is_master = -1;
if (is_master < 0) {
while (readPin(SPI_SS_PIN)) {
while (gpio_read_pin(SPI_SS_PIN)) {
if (USB_Device_IsAddressSet()) {
is_master = 1;
return is_master;
@ -53,7 +53,7 @@ bool is_keyboard_master(void) {
}
void keyboard_pre_init_kb(void) {
setPinInputHigh(SPI_SS_PIN);
gpio_set_pin_input_high(SPI_SS_PIN);
keyboard_pre_init_user();
}