Remove quantum.h includes from keyboard code (#23394)

This commit is contained in:
Ryan
2024-04-03 10:44:25 +11:00
committed by GitHub
parent 408f6e43cd
commit c635733a7f
60 changed files with 123 additions and 70 deletions

View File

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

View File

@ -14,8 +14,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
#include "pimoroni_trackball.h"
#include "i2c_master.h"
#include "action.h"
#include "timer.h"
#include "print.h"
static uint8_t scrolling = 0;
static int16_t x_offset = 0;

View File

@ -16,8 +16,10 @@
#pragma once
#include "quantum.h"
#include <stdint.h>
#include <stdbool.h>
#include "pointing_device.h"
#include "report.h"
#ifndef TRACKBALL_ADDRESS
# define TRACKBALL_ADDRESS (0x0A << 1)

View File

@ -17,7 +17,6 @@
#pragma once
#include "annepro2.h"
#include "quantum.h"
void annepro2_ble_bootload(void);
void annepro2_ble_startup(void);

View File

@ -4,6 +4,9 @@
#include "satisfaction_core.h"
#include "print.h"
#include "debug.h"
#include "matrix.h"
#include "quantum.h"
#include "encoder.h"
#include <ch.h>
#include <hal.h>

View File

@ -3,7 +3,8 @@
#pragma once
#include "quantum.h"
#include <stdint.h>
#include <stdbool.h>
#include "via.h" // only for EEPROM address
#include "satisfaction_keycodes.h"

View File

@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "satisfaction_core.h"
#include "backlight.h"
#include "eeprom.h"
void pre_encoder_mode_change(void){

View File

@ -2,6 +2,14 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "satisfaction_core.h"
#include "action_layer.h"
#include "action_util.h"
#include "timer.h"
#include "matrix.h"
#include "led.h"
#include "host.h"
#include "oled_driver.h"
#include "progmem.h"
#include <stdio.h>
void draw_default(void);

View File

@ -40,6 +40,10 @@
*/
#include "max7219.h"
#include "spi_master.h"
#include "debug.h"
#include "gpio.h"
#include "wait.h"
#include "font.h"
// Datastructures

View File

@ -26,8 +26,10 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
#pragma once
#include "quantum.h"
#include "spi_master.h"
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
// Set defaults if they're not set
#ifndef MAX7219_LOAD

View File

@ -35,10 +35,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "host.h"
#include "keyboard.h"
extern "C" {
#include "quantum.h"
}
/* KEY CODE to Matrix
*
* HID keycode(1 byte):

View File

@ -38,7 +38,8 @@ POSSIBILITY OF SUCH DAMAGE.
#pragma once
#include "quantum.h"
#include <stdint.h>
#include "gpio.h"
#define XT_DATA_IN() \
do { \

View File

@ -1,6 +1,5 @@
#include <avr/io.h>
#include "duck_led.h"
#include "quantum.h"
#include "wait.h"
void show(void) {
wait_us((RES / 1000UL) + 1);

View File

@ -12,13 +12,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 "indicator_leds.h"
#include <avr/interrupt.h>
#include <avr/io.h>
#include <stdbool.h>
#include <util/delay.h>
#include <stdint.h>
#include "indicator_leds.h"
#include "quantum.h"
#define LED_T1H 900
#define LED_T1L 600

View File

@ -1,5 +1,7 @@
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include "duck_led/duck_led.h"
void backlight_init_ports(void);

View File

@ -15,8 +15,7 @@
*/
#pragma once
#include "quantum.h"
#include <stdbool.h>
void init_fallacy_leds(void);
void update_fallacy_leds(void);

View File

@ -1,4 +1,7 @@
#include "taphold.h"
#include "action_layer.h"
#include "keyboard.h"
#include "timer.h"
bool taphold_process(uint16_t keycode, keyrecord_t *record) {
for (int i = 0; i < taphold_config_size; i++) {

View File

@ -1,6 +1,8 @@
#pragma once
#include "quantum.h"
#include <stdint.h>
#include <stdbool.h>
#include "action.h"
typedef enum taphold_mode_t {
TAPHOLD_LAYER,

View File

@ -14,15 +14,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "leds.h"
#include <string.h>
#include "i2c_master.h"
#include "led_tables.h"
#include "rgb_matrix.h"
#include <string.h>
#include "wait.h"
#include "raise.h"
#include "wire-protocol-constants.h"
#include "print.h"
#include "leds.h"
// Color order of LEDs is Green, Red, Blue.
typedef struct PACKED {

View File

@ -16,8 +16,7 @@
#pragma once
#include "quantum.h"
#include "rgb_matrix.h"
#include <stdint.h>
extern const uint8_t led_map[RGB_MATRIX_LED_COUNT];

View File

@ -14,9 +14,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <spi_master.h>
#include "quantum.h"
#include "spi_master.h"
#include "split_util.h"
#include "transport.h"
#include "timer.h"

View File

@ -22,7 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#endif
#include "eeconfig.h"
#include "process_unicode.h"
#include "quantum.h"
#ifdef RGBSPS_ENABLE
#include "rgbsps.h"
#include "rgbtheme.h"

View File

@ -1,5 +1,6 @@
#include "action.h"
#include "left.h"
#include "print.h"
#include "wait.h"
bool i2c_initialized = false;

View File

@ -1,9 +1,7 @@
#pragma once
#include "quantum.h"
#include <stdint.h>
#include "i2c_master.h"
#include <util/delay.h>
#define MCP23017
#define MCP23017_A0 0
@ -43,8 +41,6 @@ void left_scan(void);
uint8_t left_read_cols(void);
uint8_t left_get_col(uint8_t col);
matrix_row_t left_read_row(void);
void left_unselect_rows(void);
void left_select_row(uint8_t row);

View File

@ -2,6 +2,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "specialk.h"
#include "keycodes.h"
#include "action_layer.h"
#include "action_util.h"
bool delkey_registered = false;
uint32_t __keycode_raised = 0;

View File

@ -5,8 +5,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "util.h"
#include "quantum.h"
#include "action.h"
bool ID61_process_special_k(uint16_t keycode, keyrecord_t *record, bool arrow_mode, uint8_t k_norm, uint8_t k_spcl, uint8_t k_altr);
bool ID61_backspace_special(uint16_t keycode, keyrecord_t *record);

View File

@ -27,10 +27,11 @@
#ifdef RGB_MATRIX_ENABLE
#include "quantum.h"
#include "i2c_master.h"
#include "gpio.h"
#include "chibios_config.h"
#include <string.h>
#include <ch.h>
#include <hal.h>
static uint8_t i2c_address;

View File

@ -19,7 +19,6 @@
#include "print.h"
#include "debug.h"
#include "matrix.h"
#include "quantum.h"
#include "board.h"
#include "i2c_master.h"

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