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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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

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

@ -1,6 +1,4 @@
#include "hotdox.h"
#include "backlight.h"
#include "quantum.h"
extern inline void ergodox_board_led_on(void);
extern inline void ergodox_right_led_1_on(void);

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

View file

@ -13,10 +13,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "model01.h"
#include "i2c_master.h"
#include <string.h>
#include "model01.h"
void matrix_init_kb(void) {
/* the bootloader can leave LEDs on, so */

View file

@ -1,4 +1,4 @@
#include "quantum.h"
#include "action_layer.h"
#include <stdio.h>
#define L_BASE 0

View file

@ -1,9 +1,11 @@
#include "oled_helper.h"
#include "quantum.h"
#include "host.h"
#include "progmem.h"
#include <stdio.h>
#include <string.h>
#ifdef OLED_ENABLE
#include "oled_driver.h"
void render_logo(void) {

View file

@ -1,5 +1,7 @@
#include "oled_helper.h"
#include "quantum.h"
#include "oled_driver.h"
#include "host.h"
#include "rgblight.h"
#include <stdio.h>
#include <string.h>

View file

@ -15,7 +15,6 @@
*/
#include "solderable.h"
#include "quantum.h"
#define noLed {255,255}

View file

@ -1,5 +1,5 @@
#include "oled_helper.h"
#include "quantum.h"
#include "oled_driver.h"
#include <stdio.h>
#include <string.h>

View file

@ -1,4 +1,4 @@
#include "quantum.h"
#include "sol.h"
#ifdef RGB_MATRIX_ENABLE
led_config_t g_led_config = { {

View file

@ -1,4 +1,4 @@
#include "quantum.h"
#include "sol.h"
#ifdef RGB_MATRIX_ENABLE
led_config_t g_led_config = { {

View file

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

View file

@ -1,5 +1,5 @@
#include <stdio.h>
#include "quantum.h"
#include "action_util.h"
char modifier_state_str[22];

View file

@ -15,8 +15,7 @@
*/
#include "ec_switch_matrix.h"
#include "quantum.h"
#include <avr/interrupt.h>
#include "analog.h"
#include "print.h"

View file

@ -17,10 +17,6 @@
#include "terrazzo.h"
#ifdef LED_MATRIX_ENABLE
#include <math.h>
#include "print.h"
#include "quantum.h"
const is31fl3731_led_t PROGMEM g_is31fl3731_leds[IS31FL3731_LED_COUNT] = {
/* Refer to IS31 manual for these locations
* https://cdn-learn.adafruit.com/downloads/pdf/adafruit-15x7-7x15-charlieplex-led-matrix-charliewing-featherwing.pdf

View file

@ -1,12 +1,10 @@
// Copyright 2018-2023 Nick Brassel (@tzarc)
// SPDX-License-Identifier: GPL-2.0-or-later
#include <string.h>
#include "quantum.h"
#include <hal_pal.h>
#include "djinn.h"
#include <string.h>
#include <hal_pal.h>
#include "serial.h"
#include "split_util.h"
#include "qp.h"
painter_device_t lcd;

View file

@ -1,8 +1,5 @@
// Copyright 2018-2022 Nick Brassel (@tzarc)
// SPDX-License-Identifier: GPL-2.0-or-later
#include <ch.h>
#include <hal.h>
#include "quantum.h"
#include "djinn.h"
#define GPIOB_BITMASK (1 << 13 | 1 << 14 | 1 << 15) // B13, B14, B15

View file

@ -1,7 +1,5 @@
// Copyright 2018-2023 Nick Brassel (@tzarc)
// SPDX-License-Identifier: GPL-2.0-or-later
#include <string.h>
#include "quantum.h"
#include "transactions.h"
#include "split_util.h"
#include "djinn.h"

View file

@ -1,7 +1,5 @@
// Copyright 2018-2022 Nick Brassel (@tzarc)
// SPDX-License-Identifier: GPL-2.0-or-later
#include <string.h>
#include "quantum.h"
#include "djinn.h"
const char* usbpd_str(usbpd_allowance_t allowance) {

View file

@ -15,8 +15,6 @@
*/
#include "v60_type_r.h"
#include "quantum.h"
// if we've got an RGB underglow!
#ifdef RGBLIGHT_ENABLE

View file

@ -19,8 +19,6 @@
#ifdef RGBLIGHT_ENABLE
#include "rgblight.h"
void rgb_init(void);
void set_rgb_color(uint8_t pin, uint8_t value, uint8_t timer_value);

View file

@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "ec.h"
#include <avr/interrupt.h>
#include "analog.h"
//#include "debug.h" // needed for debugging

View file

@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "ec.h"
#include <avr/interrupt.h>
#include "analog.h"
//#include "debug.h" // needed for debugging

View file

@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "ec.h"
#include <avr/interrupt.h>
#include "analog.h"
//#include "debug.h" // needed for debugging

View file

@ -15,8 +15,8 @@
*/
#include "ec.h"
#include <avr/interrupt.h>
#include "quantum.h"
#include "analog.h"
//#include "debug.h"

View file

@ -1,7 +1,14 @@
// Copyright 2022 Parker Levin (@pedker)
// SPDX-License-Identifier: GPL-2.0-or-later
#include "bongo.h"
#include <stdlib.h>
#include "quantum.h"
#include "matrix.h"
#include "oled_driver.h"
#include "timer.h"
#include "wpm.h"
#include "util.h"
#define ANIM_FRAME_DURATION 75 // how long each frame lasts in ms
#define ANIM_SIZE 636 // number of bytes in array, minimize for adequate firmware size, max is 1024

View file

@ -3,4 +3,6 @@
#pragma once
#include <stdbool.h>
void draw_bongo(bool minimal);

View file

@ -1,8 +1,7 @@
// Copyright 2023 Vinh Le (@vinhcatba)
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
#include "quantum.h"
#include "uncertainty.h"
#ifdef OLED_ENABLE
#include "bongo.h"

View file

@ -1,5 +1,5 @@
#include "quantum.h"
#include "action_layer.h"
#include <stdio.h>
#define L_BASE 0

View file

@ -1,6 +1,5 @@
#ifdef RGBLIGHT_ENABLE
#include "quantum.h"
#include <stdio.h>
extern rgblight_config_t rgblight_config;