Normalise include statements in keyboard code (#11185)

master
Ryan 2020-12-16 14:27:23 +11:00 committed by GitHub
parent 37fb14f1b5
commit 9366ed7282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
81 changed files with 108 additions and 291 deletions

View File

@ -1,6 +1,6 @@
#include "quantum.h" #include "quantum.h"
#include "serial.h" #include "serial.h"
#include "printf.h" #include "print.h"
#include <ch.h> #include <ch.h>
#include <hal.h> #include <hal.h>

View File

@ -32,7 +32,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "util/font5x7.h" #include "util/font5x7.h"
#include "util/font8x16.h" #include "util/font8x16.h"
#include "string.h" #include <string.h>
#define TOTALFONTS 2 #define TOTALFONTS 2
const unsigned char* fonts_pointer[] = {font5x7, font8x16}; const unsigned char* fonts_pointer[] = {font5x7, font8x16};

View File

@ -16,7 +16,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <avr/io.h> #include <avr/io.h>
#include "stdint.h" #include <stdint.h>
#include "led.h" #include "led.h"

View File

@ -1,3 +1,3 @@
#pragma once #pragma once
#include <common/matrix.h> #include "common/matrix.h"

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <common/matrix.h> #include "common/matrix.h"
#define ROWS_PER_HAND (MATRIX_ROWS/2) #define ROWS_PER_HAND (MATRIX_ROWS/2)

View File

@ -16,8 +16,8 @@
* generator plugin. Do not edit manually. * generator plugin. Do not edit manually.
*/ */
#include "hal.h" #include <hal.h>
#include "stm32_gpio.h" #include <stm32_gpio.h>
/*===========================================================================*/ /*===========================================================================*/
/* Driver local definitions. */ /* Driver local definitions. */

View File

@ -1,5 +1,5 @@
#include "ch.h" #include <ch.h>
#include "hal.h" #include <hal.h>
#include "util.h" #include "util.h"
#include "quantum.h" #include "quantum.h"

View File

@ -6,7 +6,7 @@
*/ */
#include "ws2812.h" #include "ws2812.h"
#include "stdlib.h" #include <stdlib.h>
#define BYTES_FOR_LED_BYTE 4 #define BYTES_FOR_LED_BYTE 4
#define NB_COLORS 3 #define NB_COLORS 3

View File

@ -15,10 +15,9 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "hal.h" #include <hal.h>
#include "led_custom.h" #include "led_custom.h"
#include "satisfaction75.h" #include "satisfaction75.h"
#include "printf.h"
static void breathing_callback(PWMDriver *pwmp); static void breathing_callback(PWMDriver *pwmp);

View File

@ -2,8 +2,8 @@
#include "print.h" #include "print.h"
#include "debug.h" #include "debug.h"
#include "ch.h" #include <ch.h>
#include "hal.h" #include <hal.h>
#ifdef QWIIC_MICRO_OLED_ENABLE #ifdef QWIIC_MICRO_OLED_ENABLE
#include "micro_oled.h" #include "micro_oled.h"

View File

@ -19,8 +19,8 @@
* generator plugin. Do not edit manually. * generator plugin. Do not edit manually.
*/ */
#include "hal.h" #include <hal.h>
#include "stm32_gpio.h" #include <stm32_gpio.h>
/*===========================================================================*/ /*===========================================================================*/
/* Driver local definitions. */ /* Driver local definitions. */

View File

@ -15,8 +15,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "hal.h" #include <hal.h>
#include "printf.h" #include "print.h"
#ifdef BACKLIGHT_ENABLE #ifdef BACKLIGHT_ENABLE
#include "backlight.h" #include "backlight.h"

View File

@ -1,20 +0,0 @@
/*
* Copyright 2017 skully <skullydazed@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* 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 "hal.h"
#include "led.h"
#include "printf.h"

View File

@ -1,159 +0,0 @@
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "hal.h"
#include "timer.h"
#include "wait.h"
#include "printf.h"
#include "matrix.h"
#include "action.h"
#include "keycode.h"
#include <string.h>
/*
* #define MATRIX_ROW_PINS { PB11, PA6, PA3, PA2, PA1, PB5, PB6, PC15, PC14, PC13 }
* #define MATRIX_COL_PINS { PB10, PB2, PB1, PB0, PA7, PB4, PB3, PB7 }
*/
/* matrix state(1:on, 0:off) */
static matrix_row_t matrix[MATRIX_ROWS];
static matrix_row_t matrix_debouncing[MATRIX_COLS];
static bool debouncing = false;
static uint16_t debouncing_time = 0;
__attribute__ ((weak))
void matrix_init_user(void) {}
__attribute__ ((weak))
void matrix_scan_user(void) {}
__attribute__ ((weak))
void matrix_init_kb(void) {
matrix_init_user();
}
__attribute__ ((weak))
void matrix_scan_kb(void) {
matrix_scan_user();
}
void matrix_init(void) {
printf("matrix init\n");
//debug_matrix = true;
// actual matrix setup
palSetPadMode(GPIOB, 10, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GPIOB, 2, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GPIOB, 1, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GPIOB, 0, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GPIOA, 7, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GPIOB, 4, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GPIOB, 3, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GPIOB, 7, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GPIOB, 11, PAL_MODE_INPUT_PULLDOWN);
palSetPadMode(GPIOA, 6, PAL_MODE_INPUT_PULLDOWN);
palSetPadMode(GPIOA, 3, PAL_MODE_INPUT_PULLDOWN);
palSetPadMode(GPIOA, 2, PAL_MODE_INPUT_PULLDOWN);
palSetPadMode(GPIOA, 1, PAL_MODE_INPUT_PULLDOWN);
palSetPadMode(GPIOB, 5, PAL_MODE_INPUT_PULLDOWN);
palSetPadMode(GPIOB, 6, PAL_MODE_INPUT_PULLDOWN);
palSetPadMode(GPIOC, 15, PAL_MODE_INPUT_PULLDOWN);
palSetPadMode(GPIOC, 14, PAL_MODE_INPUT_PULLDOWN);
palSetPadMode(GPIOC, 13, PAL_MODE_INPUT_PULLDOWN);
memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t));
memset(matrix_debouncing, 0, MATRIX_COLS * sizeof(matrix_row_t));
matrix_init_quantum();
}
uint8_t matrix_scan(void) {
// actual matrix
for (int col = 0; col < MATRIX_COLS; col++) {
matrix_row_t data = 0;
// strobe col { PB10, PB2, PB1, PB0, PA7, PB4, PB3, PB7 }
switch (col) {
case 0: palSetPad(GPIOB, 10); break;
case 1: palSetPad(GPIOB, 2); break;
case 2: palSetPad(GPIOB, 1); break;
case 3: palSetPad(GPIOB, 0); break;
case 4: palSetPad(GPIOA, 7); break;
case 5: palSetPad(GPIOB, 4); break;
case 6: palSetPad(GPIOB, 3); break;
case 7: palSetPad(GPIOB, 7); break;
}
// need wait to settle pin state
wait_us(20);
// read row data { PB11, PA6, PA3, PA2, PA1, PB5, PB6, PC15, PC14, PC13 }
data = (
(palReadPad(GPIOB, 11) << 0 ) |
(palReadPad(GPIOA, 6) << 1 ) |
(palReadPad(GPIOA, 3) << 2 ) |
(palReadPad(GPIOA, 2) << 3 ) |
(palReadPad(GPIOA, 1) << 4 ) |
(palReadPad(GPIOB, 5) << 5 ) |
(palReadPad(GPIOB, 6) << 6 ) |
(palReadPad(GPIOC, 15) << 7 ) |
(palReadPad(GPIOC, 14) << 8 ) |
(palReadPad(GPIOC, 13) << 9 )
);
// unstrobe col { B11, B10, B2, B1, A7, B0 }
switch (col) {
case 0: palClearPad(GPIOB, 10); break;
case 1: palClearPad(GPIOB, 2); break;
case 2: palClearPad(GPIOB, 1); break;
case 3: palClearPad(GPIOB, 0); break;
case 4: palClearPad(GPIOA, 7); break;
case 5: palClearPad(GPIOB, 4); break;
case 6: palClearPad(GPIOB, 3); break;
case 7: palClearPad(GPIOB, 7); break;
}
if (matrix_debouncing[col] != data) {
matrix_debouncing[col] = data;
debouncing = true;
debouncing_time = timer_read();
}
}
if (debouncing && timer_elapsed(debouncing_time) > DEBOUNCE) {
for (int row = 0; row < MATRIX_ROWS; row++) {
matrix[row] = 0;
for (int col = 0; col < MATRIX_COLS; col++) {
matrix[row] |= ((matrix_debouncing[col] & (1 << row) ? 1 : 0) << col);
}
}
debouncing = false;
}
matrix_scan_quantum();
return 1;
}
bool matrix_is_on(uint8_t row, uint8_t col) {
return (matrix[row] & (1<<col));
}
matrix_row_t matrix_get_row(uint16_t row) {
return matrix[row];
}
void matrix_print(void) {
printf("\nr/c 01234567\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
printf("%X0: ", row);
matrix_row_t data = matrix_get_row(row);
for (int col = 0; col < MATRIX_COLS; col++) {
if (data & (1<<col))
printf("1");
else
printf("0");
}
printf("\n");
}
}

