Remove quantum.h
includes from keyboard code (#23394)
This commit is contained in:
parent
408f6e43cd
commit
c635733a7f
60 changed files with 123 additions and 70 deletions
|
@ -14,7 +14,6 @@
|
|||
// - add `#define VIA_EEPROM_CUSTOM_CONFIG_SIZE 128` to config.h
|
||||
// (or change to match CHANNELS*VALUES*2)
|
||||
|
||||
#include "quantum.h"
|
||||
#include "via.h"
|
||||
|
||||
#ifdef VIA_ENABLE
|
||||
|
|
|
@ -14,16 +14,15 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "quantum.h"
|
||||
#include "wt_mono_backlight.h"
|
||||
#include "wt_rgb_backlight_api.h" // reuse these for now
|
||||
#include "wt_rgb_backlight_keycodes.h" // reuse these for now
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include "i2c_master.h"
|
||||
|
||||
#include "host.h"
|
||||
#include "progmem.h"
|
||||
#include "quantum/color.h"
|
||||
#include "eeprom.h"
|
||||
|
||||
#include "via.h" // uses EEPROM address, lighting value IDs
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "action.h"
|
||||
#include "quantum/color.h"
|
||||
|
||||
typedef struct PACKED
|
||||
|
|
|
@ -40,19 +40,15 @@
|
|||
#error wt_rgb_backlight.c compiled without setting configuration symbol
|
||||
#endif
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(X, Y) ((X) > (Y) ? (X) : (Y))
|
||||
#endif
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(a,b) ((a) < (b)? (a): (b))
|
||||
#endif
|
||||
|
||||
#include "quantum.h"
|
||||
#include "wt_rgb_backlight.h"
|
||||
#include "wt_rgb_backlight_api.h"
|
||||
#include "wt_rgb_backlight_keycodes.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "quantum.h"
|
||||
#include "host.h"
|
||||
#include "util.h"
|
||||
|
||||
#if !defined(RGB_BACKLIGHT_HS60) && !defined(RGB_BACKLIGHT_NK65) && !defined(RGB_BACKLIGHT_NK87) && !defined(RGB_BACKLIGHT_NEBULA68) && !defined(RGB_BACKLIGHT_NEBULA12) && !defined (RGB_BACKLIGHT_KW_MEGA)
|
||||
#include <avr/interrupt.h>
|
||||
#include "i2c_master.h"
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "action.h"
|
||||
#include "quantum/color.h"
|
||||
|
||||
typedef struct PACKED
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
*/
|
||||
#pragma once
|
||||
|
||||
#include "keycodes.h"
|
||||
|
||||
enum wt_rgb_backlight_keycodes {
|
||||
BR_INC = QK_KB_0, // brightness increase
|
||||
BR_DEC, // brightness decrease
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue