Convert some AVR GPIO operations to macros (#23424)

This commit is contained in:
Ryan 2024-05-02 19:48:49 +10:00 committed by GitHub
parent 7220715dd1
commit 61c7c1f74c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
71 changed files with 877 additions and 840 deletions

View file

@ -1,12 +1,12 @@
#include "rev2.h"
void led_init(void) {
setPinOutput(D1); // Pin to green, set as output
writePinHigh(D1); // Turn it off
setPinOutput(F4); // Pins to red and blue, set as output
setPinOutput(F5);
writePinHigh(F4); // Turn them off
writePinHigh(F5);
gpio_set_pin_output(UNI660_GREEN_LED_PIN);
gpio_write_pin_high(UNI660_GREEN_LED_PIN);
gpio_set_pin_output(UNI660_BLUE_LED_PIN);
gpio_write_pin_high(UNI660_BLUE_LED_PIN);
gpio_set_pin_output(UNI660_RED_LED_PIN);
gpio_write_pin_high(UNI660_RED_LED_PIN);
}
void matrix_init_kb(void) {