View File

@ -16,10 +16,7 @@ CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = yes # Commands for debug and configuration COMMAND_ENABLE = yes # Commands for debug and configuration
#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend #SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
NKRO_ENABLE = yes # USB Nkey Rollover NKRO_ENABLE = yes # USB Nkey Rollover
#CUSTOM_MATRIX = yes # Custom matrix file
AUDIO_ENABLE = yes AUDIO_ENABLE = yes
# SERIAL_LINK_ENABLE = yes # SERIAL_LINK_ENABLE = yes
# project specific files
SRC = led.c
LAYOUTS = 66_ansi LAYOUTS = 66_ansi

View File

@ -19,7 +19,7 @@ Ported to QMK by Peter Roe <pete@13bit.me>
#ifndef LED_H #ifndef LED_H
#define LED_H #define LED_H
#include "stdint.h" #include <stdint.h>
/* keyboard LEDs */ /* keyboard LEDs */

View File

@ -29,7 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "util.h" #include "util.h"
#include "matrix.h" #include "matrix.h"
#include "timer.h" #include "timer.h"
#include "LUFA/Drivers/Peripheral/SPI.h" #include <LUFA/Drivers/Peripheral/SPI.h>
#include "config.h" #include "config.h"

View File

@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "stdint.h" #include <stdint.h>
#include "ps2.h" #include "ps2.h"
#include "led.h" #include "led.h"

