Remove more unnecessary quantum.h includes (#23402)

This commit is contained in:
Ryan
2024-04-05 14:48:21 +11:00
committed by GitHub
parent f8a7a6848d
commit a14c03b96e
60 changed files with 103 additions and 78 deletions

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "charybdis.h"
// clang-format off
#ifdef RGB_MATRIX_ENABLE

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "charybdis.h"
// clang-format off
#ifdef RGB_MATRIX_ENABLE

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "charybdis.h"
// clang-format off
#ifdef RGB_MATRIX_ENABLE

View File

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "dilemma.h"
#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {

View File

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "dilemma.h"
#ifdef SWAP_HANDS_ENABLE
const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {

View File

@ -15,7 +15,7 @@
*/
#include "ec_switch_matrix.h"
#include "quantum.h"
#include "keyboard.h"
void eeconfig_init_kb(void) {
// Default values

View File

@ -1,5 +1,6 @@
#include <stdio.h>
#include "quantum.h"
#include "led.h"
#include "host.h"
char host_led_state_str[24];

View File

@ -1,5 +1,6 @@
#include <stdio.h>
#include "quantum.h"
#include <stdint.h>
#include "action.h"
char keylog_str[24] = {};
char keylogs_str[21] = {};

View File

@ -1,5 +1,5 @@
#include "quantum.h"
#include <stdio.h>
#include "action_layer.h"
// in the future, should use (1U<<_LAYER_NAME) instead, but needs to be moved to keymap,c
#define L_BASE 0

View File

@ -1,5 +1,3 @@
#include "quantum.h"
const char *read_logo(void) {
static char logo[] = {
0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94,

View File

@ -1,5 +1,4 @@
#include <stdio.h>
#include "quantum.h"
char mode_icon[24];

View File

@ -1,7 +1,7 @@
#ifdef RGBLIGHT_ENABLE
#include <stdio.h>
#include "quantum.h"
#include "rgblight.h"
extern rgblight_config_t rgblight_config;
char rbf_info_str[24];

View File

@ -1,5 +1,5 @@
#include <stdio.h>
#include "quantum.h"
#include "timer.h"
char timelog_str[24] = {};
int last_time = 0;

View File

@ -14,7 +14,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "bongocat.h"
#include <stdlib.h>
#include "oled_driver.h"
#include "progmem.h"
#include "timer.h"
#include "wpm.h"
#include "util.h"
// WPM-responsive animation stuff here
#define IDLE_FRAMES 5
@ -28,7 +34,6 @@
#define ANIM_FRAME_RATIO 2.5 // how aggressively animation speeds up with wpm
// #define SLEEP_TIMER 60000 // should sleep after this period of 0 wpm, needs fixing
#define ANIM_SIZE 525 // number of bytes in array, minimize for adequate firmware size, max is 1024
#define MAX(x, y) (((x) > (y)) ? (x) : (y)) // Math.max macro
uint32_t curr_anim_duration = 0; // variable animation duration
uint32_t bongo_timer = 0;

View File

@ -15,7 +15,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "oled_driver.h"
#include "action_layer.h"
#include "progmem.h"
#define ANIM_SIZE 525 // number of bytes in array, minimize for adequate firmware size, max is 1024

View File

@ -15,7 +15,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "oled_driver.h"
#include "progmem.h"
#define ANIM_SIZE 525 // number of bytes in array, minimize for adequate firmware size, max is 1024

View File

@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "dgk6x.h"
#ifdef RGB_MATRIX_ENABLE

View File

@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "dgk6x.h"
#ifdef RGB_MATRIX_ENABLE

View File

@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "dgk6x.h"
#ifdef RGB_MATRIX_ENABLE

View File

@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "dgk6x.h"
#ifdef RGB_MATRIX_ENABLE

View File

@ -12,9 +12,12 @@
#pragma once
#include "quantum.h"
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include "action.h"
#include "progmem.h"
#include "config_engine.h"
// Maximum values for combos

View File

@ -12,9 +12,12 @@
#pragma once
#include "quantum.h"
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include "action.h"
#include "progmem.h"
#include "config_engine.h"
// Set defaults

View File

@ -14,7 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "oled_driver.h"
#include "progmem.h"
#define ANIM_SIZE 525 // number of bytes in array, minimize for adequate firmware size, max is 1024

View File

@ -14,7 +14,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "raise.h"
// "led_map" is taken from kaleidoscope
// LHK = Left Hand Keys

View File

@ -14,7 +14,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "raise.h"
// "led_map" is taken from kaleidoscope
// LHK = Left Hand Keys

View File

@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "tractyl_manuform.h"
void keyboard_pre_init_sub(void) { setPinInputHigh(A0); }

View File

@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "rev3_5rows.h"
bool is_mac_mode(void) {
return keymap_config.swap_lalt_lgui == false;

View File

@ -14,7 +14,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "bongocat.h"
#include <stdlib.h>
#include "oled_driver.h"
#include "progmem.h"
#include "timer.h"
#include "wpm.h"
#include "util.h"
// WPM-responsive animation stuff here
# define IDLE_FRAMES 5
@ -28,7 +34,6 @@
# define ANIM_FRAME_RATIO 2.5 // how aggressively animation speeds up with wpm
// #define SLEEP_TIMER 60000 // should sleep after this period of 0 wpm, needs fixing
# define ANIM_SIZE 636 // number of bytes in array, minimize for adequate firmware size, max is 1024
# define MAX(x, y) (((x) > (y)) ? (x) : (y)) // Math.max macro
uint32_t curr_anim_duration = 0; // variable animation duration
uint32_t bongo_timer = 0;

View File

@ -14,7 +14,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "galaxy.h"
#include "oled_driver.h"
#include "progmem.h"
# define ANIM_SIZE 636 // number of bytes in array, minimize for adequate firmware size, max is 1024

View File

@ -14,7 +14,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "logo.h"
#include "oled_driver.h"
#include "progmem.h"
# define ANIM_SIZE 636 // number of bytes in array, minimize for adequate firmware size, max is 1024

Some files were not shown because too many files have changed in this diff Show More