diff options
author | Ryan <[email protected]> | 2024-05-03 15:21:29 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-03 15:21:29 +1000 |
commit | d09a06a1b354760fd0e64a453abade972900e885 (patch) | |
tree | 88d94640f4507ac8d7f570607423825bec3c6f89 /keyboards/redox | |
parent | 5426a7a129acf2ff5c8b435014747f1238e17965 (diff) | |
download | qmk_firmware-d09a06a1b354760fd0e64a453abade972900e885.tar.gz qmk_firmware-d09a06a1b354760fd0e64a453abade972900e885.zip |
Update GPIO API usage in keyboard code (#23361)
Diffstat (limited to 'keyboards/redox')
-rw-r--r-- | keyboards/redox/wireless/wireless.c | 16 | ||||
-rw-r--r-- | keyboards/redox/wireless/wireless.h | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/keyboards/redox/wireless/wireless.c b/keyboards/redox/wireless/wireless.c index 30cefd9f4e..a82afbf603 100644 --- a/keyboards/redox/wireless/wireless.c +++ b/keyboards/redox/wireless/wireless.c @@ -18,15 +18,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "wireless.h" void led_init(void) { - setPinOutput(D0); - setPinOutput(D1); - setPinOutput(F4); - setPinOutput(F5); + gpio_set_pin_output(D0); + gpio_set_pin_output(D1); + gpio_set_pin_output(F4); + gpio_set_pin_output(F5); - writePinHigh(D0); - writePinHigh(D1); - writePinHigh(F4); - writePinHigh(F5); + gpio_write_pin_high(D0); + gpio_write_pin_high(D1); + gpio_write_pin_high(F4); + gpio_write_pin_high(F5); } diff --git a/keyboards/redox/wireless/wireless.h b/keyboards/redox/wireless/wireless.h index a0ba09aff3..f752e0b13f 100644 --- a/keyboards/redox/wireless/wireless.h +++ b/keyboards/redox/wireless/wireless.h @@ -19,14 +19,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "quantum.h" -#define red_led_off writePinHigh(F5) -#define red_led_on writePinLow(F5) -#define blu_led_off writePinHigh(F4) -#define blu_led_on writePinLow(F4) -#define grn_led_off writePinHigh(D1) -#define grn_led_on writePinLow(D1) -#define wht_led_off writePinHigh(D0) -#define wht_led_on writePinLow(D0) +#define red_led_off gpio_write_pin_high(F5) +#define red_led_on gpio_write_pin_low(F5) +#define blu_led_off gpio_write_pin_high(F4) +#define blu_led_on gpio_write_pin_low(F4) +#define grn_led_off gpio_write_pin_high(D1) +#define grn_led_on gpio_write_pin_low(D1) +#define wht_led_off gpio_write_pin_high(D0) +#define wht_led_on gpio_write_pin_low(D0) #define set_led_off red_led_off; grn_led_off; blu_led_off; wht_led_off #define set_led_red red_led_on; grn_led_off; blu_led_off; wht_led_off |