View File

@ -22,8 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "wait.h" #include "wait.h"
#include "print.h" #include "print.h"
#include "matrix.h" #include "matrix.h"
#include "ch.h" #include <ch.h>
#include "hal.h" #include <hal.h>
static matrix_row_t matrix[MATRIX_ROWS]; static matrix_row_t matrix[MATRIX_ROWS];
static matrix_row_t matrix_debouncing[MATRIX_ROWS]; static matrix_row_t matrix_debouncing[MATRIX_ROWS];

View File

@ -4,7 +4,7 @@
#include "quantum.h" #include "quantum.h"
#include "report.h" #include "report.h"
#include <util/delay.h> #include <util/delay.h>
#include "../../lib/lufa/LUFA/Drivers/Peripheral/SPI.h" #include <LUFA/Drivers/Peripheral/SPI.h>
// Trackpad speed adjustments // Trackpad speed adjustments
#define POINTER_SPEED_MULTIPLIER 2 #define POINTER_SPEED_MULTIPLIER 2

View File

@ -18,6 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once #pragma once
#include <serial_config.h> #include "serial_config.h"
#define PRODUCT Corne Keyboard Rev.1 (Legacy Split) #define PRODUCT Corne Keyboard Rev.1 (Legacy Split)

View File

@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
#include <split_scomm.h> #include "split_scomm.h"
#include "serial.h" #include "serial.h"
#ifdef CONSOLE_ENABLE #ifdef CONSOLE_ENABLE
#include "debug.h" #include "debug.h"

