diff options
| author | Joel Challis <git@zvecr.com> | 2021-07-24 19:56:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-24 19:56:45 +0100 |
| commit | b5bcd5b0a18079df1252a718588255c62d24a054 (patch) | |
| tree | 886b84473e94718fed4de18a6d6c5b5b9e46eb89 /quantum/rgblight.c | |
| parent | 145d89ab9192d08b7e22a14105d27988944b7b0c (diff) | |
| download | qmk_firmware-b5bcd5b0a18079df1252a718588255c62d24a054.tar.gz qmk_firmware-b5bcd5b0a18079df1252a718588255c62d24a054.zip | |
Refactor some platform dependent logic (#13675)
Diffstat (limited to 'quantum/rgblight.c')
| -rw-r--r-- | quantum/rgblight.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index baa10ec41..04bbb1283 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c | |||
| @@ -16,17 +16,6 @@ | |||
| 16 | #include <math.h> | 16 | #include <math.h> |
| 17 | #include <string.h> | 17 | #include <string.h> |
| 18 | #include <stdlib.h> | 18 | #include <stdlib.h> |
| 19 | #ifdef __AVR__ | ||
| 20 | # include <avr/eeprom.h> | ||
| 21 | # include <avr/interrupt.h> | ||
| 22 | #endif | ||
| 23 | #ifdef EEPROM_ENABLE | ||
| 24 | # include "eeprom.h" | ||
| 25 | #endif | ||
| 26 | #ifdef STM32_EEPROM_ENABLE | ||
| 27 | # include <hal.h> | ||
| 28 | # include "eeprom_stm32.h" | ||
| 29 | #endif | ||
| 30 | #include "wait.h" | 19 | #include "wait.h" |
| 31 | #include "progmem.h" | 20 | #include "progmem.h" |
| 32 | #include "sync_timer.h" | 21 | #include "sync_timer.h" |
| @@ -35,6 +24,9 @@ | |||
| 35 | #include "debug.h" | 24 | #include "debug.h" |
| 36 | #include "led_tables.h" | 25 | #include "led_tables.h" |
| 37 | #include <lib/lib8tion/lib8tion.h> | 26 | #include <lib/lib8tion/lib8tion.h> |
| 27 | #ifdef EEPROM_ENABLE | ||
| 28 | # include "eeprom.h" | ||
| 29 | #endif | ||
| 38 | #ifdef VELOCIKEY_ENABLE | 30 | #ifdef VELOCIKEY_ENABLE |
| 39 | # include "velocikey.h" | 31 | # include "velocikey.h" |
| 40 | #endif | 32 | #endif |
