diff options
| author | Ryan <fauxpark@gmail.com> | 2024-02-18 17:08:27 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-18 17:08:27 +1100 |
| commit | 2d1aed78a67b3d2b002cc739ef087963b05b76b8 (patch) | |
| tree | ea681d02e547332cffa6b7aec6c16ef37ad70ee3 /quantum/backlight/backlight_driver_common.c | |
| parent | 6810aaf0130113e267e20fb506d874cc858f5f67 (diff) | |
Update GPIO macro usages in core (#23093)
Diffstat (limited to 'quantum/backlight/backlight_driver_common.c')
| -rw-r--r-- | quantum/backlight/backlight_driver_common.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/quantum/backlight/backlight_driver_common.c b/quantum/backlight/backlight_driver_common.c index 8c3fe461d7..fb2770ee3c 100644 --- a/quantum/backlight/backlight_driver_common.c +++ b/quantum/backlight/backlight_driver_common.c | |||
| @@ -26,23 +26,23 @@ static const pin_t backlight_pin = BACKLIGHT_PIN; | |||
| 26 | 26 | ||
| 27 | static inline void backlight_on(pin_t backlight_pin) { | 27 | static inline void backlight_on(pin_t backlight_pin) { |
| 28 | #if BACKLIGHT_ON_STATE == 0 | 28 | #if BACKLIGHT_ON_STATE == 0 |
| 29 | writePinLow(backlight_pin); | 29 | gpio_write_pin_low(backlight_pin); |
| 30 | #else | 30 | #else |
| 31 | writePinHigh(backlight_pin); | 31 | gpio_write_pin_high(backlight_pin); |
| 32 | #endif | 32 | #endif |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | static inline void backlight_off(pin_t backlight_pin) { | 35 | static inline void backlight_off(pin_t backlight_pin) { |
| 36 | #if BACKLIGHT_ON_STATE == 0 | 36 | #if BACKLIGHT_ON_STATE == 0 |
| 37 | writePinHigh(backlight_pin); | 37 | gpio_write_pin_high(backlight_pin); |
| 38 | #else | 38 | #else |
| 39 | writePinLow(backlight_pin); | 39 | gpio_write_pin_low(backlight_pin); |
| 40 | #endif | 40 | #endif |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | void backlight_pins_init(void) { | 43 | void backlight_pins_init(void) { |
| 44 | // Setup backlight pin as output and output to off state. | 44 | // Setup backlight pin as output and output to off state. |
| 45 | FOR_EACH_LED(setPinOutput(backlight_pin); backlight_off(backlight_pin);) | 45 | FOR_EACH_LED(gpio_set_pin_output(backlight_pin); backlight_off(backlight_pin);) |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void backlight_pins_on(void) { | 48 | void backlight_pins_on(void) { |