View File

@ -10,7 +10,7 @@
#ifdef AUDIO_ENABLE #ifdef AUDIO_ENABLE
float test_sound[][2] = SONG(STARTUP_SOUND); float test_sound[][2] = SONG(STARTUP_SOUND);
#include <audio/audio.h> #include "audio.h"
#endif #endif
uint16_t click_hz = CLICK_HZ; uint16_t click_hz = CLICK_HZ;

View File

@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#include "stdio.h" #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>

View File

@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once #pragma once
#include "config_common.h" #include "config_common.h"
#include <serial_config.h> #include "serial_config.h"
/* USB Device descriptor parameter /* USB Device descriptor parameter
VID & PID are lisenced from microchip sublisence program, Don't use other project! */ VID & PID are lisenced from microchip sublisence program, Don't use other project! */

View File

@ -9,7 +9,7 @@
#include <inttypes.h> #include <inttypes.h>
#include <compat/twi.h> #include <compat/twi.h>
#include <i2cmaster.h> #include "i2cmaster.h"
/* define CPU frequency in Mhz here if not defined in Makefile */ /* define CPU frequency in Mhz here if not defined in Makefile */

View File

@ -1,6 +1,6 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#include "ch.h" #include <ch.h>
#include "hal.h" #include <hal.h>
#include "serial_link/system/serial_link.h" #include "serial_link/system/serial_link.h"
#ifdef VISUALIZER_ENABLE #ifdef VISUALIZER_ENABLE
#include "lcd_backlight.h" #include "lcd_backlight.h"

View File

@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "hal.h" #include <hal.h>
#include "led.h" #include "led.h"

View File

@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
#include "hal.h" #include <hal.h>
#include "timer.h" #include "timer.h"
#include "wait.h" #include "wait.h"
#include "print.h" #include "print.h"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
#include "hal.h" #include <hal.h>
/** /**
* @brief PAL setup. * @brief PAL setup.

View File

@ -4,7 +4,7 @@
#include "action_layer.h" #include "action_layer.h"
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include "hal.h" #include <hal.h>
// #define I2C_ADDR 0b01000000 // #define I2C_ADDR 0b01000000
#define I2C_ADDR 0b01000000 #define I2C_ADDR 0b01000000

View File

@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#include "string.h" #include <string.h>
bool is_alt_tab_active = false; bool is_alt_tab_active = false;
uint16_t alt_tab_timer = 0; uint16_t alt_tab_timer = 0;

View File

@ -309,7 +309,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
//Functions for ver2 //Functions for ver2
#ifdef KEYBOARD_hadron_ver2 #ifdef KEYBOARD_hadron_ver2
#include "LUFA/Drivers/Peripheral/TWI.h" #include <LUFA/Drivers/Peripheral/TWI.h>
void matrix_init_user(void) { void matrix_init_user(void) {
#ifdef USE_I2C #ifdef USE_I2C
i2c_master_init(); i2c_master_init();

View File

@ -1,5 +1,5 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#include "LUFA/Drivers/Peripheral/TWI.h" #include <LUFA/Drivers/Peripheral/TWI.h>
#ifdef AUDIO_ENABLE #ifdef AUDIO_ENABLE
#include "audio.h" #include "audio.h"
#endif #endif

View File

@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "hal.h" #include <hal.h>
#include "led.h" #include "led.h"

View File

@ -15,8 +15,8 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "ch.h" #include <ch.h>
#include "hal.h" #include <hal.h>
/* /*
* scan matrix * scan matrix

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
#include "hal.h" #include <hal.h>
/** /**
* @brief PAL setup. * @brief PAL setup.

View File

@ -9,7 +9,7 @@
#include <inttypes.h> #include <inttypes.h>
#include <compat/twi.h> #include <compat/twi.h>
#include <i2cmaster.h> #include "i2cmaster.h"
/* define CPU frequency in Hz here if not defined in Makefile */ /* define CPU frequency in Hz here if not defined in Makefile */
#ifndef F_CPU #ifndef F_CPU

