diff options
author | Ryan <[email protected]> | 2024-05-02 19:48:49 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-02 10:48:49 +0100 |
commit | 61c7c1f74cc5365501a3038181df551df11f719e (patch) | |
tree | 67b134bfd3ba45660765f5c2c46b8d3f535b5b69 /keyboards/mitosis/mitosis.c | |
parent | 7220715dd1619dfb073db78cfc23998a67994655 (diff) | |
download | qmk_firmware-61c7c1f74cc5365501a3038181df551df11f719e.tar.gz qmk_firmware-61c7c1f74cc5365501a3038181df551df11f719e.zip |
Convert some AVR GPIO operations to macros (#23424)
Diffstat (limited to 'keyboards/mitosis/mitosis.c')
-rw-r--r-- | keyboards/mitosis/mitosis.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/keyboards/mitosis/mitosis.c b/keyboards/mitosis/mitosis.c index ea3d1c99d7..2d3627b56b 100644 --- a/keyboards/mitosis/mitosis.c +++ b/keyboards/mitosis/mitosis.c @@ -1,10 +1,12 @@ #include "mitosis.h" void led_init(void) { - DDRD |= (1<<1); // Pin to green, set as output - PORTD |= (1<<1); // Turn it off - DDRF |= (1<<4) | (1<<5); // Pins to red and blue, set as output - PORTF |= (1<<4) | (1<<5); // Turn them off + gpio_set_pin_output(MITOSIS_GREEN_LED_PIN); + gpio_write_pin_high(MITOSIS_GREEN_LED_PIN); + gpio_set_pin_output(MITOSIS_BLUE_LED_PIN); + gpio_write_pin_high(MITOSIS_BLUE_LED_PIN); + gpio_set_pin_output(MITOSIS_RED_LED_PIN); + gpio_write_pin_high(MITOSIS_RED_LED_PIN); } void matrix_init_kb(void) { |