Skip to content

Commit

Permalink
Normalise include statements in keyboard code (#11185)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Dec 16, 2020
1 parent 37fb14f commit 9366ed7
Show file tree
Hide file tree
Showing 81 changed files with 108 additions and 291 deletions.
2 changes: 1 addition & 1 deletion drivers/chibios/serial_usart.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "quantum.h"
#include "serial.h"
#include "printf.h"
#include "print.h"

#include <ch.h>
#include <hal.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/qwiic/micro_oled.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <stdlib.h>
#include "util/font5x7.h"
#include "util/font8x16.h"
#include "string.h"
#include <string.h>

#define TOTALFONTS 2
const unsigned char* fonts_pointer[] = {font5x7, font8x16};
Expand Down
2 changes: 1 addition & 1 deletion keyboards/40percentclub/ut47/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <avr/io.h>
#include "stdint.h"
#include <stdint.h>
#include "led.h"


Expand Down
2 changes: 1 addition & 1 deletion keyboards/ai03/orbit/matrix.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#pragma once

#include <common/matrix.h>
#include "common/matrix.h"
2 changes: 1 addition & 1 deletion keyboards/ai03/orbit/transport.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <common/matrix.h>
#include "common/matrix.h"

#define ROWS_PER_HAND (MATRIX_ROWS/2)

Expand Down
4 changes: 2 additions & 2 deletions keyboards/akegata_denki/device_one/boards/DEVICE_ONE/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* generator plugin. Do not edit manually.
*/

#include "hal.h"
#include "stm32_gpio.h"
#include <hal.h>
#include <stm32_gpio.h>

/*===========================================================================*/
/* Driver local definitions. */
Expand Down
4 changes: 2 additions & 2 deletions keyboards/cannonkeys/bluepill/keyboard.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "ch.h"
#include "hal.h"
#include <ch.h>
#include <hal.h>
#include "util.h"
#include "quantum.h"

Expand Down
2 changes: 1 addition & 1 deletion keyboards/cannonkeys/bluepill/ws2812.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

#include "ws2812.h"
#include "stdlib.h"
#include <stdlib.h>

#define BYTES_FOR_LED_BYTE 4
#define NB_COLORS 3
Expand Down
3 changes: 1 addition & 2 deletions keyboards/cannonkeys/satisfaction75/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -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/>.
*/

#include "hal.h"
#include <hal.h>
#include "led_custom.h"
#include "satisfaction75.h"
#include "printf.h"

static void breathing_callback(PWMDriver *pwmp);

Expand Down
4 changes: 2 additions & 2 deletions keyboards/cannonkeys/satisfaction75/satisfaction75.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include "print.h"
#include "debug.h"

#include "ch.h"
#include "hal.h"
#include <ch.h>
#include <hal.h>

#ifdef QWIIC_MICRO_OLED_ENABLE
#include "micro_oled.h"
Expand Down
4 changes: 2 additions & 2 deletions keyboards/chavdai40/boards/GENERIC_STM32_F042X6/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* generator plugin. Do not edit manually.
*/

#include "hal.h"
#include "stm32_gpio.h"
#include <hal.h>
#include <stm32_gpio.h>

/*===========================================================================*/
/* Driver local definitions. */
Expand Down
4 changes: 2 additions & 2 deletions keyboards/clueboard/60/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "hal.h"
#include "printf.h"
#include <hal.h>
#include "print.h"

#ifdef BACKLIGHT_ENABLE
#include "backlight.h"
Expand Down
20 changes: 0 additions & 20 deletions keyboards/clueboard/66_hotswap/gen1/led.c

This file was deleted.

159 changes: 0 additions & 159 deletions keyboards/clueboard/66_hotswap/gen1/matrix.c

This file was deleted.

3 changes: 0 additions & 3 deletions keyboards/clueboard/66_hotswap/gen1/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = yes # Commands for debug and configuration
#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
NKRO_ENABLE = yes # USB Nkey Rollover
#CUSTOM_MATRIX = yes # Custom matrix file
AUDIO_ENABLE = yes
# SERIAL_LINK_ENABLE = yes

# project specific files
SRC = led.c
LAYOUTS = 66_ansi
2 changes: 1 addition & 1 deletion keyboards/converter/adb_usb/led.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Ported to QMK by Peter Roe <[email protected]>

#ifndef LED_H
#define LED_H
#include "stdint.h"
#include <stdint.h>


/* keyboard LEDs */
Expand Down
2 changes: 1 addition & 1 deletion keyboards/converter/hp_46010a/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "util.h"
#include "matrix.h"
#include "timer.h"
#include "LUFA/Drivers/Peripheral/SPI.h"
#include <LUFA/Drivers/Peripheral/SPI.h>

#include "config.h"

Expand Down
2 changes: 1 addition & 1 deletion keyboards/converter/ibm_terminal/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -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/>.
*/

#include "stdint.h"
#include <stdint.h>
#include "ps2.h"
#include "led.h"

Expand Down
4 changes: 2 additions & 2 deletions keyboards/converter/siemens_tastatur/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "wait.h"
#include "print.h"
#include "matrix.h"
#include "ch.h"
#include "hal.h"
#include <ch.h>
#include <hal.h>

static matrix_row_t matrix[MATRIX_ROWS];
static matrix_row_t matrix_debouncing[MATRIX_ROWS];
Expand Down
2 changes: 1 addition & 1 deletion keyboards/crkbd/keymaps/vlukash_trackpad_right/trackpad.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "quantum.h"
#include "report.h"
#include <util/delay.h>
#include "../../lib/lufa/LUFA/Drivers/Peripheral/SPI.h"
#include <LUFA/Drivers/Peripheral/SPI.h>

// Trackpad speed adjustments
#define POINTER_SPEED_MULTIPLIER 2
Expand Down
2 changes: 1 addition & 1 deletion keyboards/crkbd/rev1/legacy/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#include <serial_config.h>
#include "serial_config.h"

#define PRODUCT Corne Keyboard Rev.1 (Legacy Split)
2 changes: 1 addition & 1 deletion keyboards/crkbd/rev1/legacy/split_scomm.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include <split_scomm.h>
#include "split_scomm.h"
#include "serial.h"
#ifdef CONSOLE_ENABLE
#include "debug.h"
Expand Down
2 changes: 1 addition & 1 deletion keyboards/cu75/cu75.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#ifdef AUDIO_ENABLE
float test_sound[][2] = SONG(STARTUP_SOUND);
#include <audio/audio.h>
#include "audio.h"
#endif

uint16_t click_hz = CLICK_HZ;
Expand Down
2 changes: 1 addition & 1 deletion keyboards/dekunukem/duckypad/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#include QMK_KEYBOARD_H

#include "stdio.h"
#include <stdio.h>
#include <unistd.h>
#include <string.h>

Expand Down
2 changes: 1 addition & 1 deletion keyboards/dm9records/ergoinu/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once

#include "config_common.h"
#include <serial_config.h>
#include "serial_config.h"

/* USB Device descriptor parameter
VID & PID are lisenced from microchip sublisence program, Don't use other project! */
Expand Down
Loading

0 comments on commit 9366ed7

Please sign in to comment.