View File

@ -1,7 +1,7 @@
#include "62key.h" #include "62key.h"
#include "rgblight.h" #include "rgblight.h"
#include <keymap_colemak.h> #include "keymap_colemak.h"
#include <sendstring_colemak.h> #include "sendstring_colemak.h"
// Automatic Layer ID: // Automatic Layer ID:

View File

@ -1,7 +1,7 @@
#ifndef PROMETHIUM_H #ifndef PROMETHIUM_H
#define PROMETHIUM_H #define PROMETHIUM_H
#include "stdint.h" #include <stdint.h>
void battery_poll(uint8_t level); void battery_poll(uint8_t level);
void led_set_kb(uint8_t usb_led); void led_set_kb(uint8_t usb_led);

View File

@ -8,7 +8,7 @@
#ifndef LOCAL_GLCDFONT #ifndef LOCAL_GLCDFONT
#include "common/glcdfont.c" #include "common/glcdfont.c"
#else #else
#include <helixfont.h> #include "helixfont.h"
#endif #endif
#ifdef PROTOCOL_LUFA #ifdef PROTOCOL_LUFA
#include "lufa.h" #include "lufa.h"

View File

@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define PRODUCT Helix Alpha #define PRODUCT Helix Alpha
#define DESCRIPTION A split keyboard for the cheap makers #define DESCRIPTION A split keyboard for the cheap makers
#include <serial_config.h> #include "serial_config.h"
#define HELIX_ROWS 5 #define HELIX_ROWS 5

View File

@ -1,6 +1,6 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#include "bootloader.h" #include "bootloader.h"
#include "LUFA/Drivers/Peripheral/TWI.h" #include <LUFA/Drivers/Peripheral/TWI.h>
#ifdef AUDIO_ENABLE #ifdef AUDIO_ENABLE
#include "audio.h" #include "audio.h"
#endif #endif

View File

@ -17,12 +17,12 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#include <stdio.h> #include <stdio.h>
#ifdef CONSOLE_ENABLE #ifdef CONSOLE_ENABLE
#include <print.h> #include "print.h"
#endif #endif
#ifdef SSD1306OLED #ifdef SSD1306OLED
#include "ssd1306.h" #include "ssd1306.h"
#endif #endif
#include "string.h" #include <string.h>
#include "layer_number.h" #include "layer_number.h"
extern int current_default_layer; extern int current_default_layer;

View File

@ -5,10 +5,10 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
#include <split_scomm.h> #include "split_scomm.h"
#include "serial.h" #include "serial.h"
#ifdef CONSOLE_ENABLE #ifdef CONSOLE_ENABLE
#include <print.h> #include "print.h"
#endif #endif
uint8_t volatile serial_slave_buffer[SERIAL_SLAVE_BUFFER_LENGTH] = {0}; uint8_t volatile serial_slave_buffer[SERIAL_SLAVE_BUFFER_LENGTH] = {0};

View File

@ -17,12 +17,12 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#include <stdio.h> #include <stdio.h>
#ifdef CONSOLE_ENABLE #ifdef CONSOLE_ENABLE
#include <print.h> #include "print.h"
#endif #endif
#ifdef SSD1306OLED #ifdef SSD1306OLED
#include "ssd1306.h" #include "ssd1306.h"
#endif #endif
#include "string.h" #include <string.h>
#include "layer_number.h" #include "layer_number.h"
extern int current_default_layer; extern int current_default_layer;

View File

@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "hal.h" #include <hal.h>
#include "led.h" #include "led.h"

View File

@ -22,8 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* datasheet: http://www.issi.com/WW/pdf/31FL3731C.pdf * datasheet: http://www.issi.com/WW/pdf/31FL3731C.pdf
*/ */
#include "ch.h" #include <ch.h>
#include "hal.h" #include <hal.h>
#include "print.h" #include "print.h"
#include "led.h" #include "led.h"
#include "host.h" #include "host.h"

View File

@ -1,7 +1,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
#include "hal.h" #include <hal.h>
#include "timer.h" #include "timer.h"
#include "wait.h" #include "wait.h"
#include "print.h" #include "print.h"

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
#include "hal.h" #include <hal.h>
/** /**
* @brief PAL setup. * @brief PAL setup.

View File

@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "hal.h" #include <hal.h>
#include "led.h" #include "led.h"

View File

@ -1,7 +1,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
#include "hal.h" #include <hal.h>
#include "timer.h" #include "timer.h"
#include "wait.h" #include "wait.h"
#include "print.h" #include "print.h"

View File

@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once #pragma once
#include <config_common.h> #include "config_common.h"
/* USB Device descriptor parameter */ /* USB Device descriptor parameter */
#define VENDOR_ID 0x1209 #define VENDOR_ID 0x1209

View File

@ -13,10 +13,10 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <quantum.h> #include "quantum.h"
#include <i2c_master.h> #include "i2c_master.h"
#include <led_tables.h> #include "led_tables.h"
#include <rgb_matrix.h> #include "rgb_matrix.h"
#include <string.h> #include <string.h>
#include "model01.h" #include "model01.h"

View File

@ -15,8 +15,8 @@
*/ */
#pragma once #pragma once
#include <quantum.h> #include "quantum.h"
#include <rgb_matrix.h> #include "rgb_matrix.h"
void set_all_leds_to(uint8_t r, uint8_t g, uint8_t b); void set_all_leds_to(uint8_t r, uint8_t g, uint8_t b);
void set_led_to(int led, uint8_t r, uint8_t g, uint8_t b); void set_led_to(int led, uint8_t r, uint8_t g, uint8_t b);

View File

@ -13,8 +13,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <quantum.h> #include "quantum.h"
#include <i2c_master.h> #include "i2c_master.h"
#include <string.h> #include <string.h>
#include "model01.h" #include "model01.h"

View File

@ -13,8 +13,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <quantum.h> #include "quantum.h"
#include <i2c_master.h> #include "i2c_master.h"
#include <string.h> #include <string.h>
#include "model01.h" #include "model01.h"

View File

@ -15,7 +15,7 @@
*/ */
#pragma once #pragma once
#include <quantum.h> #include "quantum.h"
#define LAYOUT( \ #define LAYOUT( \
L07, L06, L05, L04, L03, L02, R05, R04, R03, R02, R01, R00, \ L07, L06, L05, L04, L03, L02, R05, R04, R03, R02, R01, R00, \

View File

@ -1,5 +1,5 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#include "LUFA/Drivers/Peripheral/TWI.h" #include <LUFA/Drivers/Peripheral/TWI.h>
#ifdef SSD1306OLED #ifdef SSD1306OLED
#include "ssd1306.h" #include "ssd1306.h"
#endif #endif

View File

@ -8,7 +8,7 @@
#include <avr/io.h> #include <avr/io.h>
#include <avr/interrupt.h> #include <avr/interrupt.h>
#include "TWIlib.h" #include "TWIlib.h"
#include "util/delay.h" #include <util/delay.h>
#include "print.h" #include "print.h"
// Global transmit buffer // Global transmit buffer

View File

@ -2,7 +2,7 @@
#include <avr/timer_avr.h> #include <avr/timer_avr.h>
#include <avr/wdt.h> #include <avr/wdt.h>
#include <audio/audio.h> #include "audio.h"
#include "issi.h" #include "issi.h"
#include "TWIlib.h" #include "TWIlib.h"
#include "lighting.h" #include "lighting.h"

View File

@ -11,7 +11,7 @@
#include "lighting.h" #include "lighting.h"
#include "debug.h" #include "debug.h"
#include "rgblight.h" #include "rgblight.h"
#include "audio/audio.h" #include "audio.h"
extern rgblight_config_t rgblight_config; // Declared in rgblight.c extern rgblight_config_t rgblight_config; // Declared in rgblight.c

View File

@ -19,8 +19,8 @@
* generator plugin. Do not edit manually. * generator plugin. Do not edit manually.
*/ */
#include "hal.h" #include <hal.h>
#include "stm32_gpio.h" #include <stm32_gpio.h>
/*===========================================================================*/ /*===========================================================================*/
/* Driver local definitions. */ /* Driver local definitions. */

View File

@ -19,8 +19,8 @@
* generator plugin. Do not edit manually. * generator plugin. Do not edit manually.
*/ */
#include "hal.h" #include <hal.h>
#include "stm32_gpio.h" #include <stm32_gpio.h>
/*===========================================================================*/ /*===========================================================================*/
/* Driver local definitions. */ /* Driver local definitions. */

View File

@ -5,11 +5,11 @@
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
#include "hal.h" #include <hal.h>
#include "quantum.h" #include "quantum.h"
#include "timer.h" #include "timer.h"
#include "wait.h" #include "wait.h"
#include "printf.h" #include "print.h"
#include "matrix.h" #include "matrix.h"
/** /**

View File

@ -8,7 +8,7 @@
#include <avr/io.h> #include <avr/io.h>
#include <avr/interrupt.h> #include <avr/interrupt.h>
#include "TWIlib.h" #include "TWIlib.h"
#include "util/delay.h" #include <util/delay.h>
#include "print.h" #include "print.h"
// Global transmit buffer // Global transmit buffer

View File

@ -9,7 +9,7 @@
#include "TWIlib.h" #include "TWIlib.h"
#include "lighting.h" #include "lighting.h"
#include "debug.h" #include "debug.h"
#include "audio/audio.h" #include "audio.h"
const uint8_t backlight_pwm_map[BACKLIGHT_LEVELS] = BACKLIGHT_PWM_MAP; const uint8_t backlight_pwm_map[BACKLIGHT_LEVELS] = BACKLIGHT_PWM_MAP;

View File

@ -21,10 +21,10 @@
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
#include "hal.h" #include <hal.h>
#include "timer.h" #include "timer.h"
#include "wait.h" #include "wait.h"
#include "printf.h" #include "print.h"
#include "matrix.h" #include "matrix.h"
#include "action.h" #include "action.h"
#include "keycode.h" #include "keycode.h"

View File

@ -20,7 +20,7 @@
# include <avr/interrupt.h> # include <avr/interrupt.h>
#endif #endif
#ifdef STM32_EEPROM_ENABLE #ifdef STM32_EEPROM_ENABLE
# include "hal.h" # include <hal.h>
# include "eeprom.h" # include "eeprom.h"
# include "eeprom_stm32.h" # include "eeprom_stm32.h"
#endif #endif
@ -31,7 +31,7 @@
#include "color.h" #include "color.h"
#include "debug.h" #include "debug.h"
#include "led_tables.h" #include "led_tables.h"
#include "lib/lib8tion/lib8tion.h" #include <lib/lib8tion/lib8tion.h>
#ifdef VELOCIKEY_ENABLE #ifdef VELOCIKEY_ENABLE
# include "velocikey.h" # include "velocikey.h"
#endif #endif

View File

@ -15,8 +15,8 @@
*/ */
#include <stdbool.h> #include <stdbool.h>
#include "action.h" #include "action.h"
#include "lib/lufa/LUFA/Drivers/Peripheral/TWI.h" #include <LUFA/Drivers/Peripheral/TWI.h>
#include "lib/lufa/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c" #include <LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c>
#include "mcp23017.h" #include "mcp23017.h"
#include "debug.h" #include "debug.h"
#include "wait.h" #include "wait.h"

View File

@ -3,7 +3,7 @@
#include "quantum.h" #include "quantum.h"
#include "pointing_device.h" #include "pointing_device.h"
#include "adns9800_srom_A4.h" #include "adns9800_srom_A4.h"
#include "../../lib/lufa/LUFA/Drivers/Peripheral/SPI.h" #include <LUFA/Drivers/Peripheral/SPI.h>
// registers // registers
#define REG_Product_ID 0x00 #define REG_Product_ID 0x00

View File

@ -1,4 +1,4 @@
#include "hal.h" #include <hal.h>
#include "usb_main.h" #include "usb_main.h"
#include "phoenix.h" #include "phoenix.h"

View File

@ -14,8 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "ez.h" #include "ez.h"
#include "ch.h" #include <ch.h>
#include "hal.h" #include <hal.h>
keyboard_config_t keyboard_config; keyboard_config_t keyboard_config;
#ifdef RGB_MATRIX_ENABLE #ifdef RGB_MATRIX_ENABLE

View File

@ -19,7 +19,7 @@
#ifdef LED_MATRIX_ENABLE #ifdef LED_MATRIX_ENABLE
#include "is31fl3731-simple.h" #include "is31fl3731-simple.h"
#include <math.h> #include <math.h>
#include <print.h> #include "print.h"
#include "quantum.h" #include "quantum.h"
const is31_led g_is31_leds[LED_DRIVER_LED_COUNT] = { const is31_led g_is31_leds[LED_DRIVER_LED_COUNT] = {

View File

@ -55,8 +55,8 @@
#include <avr/interrupt.h> #include <avr/interrupt.h>
#include "drivers/avr/i2c_master.h" #include "drivers/avr/i2c_master.h"
#else #else
#include "ch.h" #include <ch.h>
#include "hal.h" #include <hal.h>
#include "drivers/chibios/i2c_master.h" #include "drivers/chibios/i2c_master.h"
#endif #endif

View File

@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once #pragma once
#include "config_common.h" #include "config_common.h"
#include <serial_config.h> #include "serial_config.h"
#define USE_I2C #define USE_I2C
#define USE_SERIAL #define USE_SERIAL

View File

@ -5,10 +5,10 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
#include <split_scomm.h> #include "split_scomm.h"
#include "serial.h" #include "serial.h"
#ifdef CONSOLE_ENABLE #ifdef CONSOLE_ENABLE
#include <print.h> #include "print.h"
#endif #endif
uint8_t volatile serial_slave_buffer[SERIAL_SLAVE_BUFFER_LENGTH] = {0}; uint8_t volatile serial_slave_buffer[SERIAL_SLAVE_BUFFER_LENGTH] = {0};

View File

@ -15,7 +15,7 @@
*/ */
#include "voices.h" #include "voices.h"
#include "audio.h" #include "audio.h"
#include "stdlib.h" #include <stdlib.h>
// these are imported from audio.c // these are imported from audio.c
extern uint16_t envelope_index; extern uint16_t envelope_index;

View File

@ -17,8 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once #pragma once
#include "stdint.h" #include <stdint.h>
#include "stdbool.h" #include <stdbool.h>
/* FIXME: Add doxygen comments here. */ /* FIXME: Add doxygen comments here. */

View File

@ -1,6 +1,6 @@
#include "progmem.h" #include "progmem.h"
#include "stddef.h" #include <stddef.h>
#include "inttypes.h" #include <inttypes.h>
#define ATTR_PACKED __attribute__((packed)) #define ATTR_PACKED __attribute__((packed))
/** Concatenates the given input into a single token, via the C Preprocessor. /** Concatenates the given input into a single token, via the C Preprocessor.

View File

@ -31,7 +31,7 @@
#include "led.h" #include "led.h"
#include "sendchar.h" #include "sendchar.h"
#include "debug.h" #include "debug.h"
#include "printf.h" #include "print.h"
#ifndef EARLY_INIT_PERFORM_BOOTLOADER_JUMP #ifndef EARLY_INIT_PERFORM_BOOTLOADER_JUMP
// Change this to be TRUE once we've migrated keyboards to the new init system // Change this to be TRUE once we've migrated keyboards to the new init system