Browse Source

Fix functions with empty params (#19647)

* Fix functions with empty params

* Found a bunch more
pull/19656/head
Ryan 1 year ago
committed by GitHub
parent
commit
cf935d97ae
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
170 changed files with 276 additions and 276 deletions
  1. +1
    -1
      docs/gpio_control.md
  2. +1
    -1
      docs/quantum_painter_lvgl.md
  3. +1
    -1
      drivers/lcd/hd44780.c
  4. +1
    -1
      drivers/sensors/adns9800.c
  5. +1
    -1
      drivers/sensors/cirque_pinnacle.c
  6. +4
    -4
      drivers/usb2422.c
  7. +2
    -2
      keyboards/40percentclub/gherkin/keymaps/mjt/keymap.c
  8. +1
    -1
      keyboards/40percentclub/gherkin/keymaps/steno/keymap.c
  9. +1
    -1
      keyboards/40percentclub/mf68/keymaps/delivrance/keymap.c
  10. +1
    -1
      keyboards/40percentclub/ut47/ut47.c
  11. +1
    -1
      keyboards/annepro2/annepro2.c
  12. +6
    -6
      keyboards/annepro2/ap2_led.c
  13. +1
    -1
      keyboards/bemeier/bmek/bmek.c
  14. +1
    -1
      keyboards/bpiphany/frosty_flake/20130602/20130602.c
  15. +1
    -1
      keyboards/bpiphany/frosty_flake/20140521/20140521.c
  16. +2
    -2
      keyboards/cannonkeys/satisfaction75/satisfaction75.c
  17. +5
    -5
      keyboards/cannonkeys/satisfaction75/satisfaction_encoder.c
  18. +2
    -2
      keyboards/cannonkeys/satisfaction75/satisfaction_oled.c
  19. +1
    -1
      keyboards/capsunlocked/cu75/cu75.c
  20. +3
    -3
      keyboards/converter/adb_usb/adb.c
  21. +1
    -1
      keyboards/converter/hp_46010a/matrix.c
  22. +1
    -1
      keyboards/converter/ibm_terminal/keymaps/priyadi/keymap.c
  23. +6
    -6
      keyboards/converter/m0110_usb/m0110.c
  24. +1
    -1
      keyboards/crkbd/keymaps/jpe230/oled/avr/master/oled_master_handler.c
  25. +1
    -1
      keyboards/crkbd/keymaps/jpe230/oled/avr/slave/oled_slave_handler.c
  26. +1
    -1
      keyboards/crkbd/keymaps/jpe230/oled/oled_handler.c
  27. +1
    -1
      keyboards/crkbd/keymaps/jpe230/oled/rp2040/master/oled_master_handler.c
  28. +1
    -1
      keyboards/crkbd/keymaps/jpe230/oled/rp2040/slave/oled_slave_handler.c
  29. +1
    -1
      keyboards/dmqdesign/spin/keymaps/spidey3_pad/keymap.c
  30. +1
    -1
      keyboards/dp60/matrix.c
  31. +1
    -1
      keyboards/duck/jetfire/jetfire.c
  32. +1
    -1
      keyboards/duck/lightsaver/matrix.c
  33. +1
    -1
      keyboards/dumbpad/v0x/v0x.c
  34. +1
    -1
      keyboards/dumbpad/v0x_dualencoder/v0x_dualencoder.c
  35. +1
    -1
      keyboards/dumbpad/v0x_right/v0x_right.c
  36. +1
    -1
      keyboards/dumbpad/v1x/v1x.c
  37. +1
    -1
      keyboards/dumbpad/v1x_dualencoder/v1x_dualencoder.c
  38. +1
    -1
      keyboards/dumbpad/v1x_right/v1x_right.c
  39. +1
    -1
      keyboards/dumbpad/v3x/v3x.c
  40. +2
    -2
      keyboards/dz60/keymaps/marianas/relativity.c
  41. +2
    -2
      keyboards/eco/keymaps/that_canadian/keymap.c
  42. +1
    -1
      keyboards/eyeohdesigns/babyv/keymaps/bghull/keymap.c
  43. +1
    -1
      keyboards/gboards/butterstick/sten.c
  44. +2
    -2
      keyboards/gboards/engine/engine.c
  45. +2
    -2
      keyboards/gboards/g/engine.c
  46. +1
    -1
      keyboards/gboards/georgi/sten.c
  47. +2
    -2
      keyboards/gmmk/pro/rev1/ansi/keymaps/andrebrait/keymap.c
  48. +3
    -3
      keyboards/gmmk/pro/rev1/ansi/keymaps/byungyoonc/keymap.c
  49. +3
    -3
      keyboards/gmmk/pro/rev1/ansi/keymaps/hachetman/keymap.c
  50. +2
    -2
      keyboards/gmmk/pro/rev1/ansi/keymaps/lalitmaganti/keymap.c
  51. +2
    -2
      keyboards/gmmk/pro/rev1/ansi/keymaps/macos/keymap.c
  52. +3
    -3
      keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/encoder.c
  53. +1
    -1
      keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/process_record.c
  54. +2
    -2
      keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.c
  55. +1
    -1
      keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/utils.c
  56. +4
    -4
      keyboards/gmmk/pro/rev1/ansi/keymaps/stickandgum/keymap.c
  57. +4
    -4
      keyboards/gmmk/pro/rev1/ansi/keymaps/trwnh/keymap.c
  58. +2
    -2
      keyboards/hadron/ver2/keymaps/side_numpad/keymap.c
  59. +2
    -2
      keyboards/handwired/atreus50/keymaps/default/keymap.c
  60. +1
    -1
      keyboards/handwired/jotanck/jotanck.c
  61. +1
    -1
      keyboards/handwired/jotpad16/jotpad16.c
  62. +1
    -1
      keyboards/handwired/jscotto/scotto36/keymaps/default/keymap.c
  63. +1
    -1
      keyboards/handwired/jscotto/scottocmd/keymaps/default/keymap.c
  64. +1
    -1
      keyboards/handwired/onekey/keymaps/digitizer/keymap.c
  65. +1
    -1
      keyboards/handwired/onekey/keymaps/joystick/keymap.c
  66. +2
    -2
      keyboards/handwired/ortho5x13/keymaps/default/keymap.c
  67. +3
    -3
      keyboards/handwired/promethium/keymaps/default/keymap.c
  68. +3
    -3
      keyboards/handwired/promethium/keymaps/priyadi/keymap.c
  69. +2
    -2
      keyboards/helix/pico/keymaps/default/keymap.c
  70. +2
    -2
      keyboards/helix/pico/keymaps/mtei/keymap.c
  71. +2
    -2
      keyboards/helix/rev2/keymaps/default/keymap.c
  72. +2
    -2
      keyboards/helix/rev2/keymaps/froggy/keymap.c
  73. +2
    -2
      keyboards/helix/rev2/keymaps/yshrsmz/keymap.c
  74. +1
    -1
      keyboards/ibnuda/squiggle/keymaps/rick-complicated/keymap.c
  75. +1
    -1
      keyboards/input_club/ergodox_infinity/ergodox_infinity.c
  76. +1
    -1
      keyboards/input_club/ergodox_infinity/keymaps/dudeofawesome/keymap.c
  77. +1
    -1
      keyboards/input_club/k_type/keymaps/andrew-fahmy/keymap.c
  78. +1
    -1
      keyboards/jels/jels88/jels88.c
  79. +1
    -1
      keyboards/kbdfans/niu_mini/keymaps/yttyx/keymap.c
  80. +1
    -1
      keyboards/keebio/iris/keymaps/edvorakjp/keymap.c
  81. +1
    -1
      keyboards/keebio/levinson/keymaps/steno/keymap.c
  82. +1
    -1
      keyboards/knops/mini/keymaps/mverteuil/keymap.c
  83. +2
    -2
      keyboards/lazydesigners/dimple/staggered/staggered.c
  84. +2
    -2
      keyboards/lazydesigners/the50/the50.c
  85. +2
    -2
      keyboards/lfkeyboards/TWIlib.c
  86. +1
    -1
      keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c
  87. +1
    -1
      keyboards/lfkeyboards/lfk78/lfk78.c
  88. +1
    -1
      keyboards/lfkeyboards/lfk87/lfk87.c
  89. +2
    -2
      keyboards/lfkeyboards/lighting.c
  90. +1
    -1
      keyboards/lfkeyboards/mini1800/mini1800.c
  91. +1
    -1
      keyboards/lfkeyboards/smk65/revb/revb.c
  92. +2
    -2
      keyboards/macrocat/macrocat.c
  93. +1
    -1
      keyboards/makeymakey/makeymakey.c
  94. +1
    -1
      keyboards/matrix/noah/keymaps/blockader/keymap.c
  95. +1
    -1
      keyboards/mechwild/bbs/bbs.c
  96. +2
    -2
      keyboards/nek_type_a/mcp23017.c
  97. +1
    -1
      keyboards/neopad/rev1/rev1.c
  98. +1
    -1
      keyboards/opendeck/32/rev1/rev1.c
  99. +2
    -2
      keyboards/planck/keymaps/circuit/keymap.c
  100. +2
    -2
      keyboards/planck/keymaps/dbroqua/keymap.c

+ 1
- 1
docs/gpio_control.md View File

@ -30,7 +30,7 @@ The above functions are not always guaranteed to work atomically. Therefore, if
eg.
```c
void some_function() {
void some_function(void) {
// some process
ATOMIC_BLOCK_FORCEON {
// Atomic Processing


+ 1
- 1
docs/quantum_painter_lvgl.md View File

@ -45,7 +45,7 @@ To init. the display please read the [Display Initialisation](quantum_painter.md
### Quantum Painter LVGL Detach :id=lvgl-api-init
```c
void qp_lvgl_detach()
void qp_lvgl_detach(void)
```
The `qp_lvgl_detach` function stops the internal LVGL ticks and releases resources related to it.


+ 1
- 1
drivers/lcd/hd44780.c View File

@ -158,7 +158,7 @@ void hd44780_on(bool cursor, bool blink) {
}
}
void hd44780_off() {
void hd44780_off(void) {
hd44780_command(HD44780_CMD_DISPLAY);
}


+ 1
- 1
drivers/sensors/adns9800.c View File

@ -99,7 +99,7 @@ uint8_t adns9800_read(uint8_t reg_addr) {
return data;
}
void adns9800_init() {
void adns9800_init(void) {
setPinOutput(ADNS9800_CS_PIN);
spi_init();


+ 1
- 1
drivers/sensors/cirque_pinnacle.c View File

@ -87,7 +87,7 @@ void cirque_pinnacle_scale_data(pinnacle_data_t* coordinates, uint16_t xResoluti
}
// Clears Status1 register flags (SW_CC and SW_DR)
void cirque_pinnacle_clear_flags() {
void cirque_pinnacle_clear_flags(void) {
RAP_Write(HOSTREG__STATUS1, HOSTREG__STATUS1_DEFVAL & ~(HOSTREG__STATUS1__COMMAND_COMPLETE | HOSTREG__STATUS1__DATA_READY));
wait_us(50);
}


+ 4
- 4
drivers/usb2422.c View File

@ -344,7 +344,7 @@ static void USB2422_write_block(void) {
// ***************************************************************
void USB2422_init() {
void USB2422_init(void) {
#ifdef USB2422_RESET_PIN
setPinOutput(USB2422_RESET_PIN);
#endif
@ -355,7 +355,7 @@ void USB2422_init() {
i2c_init(); // IC2 clk must be high at USB2422 reset release time to signal SMB configuration
}
void USB2422_configure() {
void USB2422_configure(void) {
static const char SERNAME[] = "Unavailable";
memset(&config, 0, sizeof(Usb2422_t));
@ -385,7 +385,7 @@ void USB2422_configure() {
USB2422_write_block();
}
void USB2422_reset() {
void USB2422_reset(void) {
#ifdef USB2422_RESET_PIN
writePinLow(USB2422_RESET_PIN);
wait_us(2);
@ -393,7 +393,7 @@ void USB2422_reset() {
#endif
}
bool USB2422_active() {
bool USB2422_active(void) {
#ifdef USB2422_ACTIVE_PIN
return readPin(USB2422_ACTIVE_PIN);
#else


+ 2
- 2
keyboards/40percentclub/gherkin/keymaps/mjt/keymap.c View File

@ -174,13 +174,13 @@ void matrix_init_user(void) {
#ifdef AUDIO_ENABLE
void startup_user()
void startup_user(void)
{
_delay_ms(20); // gets rid of tick
PLAY_SONG(tone_startup);
}
void shutdown_user()
void shutdown_user(void)
{
PLAY_SONG(tone_goodbye);
_delay_ms(150);


+ 1
- 1
keyboards/40percentclub/gherkin/keymaps/steno/keymap.c View File

@ -8,6 +8,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
STN_NUM, STN_NUM, STN_A, STN_O, STN_NUM, STN_E, STN_U, STN_NUM, STN_NUM, STN_NUM),
};
void matrix_init_user() {
void matrix_init_user(void) {
steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT
}

+ 1
- 1
keyboards/40percentclub/mf68/keymaps/delivrance/keymap.c View File

@ -197,7 +197,7 @@ void led_set_user(uint8_t usb_led) {
static uint32_t timer;
static bool is_idle;
void matrix_scan_user() {
void matrix_scan_user(void) {
// Check the timer only if the keyboard is not idle
if (!is_idle) {
if (timer_elapsed32(timer) >= (uint32_t) BACKLIGHT_IDLE_TIMEOUT * 1000) {


+ 1
- 1
keyboards/40percentclub/ut47/ut47.c View File

@ -17,7 +17,7 @@
#ifdef LED_ENABLE
#include "uart.h"
void matrix_init_kb() {
void matrix_init_kb(void) {
uart_init(9600);
}
#endif


+ 1
- 1
keyboards/annepro2/annepro2.c View File

@ -111,7 +111,7 @@ void keyboard_post_init_kb(void) {
keyboard_post_init_user();
}
void matrix_scan_kb() {
void matrix_scan_kb(void) {
// if there's stuff on the ble serial buffer
// read it into the capslock struct
while (!sdGetWouldBlock(&SD1)) {


+ 6
- 6
keyboards/annepro2/ap2_led.c View File

@ -60,15 +60,15 @@ void ap2_led_enable(void) { proto_tx(CMD_LED_ON, NULL, 0, 3); }
void ap2_led_set_profile(uint8_t prof) { proto_tx(CMD_LED_SET_PROFILE, &prof, sizeof(prof), 3); }
void ap2_led_get_status() { proto_tx(CMD_LED_GET_STATUS, NULL, 0, 3); }
void ap2_led_get_status(void) { proto_tx(CMD_LED_GET_STATUS, NULL, 0, 3); }
void ap2_led_next_profile() { proto_tx(CMD_LED_NEXT_PROFILE, NULL, 0, 3); }
void ap2_led_next_profile(void) { proto_tx(CMD_LED_NEXT_PROFILE, NULL, 0, 3); }
void ap2_led_next_intensity() { proto_tx(CMD_LED_NEXT_INTENSITY, NULL, 0, 3); }
void ap2_led_next_intensity(void) { proto_tx(CMD_LED_NEXT_INTENSITY, NULL, 0, 3); }
void ap2_led_next_animation_speed() { proto_tx(CMD_LED_NEXT_ANIMATION_SPEED, NULL, 0, 3); }
void ap2_led_next_animation_speed(void) { proto_tx(CMD_LED_NEXT_ANIMATION_SPEED, NULL, 0, 3); }
void ap2_led_prev_profile() { proto_tx(CMD_LED_PREV_PROFILE, NULL, 0, 3); }
void ap2_led_prev_profile(void) { proto_tx(CMD_LED_PREV_PROFILE, NULL, 0, 3); }
void ap2_led_mask_set_key(uint8_t row, uint8_t col, ap2_led_t color) {
uint8_t payload[] = {row, col, color.p.blue, color.p.green, color.p.red, color.p.alpha};
@ -127,7 +127,7 @@ void ap2_led_set_foreground_color(uint8_t red, uint8_t green, uint8_t blue) {
ap2_led_mask_set_mono(color);
}
void ap2_led_reset_foreground_color() {
void ap2_led_reset_foreground_color(void) {
ap2_led_t color = {
.p.red = 0,
.p.green = 0,


+ 1
- 1
keyboards/bemeier/bmek/bmek.c View File

@ -16,7 +16,7 @@
#include "bmek.h"
__attribute__((weak))
void shutdown_user() {
void shutdown_user(void) {
#ifdef RGBLIGHT_ENABLE
rgblight_setrgb(255, 0, 0);
#endif


+ 1
- 1
keyboards/bpiphany/frosty_flake/20130602/20130602.c View File

@ -1,6 +1,6 @@
#include "frosty_flake.h"
void keyboard_pre_init_kb() {
void keyboard_pre_init_kb(void) {
setPinOutput(B7); // caps lock
writePinHigh(B7);
setPinOutput(C5); // num lock


+ 1
- 1
keyboards/bpiphany/frosty_flake/20140521/20140521.c View File

@ -1,6 +1,6 @@
#include "frosty_flake.h"
void keyboard_pre_init_kb() {
void keyboard_pre_init_kb(void) {
setPinOutput(B7); // num lock
writePinHigh(B7);
setPinOutput(C5); // caps lock


+ 2
- 2
keyboards/cannonkeys/satisfaction75/satisfaction75.c View File

@ -361,11 +361,11 @@ void custom_config_reset(void){
eeprom_update_byte((uint8_t*)EEPROM_ENABLED_ENCODER_MODES, 0x1F);
}
void backlight_config_save(){
void backlight_config_save(void){
eeprom_update_byte((uint8_t*)EEPROM_CUSTOM_BACKLIGHT, kb_backlight_config.raw);
}
void custom_config_load(){
void custom_config_load(void){
kb_backlight_config.raw = eeprom_read_byte((uint8_t*)EEPROM_CUSTOM_BACKLIGHT);
#ifdef DYNAMIC_KEYMAP_ENABLE
oled_mode = eeprom_read_byte((uint8_t*)EEPROM_DEFAULT_OLED);


+ 5
- 5
keyboards/cannonkeys/satisfaction75/satisfaction_encoder.c View File

@ -1,7 +1,7 @@
#include "satisfaction75.h"
#include "eeprom.h"
void pre_encoder_mode_change(){
void pre_encoder_mode_change(void){
if(encoder_mode == ENC_MODE_CLOCK_SET){
RTCDateTime timespec;
timespec.year = year_config;
@ -16,7 +16,7 @@ void pre_encoder_mode_change(){
}
}
void post_encoder_mode_change(){
void post_encoder_mode_change(void){
if(encoder_mode == ENC_MODE_CLOCK_SET){
hour_config = (last_minute / 60);
minute_config = last_minute % 60;
@ -86,7 +86,7 @@ void update_time_config(int8_t increment){
}
}
uint16_t handle_encoder_clockwise(){
uint16_t handle_encoder_clockwise(void){
uint16_t mapped_code = 0;
switch(encoder_mode){
default:
@ -130,7 +130,7 @@ uint16_t handle_encoder_clockwise(){
return mapped_code;
}
uint16_t handle_encoder_ccw(){
uint16_t handle_encoder_ccw(void){
uint16_t mapped_code = 0;
switch(encoder_mode){
default:
@ -175,7 +175,7 @@ uint16_t handle_encoder_ccw(){
return mapped_code;
}
uint16_t handle_encoder_press(){
uint16_t handle_encoder_press(void){
uint16_t mapped_code = 0;
switch(encoder_mode){
case ENC_MODE_VOLUME:


+ 2
- 2
keyboards/cannonkeys/satisfaction75/satisfaction_oled.c View File

@ -168,7 +168,7 @@ static char* get_date(void) {
return date_str;
}
void draw_default() {
void draw_default(void) {
oled_write_P(PSTR("LAYER "), false);
oled_write_char(get_highest_layer(layer_state) + 0x30, true);
@ -220,7 +220,7 @@ void draw_default() {
draw_line_v(71, 0, 8);
}
void draw_clock() {
void draw_clock(void) {
oled_set_cursor(0, 0);
oled_write(get_date(), false);
oled_set_cursor(0, 2);


+ 1
- 1
keyboards/capsunlocked/cu75/cu75.c View File

@ -98,7 +98,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record)
return process_record_user(keycode, record);
}
void reset_keyboard_kb(){
void reset_keyboard_kb(void){
#ifdef WATCHDOG_ENABLE
MCUSR = 0;
wdt_disable();


+ 3
- 3
keyboards/converter/adb_usb/adb.c View File

@ -238,15 +238,15 @@ void adb_host_kbd_led(uint8_t led) {
}
#ifdef ADB_PSW_BIT
static inline void psw_lo() {
static inline void psw_lo(void) {
ADB_DDR |= (1 << ADB_PSW_BIT);
ADB_PORT &= ~(1 << ADB_PSW_BIT);
}
static inline void psw_hi() {
static inline void psw_hi(void) {
ADB_PORT |= (1 << ADB_PSW_BIT);
ADB_DDR &= ~(1 << ADB_PSW_BIT);
}
static inline bool psw_in() {
static inline bool psw_in(void) {
ADB_PORT |= (1 << ADB_PSW_BIT);
ADB_DDR &= ~(1 << ADB_PSW_BIT);
return ADB_PIN & (1 << ADB_PSW_BIT);


+ 1
- 1
keyboards/converter/hp_46010a/matrix.c View File

@ -145,7 +145,7 @@ void Matrix_ThrowByte(void) {
return ;
}
void matrix_init () {
void matrix_init (void) {
// debug_matrix = 1;
// PB0 (SS) and PB1 (SCLK) set to outputs
DDRB |= RESET | SCLK ;


+ 1
- 1
keyboards/converter/ibm_terminal/keymaps/priyadi/keymap.c View File

@ -297,6 +297,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}
void matrix_init_user() {
void matrix_init_user(void) {
set_unicode_input_mode(UNICODE_MODE_LINUX);
}

+ 6
- 6
keyboards/converter/m0110_usb/m0110.c View File

@ -318,31 +318,31 @@ static inline uint8_t instant(void) {
return data;
}
static inline void clock_lo() {
static inline void clock_lo(void) {
M0110_CLOCK_PORT &= ~(1 << M0110_CLOCK_BIT);
M0110_CLOCK_DDR |= (1 << M0110_CLOCK_BIT);
}
static inline void clock_hi() {
static inline void clock_hi(void) {
/* input with pull up */
M0110_CLOCK_DDR &= ~(1 << M0110_CLOCK_BIT);
M0110_CLOCK_PORT |= (1 << M0110_CLOCK_BIT);
}
static inline bool clock_in() {
static inline bool clock_in(void) {
M0110_CLOCK_DDR &= ~(1 << M0110_CLOCK_BIT);
M0110_CLOCK_PORT |= (1 << M0110_CLOCK_BIT);
_delay_us(1);
return M0110_CLOCK_PIN & (1 << M0110_CLOCK_BIT);
}
static inline void data_lo() {
static inline void data_lo(void) {
M0110_DATA_PORT &= ~(1 << M0110_DATA_BIT);
M0110_DATA_DDR |= (1 << M0110_DATA_BIT);
}
static inline void data_hi() {
static inline void data_hi(void) {
/* input with pull up */
M0110_DATA_DDR &= ~(1 << M0110_DATA_BIT);
M0110_DATA_PORT |= (1 << M0110_DATA_BIT);
}
static inline bool data_in() {
static inline bool data_in(void) {
M0110_DATA_DDR &= ~(1 << M0110_DATA_BIT);
M0110_DATA_PORT |= (1 << M0110_DATA_BIT);
_delay_us(1);


+ 1
- 1
keyboards/crkbd/keymaps/jpe230/oled/avr/master/oled_master_handler.c View File

@ -63,7 +63,7 @@ void oled_render_keylog(void) {
oled_write((const char *)&logged_char, false);
}
void render_master_oled() {
void render_master_oled(void) {
if (timer_elapsed32(oled_timer) > CUSTOM_OLED_TIMEOUT) {
oled_off();
return;


+ 1
- 1
keyboards/crkbd/keymaps/jpe230/oled/avr/slave/oled_slave_handler.c View File

@ -3,7 +3,7 @@
#include "jpe230.h"
void render_slave_oled() {
void render_slave_oled(void) {
static const char PROGMEM crkbd_logo[] = {
0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94,
0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4,


+ 1
- 1
keyboards/crkbd/keymaps/jpe230/oled/oled_handler.c View File

@ -12,7 +12,7 @@ __attribute__ ((weak)) void handle_oled_keypress(uint16_t keycode, keyrecord_t *
__attribute__ ((weak)) oled_rotation_t rotate_master(oled_rotation_t rotation) {return rotation;}
__attribute__ ((weak)) oled_rotation_t rotate_slave(oled_rotation_t rotation) {return rotation;}
void oled_timer_reset() { oled_timer = timer_read32(); }
void oled_timer_reset(void) { oled_timer = timer_read32(); }
oled_rotation_t oled_init_user(oled_rotation_t rotation) {


+ 1
- 1
keyboards/crkbd/keymaps/jpe230/oled/rp2040/master/oled_master_handler.c View File

@ -40,7 +40,7 @@ void oled_render_layer_state(void) {
}
void render_master_oled() {
void render_master_oled(void) {
if (timer_elapsed32(oled_timer) > CUSTOM_OLED_TIMEOUT) {
oled_off();
return;


+ 1
- 1
keyboards/crkbd/keymaps/jpe230/oled/rp2040/slave/oled_slave_handler.c View File

@ -4,7 +4,7 @@
#include "jpe230.h"
#include "ocean_dream.h"
void render_slave_oled() {
void render_slave_oled(void) {
render_stars();
}


+ 1
- 1
keyboards/dmqdesign/spin/keymaps/spidey3_pad/keymap.c View File

@ -147,7 +147,7 @@ void keyboard_post_init_user(void) {
do_rgb_layers(layer_state, LAYER_BASE, LAYER_BASE_END);
}
void shutdown_user() {
void shutdown_user(void) {
clear_rgb_layers();
rgblight_enable();
rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT);


+ 1
- 1
keyboards/dp60/matrix.c View File

@ -123,7 +123,7 @@ static void init_rows(void)
setPinInputHigh(D4);
}
static uint8_t read_rows()
static uint8_t read_rows(void)
{
return ((readPin(E6) ? 0 : (1 << 0)) |
(readPin(F6) ? 0 : (1 << 1)) |


+ 1
- 1
keyboards/duck/jetfire/jetfire.c View File

@ -76,7 +76,7 @@ void backlight_set(uint8_t level)
backlight_toggle_rgb(level & BACKLIGHT_RGB);
}
void backlight_update_state()
void backlight_update_state(void)
{
cli();
send_color(backlight_state_led & (1<<STATE_LED_SCROLL_LOCK) ? 255 : 0,


+ 1
- 1
keyboards/duck/lightsaver/matrix.c View File

@ -138,7 +138,7 @@ static void init_rows(void) {
PORTE |= 0b00000100;
}
static uint8_t read_rows() {
static uint8_t read_rows(void) {
return (PINB&(1<<7) ? (1<<0) : 0) |
(PIND&(1<<0) ? (1<<1) : 0) |
(PIND&(1<<1) ? (1<<2) : 0) |


+ 1
- 1
keyboards/dumbpad/v0x/v0x.c View File

@ -22,7 +22,7 @@ void keyboard_pre_init_kb(void) {
keyboard_pre_init_user();
}
void shutdown_user() {
void shutdown_user(void) {
// Shutdown LEDs
writePinLow(LED_00);
writePinLow(LED_01);


+ 1
- 1
keyboards/dumbpad/v0x_dualencoder/v0x_dualencoder.c View File

@ -22,7 +22,7 @@ void keyboard_pre_init_kb(void) {
keyboard_pre_init_user();
}
void shutdown_user() {
void shutdown_user(void) {
// Shutdown LEDs
writePinLow(LED_00);
writePinLow(LED_01);


+ 1
- 1
keyboards/dumbpad/v0x_right/v0x_right.c View File

@ -22,7 +22,7 @@ void keyboard_pre_init_kb(void) {
keyboard_pre_init_user();
}
void shutdown_user() {
void shutdown_user(void) {
// Shutdown LEDs
writePinLow(LED_00);
writePinLow(LED_01);


+ 1
- 1
keyboards/dumbpad/v1x/v1x.c View File

@ -23,7 +23,7 @@ void keyboard_pre_init_kb(void) {
keyboard_pre_init_user();
}
void shutdown_user() {
void shutdown_user(void) {
// Shutdown LEDs
writePinLow(LED_00);
writePinLow(LED_01);


+ 1
- 1
keyboards/dumbpad/v1x_dualencoder/v1x_dualencoder.c View File

@ -23,7 +23,7 @@ void keyboard_pre_init_kb(void) {
keyboard_pre_init_user();
}
void shutdown_user() {
void shutdown_user(void) {
// Shutdown LEDs
writePinLow(LED_00);
writePinLow(LED_01);


+ 1
- 1
keyboards/dumbpad/v1x_right/v1x_right.c View File

@ -23,7 +23,7 @@ void keyboard_pre_init_kb(void) {
keyboard_pre_init_user();
}
void shutdown_user() {
void shutdown_user(void) {
// Shutdown LEDs
writePinLow(LED_00);
writePinLow(LED_01);


+ 1
- 1
keyboards/dumbpad/v3x/v3x.c View File

@ -54,7 +54,7 @@ void keyboard_pre_init_kb(void) {
keyboard_pre_init_user();
}
void shutdown_user() {
void shutdown_user(void) {
// Shutdown LEDs
writePinLow(LED_00);
writePinLow(LED_01);


+ 2
- 2
keyboards/dz60/keymaps/marianas/relativity.c View File

@ -24,7 +24,7 @@ bool tempOff = false;
void initStringData()
void initStringData(void)
{
if (macroTaps == 0)
{
@ -382,7 +382,7 @@ bool processSmartMacroTap(uint16_t kc)
bool shifted = false;
bool isShifted()
bool isShifted(void)
{
return shifted;
}


+ 2
- 2
keyboards/eco/keymaps/that_canadian/keymap.c View File

@ -183,13 +183,13 @@ void matrix_init_user(void) {
#ifdef AUDIO_ENABLE
void startup_user()
void startup_user(void)
{
_delay_ms(20); // gets rid of tick
PLAY_SONG(tone_startup);
}
void shutdown_user()
void shutdown_user(void)
{
PLAY_SONG(tone_goodbye);
_delay_ms(150);


+ 1
- 1
keyboards/eyeohdesigns/babyv/keymaps/bghull/keymap.c View File

@ -116,7 +116,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
void matrix_init_user() {
void matrix_init_user(void) {
steno_set_mode(STENO_MODE_GEMINI);
};

+ 1
- 1
keyboards/gboards/butterstick/sten.c View File

@ -370,7 +370,7 @@ void saveState(uint32_t cleanChord) {
for (int i = 0; i < 32; i++)
pChordState[i] = chordState[i];
}
void restoreState() {
void restoreState(void) {
cChord = pChord;
chordIndex = pChordIndex;
for (int i = 0; i < 32; i++)


+ 2
- 2
keyboards/gboards/engine/engine.c View File

@ -53,7 +53,7 @@ bool inMouse = false;
int8_t mousePress;
// All processing done at chordUp goes through here
void processKeysUp() {
void processKeysUp(void) {
// Check for mousekeys, this is release
#ifdef MOUSEKEY_ENABLE
if (inMouse) {
@ -372,7 +372,7 @@ void saveState(C_SIZE cleanChord) {
pChordIndex = chordIndex;
for (int i = 0; i < 32; i++) pChordState[i] = chordState[i];
}
void restoreState() {
void restoreState(void) {
cChord = pChord;
chordIndex = pChordIndex;
for (int i = 0; i < 32; i++) chordState[i] = pChordState[i];


+ 2
- 2
keyboards/gboards/g/engine.c View File

@ -53,7 +53,7 @@ bool inMouse = false;
int8_t mousePress;
// All processing done at chordUp goes through here
void processKeysUp() {
void processKeysUp(void) {
// Check for mousekeys, this is release
#ifdef MOUSEKEY_ENABLE
if (inMouse) {
@ -377,7 +377,7 @@ void saveState(C_SIZE cleanChord) {
pChordIndex = chordIndex;
for (int i = 0; i < 32; i++) pChordState[i] = chordState[i];
}
void restoreState() {
void restoreState(void) {
cChord = pChord;
chordIndex = pChordIndex;
for (int i = 0; i < 32; i++) chordState[i] = pChordState[i];


+ 1
- 1
keyboards/gboards/georgi/sten.c View File

@ -370,7 +370,7 @@ void saveState(uint32_t cleanChord) {
for (int i = 0; i < 32; i++)
pChordState[i] = chordState[i];
}
void restoreState() {
void restoreState(void) {
cChord = pChord;
chordIndex = pChordIndex;
for (int i = 0; i < 32; i++)


+ 2
- 2
keyboards/gmmk/pro/rev1/ansi/keymaps/andrebrait/keymap.c View File

@ -296,7 +296,7 @@ bool rgb_matrix_indicators_user(void) {
return false;
}
static void start_effects() {
static void start_effects(void) {
effect_started_time = sync_timer_read();
if (!rgb_matrix_is_enabled()) {
/* Turn it ON, signal the cause (EFFECTS) */
@ -319,7 +319,7 @@ static void start_effects() {
// 87, led 07 88, led 18
// 91, led 08 92, led 19
static void set_rgb_caps_leds() {
static void set_rgb_caps_leds(void) {
rgb_matrix_set_color(0, 0xFF, 0x0, 0x0); // ESC
rgb_matrix_set_color(6, 0xFF, 0x0, 0x0); // F1
rgb_matrix_set_color(12, 0xFF, 0x0, 0x0); // F2


+ 3
- 3
keyboards/gmmk/pro/rev1/ansi/keymaps/byungyoonc/keymap.c View File

@ -81,7 +81,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
static void set_rgb_caps_leds(void);
static void set_rgb_caps_leds() {
static void set_rgb_caps_leds(void) {
rgb_matrix_set_color(73, 0xFF, 0x77, 0x77); // Left side LED 3
rgb_matrix_set_color(74, 0xFF, 0x77, 0x77); // Right side LED 3
rgb_matrix_set_color(76, 0xFF, 0x77, 0x77); // Left side LED 4
@ -97,14 +97,14 @@ static void set_rgb_nlck_notset_leds(void);
static void set_rgb_wlck_leds(void);
static void set_rgb_nlck_notset_leds() {
static void set_rgb_nlck_notset_leds(void) {
rgb_matrix_set_color(67, 0x77, 0x77, 0xFF); // Left side LED 1
rgb_matrix_set_color(68, 0x77, 0x77, 0xFF); // Right side LED 1
rgb_matrix_set_color(70, 0x77, 0x77, 0xFF); // Left side LED 2
rgb_matrix_set_color(71, 0x77, 0x77, 0xFF); // Right side LED 2
}
static void set_rgb_wlck_leds() {
static void set_rgb_wlck_leds(void) {
rgb_matrix_set_color(87, 0x77, 0xFF, 0x77); // Left side LED 7
rgb_matrix_set_color(88, 0x77, 0xFF, 0x77); // Right side LED 7
rgb_matrix_set_color(91, 0x77, 0xFF, 0x77); // Left side LED 8


+ 3
- 3
keyboards/gmmk/pro/rev1/ansi/keymaps/hachetman/keymap.c View File

@ -220,7 +220,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
bool rgb_matrix_indicators_user() {
bool rgb_matrix_indicators_user(void) {
#if RGB_CONFIRMATION_BLINKING_TIME > 0
if (effect_started_time > 0) {
/* Render blinking EFFECTS */
@ -262,7 +262,7 @@ bool rgb_matrix_indicators_user() {
}
#if RGB_CONFIRMATION_BLINKING_TIME > 0
static void start_effects() {
static void start_effects(void) {
effect_started_time = sync_timer_read();
if (!rgb_matrix_is_enabled()) {
/* Turn it ON, signal the cause (EFFECTS) */
@ -286,7 +286,7 @@ static void start_effects() {
// 87, led 07 88, led 18
// 91, led 08 92, led 19
static void set_rgb_caps_leds() {
static void set_rgb_caps_leds(void) {
rgb_matrix_set_color(67, 0xFF, 0x0, 0x0); // Left side LED 1
rgb_matrix_set_color(68, 0xFF, 0x0, 0x0); // Right side LED 1
rgb_matrix_set_color(70, 0xFF, 0x0, 0x0); // Left side LED 2


+ 2
- 2
keyboards/gmmk/pro/rev1/ansi/keymaps/lalitmaganti/keymap.c View File

@ -73,14 +73,14 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
static void set_rgb_side_leds(void);
static void set_rgb_side_leds() {
static void set_rgb_side_leds(void) {
rgb_matrix_set_color(67, RGB_WHITE); // Left side LED 1
rgb_matrix_set_color(68, RGB_WHITE); // Right side LED 1
rgb_matrix_set_color(91, RGB_WHITE); // Left side LED 8
rgb_matrix_set_color(92, RGB_WHITE); // Right side LED 8
}
bool rgb_matrix_indicators_user() {
bool rgb_matrix_indicators_user(void) {
rgb_matrix_set_color_all(0x0, 0x0, 0x0);
if (IS_HOST_LED_ON(USB_LED_CAPS_LOCK)) {
rgb_matrix_set_color(3, RGB_WHITE); // CAPS


+ 2
- 2
keyboards/gmmk/pro/rev1/ansi/keymaps/macos/keymap.c View File

@ -414,7 +414,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
}
#if RGB_CONFIRMATION_BLINKING_TIME > 0
static void start_effects() {
static void start_effects(void) {
effect_started_time = sync_timer_read();
if (!rgb_matrix_is_enabled()) {
/* Turn it ON, signal the cause (EFFECTS) */
@ -427,7 +427,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
}
#endif // RGB_CONFIRMATION_BLINKING_TIME > 0
static void set_rgb_caps_leds() {
static void set_rgb_caps_leds(void) {
rgb_matrix_set_color(67, 0xFF, 0x0, 0x0); // Left side LED 1
rgb_matrix_set_color(68, 0xFF, 0x0, 0x0); // Right side LED 1
rgb_matrix_set_color(70, 0xFF, 0x0, 0x0); // Left side LED 2


+ 3
- 3
keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/encoder.c View File

@ -36,9 +36,9 @@ const encoder_callback encoder_mapping[][2] = {
// clang-format on
void volume_up() { tap_code(KC_VOLU); }
void volume_up(void) { tap_code(KC_VOLU); }
void volume_down() { tap_code(KC_VOLD); }
void volume_down(void) { tap_code(KC_VOLD); }
bool encoder_update_user(uint8_t index, bool clockwise) {
dprintf("current encoder state is: %d\n", state);
@ -65,7 +65,7 @@ void handle_rgb_key(bool pressed) {
static KeyPressState *rgb_state;
void keyboard_post_init_encoder() {
void keyboard_post_init_encoder(void) {
rgb_state = NewKeyPressState(handle_rgb_key);
}


+ 1
- 1
keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/process_record.c View File

@ -116,4 +116,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
process_record_fun(keycode, record);
}
void keyboard_post_init_user() { keyboard_post_init_encoder(); }
void keyboard_post_init_user(void) { keyboard_post_init_encoder(); }

+ 2
- 2
keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.c View File

@ -58,12 +58,12 @@ void set_layer_rgb(uint8_t led_min, uint8_t led_max, int layer) {
}
}
void rgb_matrix_layers_enable() {
void rgb_matrix_layers_enable(void) {
dprintf("ledmaps are enabled\n");
enabled = true;
}
void rgb_matrix_layers_disable() {
void rgb_matrix_layers_disable(void) {
dprintf("ledmaps are disabled\n");
enabled = false;
}


+ 1
- 1
keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/utils.c View File

@ -15,7 +15,7 @@
*/
#include "utils.h"
void store_rgb_state_to_eeprom() {
void store_rgb_state_to_eeprom(void) {
uint8_t mode = rgb_matrix_get_mode();
uint8_t speed = rgb_matrix_get_speed();
HSV color = rgb_matrix_get_hsv();


+ 4
- 4
keyboards/gmmk/pro/rev1/ansi/keymaps/stickandgum/keymap.c View File

@ -247,7 +247,7 @@ bool rgb_matrix_indicators_user(void) {
// 87, led 07 88, led 18
// 91, led 08 92, led 19
static void set_rgb_caps_leds_on() {
static void set_rgb_caps_leds_on(void) {
rgb_matrix_set_color(0, 255, 0, 0); //Escape Key
rgb_matrix_set_color(3, 255, 0, 0); //capslock key
rgb_matrix_set_color(5, 255, 0, 0); //Left CTRL key
@ -269,7 +269,7 @@ static void set_rgb_caps_leds_on() {
rgb_matrix_set_color(92, 255, 255, 255); //Right LED 19
}
static void set_rgb_caps_leds_off() {
static void set_rgb_caps_leds_off(void) {
rgb_matrix_set_color(0, 0, 0, 0); //Escape Key
rgb_matrix_set_color(3, 0, 0, 0); //capslock key
rgb_matrix_set_color(5, 0, 0, 0); //Left CTRL key
@ -291,11 +291,11 @@ static void set_rgb_caps_leds_off() {
rgb_matrix_set_color(92, 0, 0, 0); //Right LED 19
}
static void set_rgb_scroll_leds_on() {
static void set_rgb_scroll_leds_on(void) {
rgb_matrix_set_color(72, 255, 255, 255); // Under Rotary (HOME)
}
static void set_rgb_scroll_leds_off() {
static void set_rgb_scroll_leds_off(void) {
rgb_matrix_set_color(72, 0, 0, 0); // Under Rotary (HOME)
}


+ 4
- 4
keyboards/gmmk/pro/rev1/ansi/keymaps/trwnh/keymap.c View File

@ -62,7 +62,7 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
static void set_rgb_caps_leds_off(void);
static void set_rgb_scroll_leds_off(void);
static void set_rgb_caps_leds_on() {
static void set_rgb_caps_leds_on(void) {
// Set alpha and capslock to red
rgb_matrix_set_color( 3, 255, 0, 0); // Caps
@ -97,7 +97,7 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
rgb_matrix_set_color(43, 255, 0, 0); // M
}
static void set_rgb_caps_leds_off() {
static void set_rgb_caps_leds_off(void) {
// Set alpha and capslock to black
rgb_matrix_set_color( 3, 0, 0, 0); // Caps
@ -132,11 +132,11 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
rgb_matrix_set_color(43, 0, 0, 0); // M
}
static void set_rgb_scroll_leds_on() {
static void set_rgb_scroll_leds_on(void) {
rgb_matrix_set_color(72, 255, 255, 255); // Under Rotary (HOME)
}
static void set_rgb_scroll_leds_off() {
static void set_rgb_scroll_leds_off(void) {
rgb_matrix_set_color(72, 0, 0, 0); // Under Rotary (HOME)
}


+ 2
- 2
keyboards/hadron/ver2/keymaps/side_numpad/keymap.c View File

@ -325,13 +325,13 @@ void matrix_init_user(void) {
#ifdef AUDIO_ENABLE
void startup_user()
void startup_user(void)
{
_delay_ms(20); // gets rid of tick
PLAY_SONG(tone_startup);
}
void shutdown_user()
void shutdown_user(void)
{cc
PLAY_SONG(tone_goodbye);
_delay_ms(150);


+ 2
- 2
keyboards/handwired/atreus50/keymaps/default/keymap.c View File

@ -187,13 +187,13 @@ void matrix_init_user(void) {
#ifdef AUDIO_ENABLE
void startup_user()
void startup_user(void)
{
_delay_ms(20); // gets rid of tick
PLAY_SONG(tone_startup);
}
void shutdown_user()
void shutdown_user(void)
{
PLAY_SONG(tone_goodbye);
_delay_ms(150);


+ 1
- 1
keyboards/handwired/jotanck/jotanck.c View File

@ -1,6 +1,6 @@
#include "jotanck.h"
void keyboard_pre_init_kb() {
void keyboard_pre_init_kb(void) {
setPinOutput(JOTANCK_LED1);
setPinOutput(JOTANCK_LED2);


+ 1
- 1
keyboards/handwired/jotpad16/jotpad16.c View File

@ -1,6 +1,6 @@
#include "jotpad16.h"
void keyboard_pre_init_kb() {
void keyboard_pre_init_kb(void) {
setPinOutput(JOTPAD16_LED1);
setPinOutput(JOTPAD16_LED2);


+ 1
- 1
keyboards/handwired/jscotto/scotto36/keymaps/default/keymap.c View File

@ -216,7 +216,7 @@ static void render_animation(void) {
}
// Draw to OLED
bool oled_task_user() {
bool oled_task_user(void) {
// Render Bongo Cat
render_animation();


+ 1
- 1
keyboards/handwired/jscotto/scottocmd/keymaps/default/keymap.c View File

@ -349,7 +349,7 @@ static void render_animation(void) {
}
// Draw to OLED
bool oled_task_user() {
bool oled_task_user(void) {
// Caps lock text
led_t led_state = host_keyboard_led_state();
oled_set_cursor(0,1);


+ 1
- 1
keyboards/handwired/onekey/keymaps/digitizer/keymap.c View File

@ -32,7 +32,7 @@ void keyboard_post_init_user(void) {
digitizer_in_range_on();
}
void matrix_scan_user() {
void matrix_scan_user(void) {
if (timer_elapsed32(timer) < 200) {
return;
}


+ 1
- 1
keyboards/handwired/onekey/keymaps/joystick/keymap.c View File

@ -8,7 +8,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LAYOUT_ortho_1x1(JS_0)
};
void matrix_scan_user() {
void matrix_scan_user(void) {
int16_t val = (((uint32_t)timer_read() % 5000 - 2500) * 255) / 5000;
joystick_set_axis(1, val);
}


+ 2
- 2
keyboards/handwired/ortho5x13/keymaps/default/keymap.c View File

@ -256,13 +256,13 @@ void matrix_init_user(void) {
#ifdef AUDIO_ENABLE
void startup_user()
void startup_user(void)
{
_delay_ms(20); // gets rid of tick
PLAY_SONG(tone_startup);
}
void shutdown_user()
void shutdown_user(void)
{
PLAY_SONG(tone_goodbye);
_delay_ms(150);


+ 3
- 3
keyboards/handwired/promethium/keymaps/default/keymap.c View File

@ -1272,7 +1272,7 @@ void set_output_user(uint8_t output) {
#endif
}
void matrix_init_user() {
void matrix_init_user(void) {
wait_ms(500); // give time for usb to initialize
set_unicode_input_mode(UNICODE_MODE_LINUX);
@ -1292,7 +1292,7 @@ void matrix_init_user() {
#endif
}
void turn_off_capslock() {
void turn_off_capslock(void) {
if (capslock) {
register_code(KC_CAPS);
unregister_code(KC_CAPS);
@ -1323,7 +1323,7 @@ void turn_off_capslock() {
#endif
#ifdef PS2_MOUSE_ENABLE
void ps2_mouse_init_user() {
void ps2_mouse_init_user(void) {
uint8_t rcv;
// set TrackPoint sensitivity


+ 3
- 3
keyboards/handwired/promethium/keymaps/priyadi/keymap.c View File

@ -1275,7 +1275,7 @@ void set_output_user(uint8_t output) {
#endif
}
void matrix_init_user() {
void matrix_init_user(void) {
wait_ms(500); // give time for usb to initialize
set_unicode_input_mode(UNICODE_MODE_LINUX);
@ -1295,7 +1295,7 @@ void matrix_init_user() {
#endif
}
void turn_off_capslock() {
void turn_off_capslock(void) {
if (capslock) {
register_code(KC_CAPS);
unregister_code(KC_CAPS);
@ -1326,7 +1326,7 @@ void turn_off_capslock() {
#endif
#ifdef PS2_MOUSE_ENABLE
void ps2_mouse_init_user() {
void ps2_mouse_init_user(void) {
uint8_t rcv;
// set TrackPoint sensitivity


+ 2
- 2
keyboards/helix/pico/keymaps/default/keymap.c View File

@ -340,12 +340,12 @@ void matrix_init_user(void) {
#ifdef AUDIO_ENABLE
void startup_user()
void startup_user(void)
{
_delay_ms(50); // gets rid of tick
}
void shutdown_user()
void shutdown_user(void)
{
_delay_ms(150);
stop_all_notes();


+ 2
- 2
keyboards/helix/pico/keymaps/mtei/keymap.c View File

@ -344,12 +344,12 @@ void matrix_init_user(void) {
#ifdef AUDIO_ENABLE
void startup_user()
void startup_user(void)
{
_delay_ms(50); // gets rid of tick
}
void shutdown_user()
void shutdown_user(void)
{
_delay_ms(150);
stop_all_notes();


+ 2
- 2
keyboards/helix/rev2/keymaps/default/keymap.c View File

@ -479,12 +479,12 @@ void matrix_init_user(void) {
#ifdef AUDIO_ENABLE
void startup_user()
void startup_user(void)
{
_delay_ms(20); // gets rid of tick
}
void shutdown_user()
void shutdown_user(void)
{
_delay_ms(150);
stop_all_notes();


+ 2
- 2
keyboards/helix/rev2/keymaps/froggy/keymap.c View File

@ -464,12 +464,12 @@ void matrix_init_user(void) {
#ifdef AUDIO_ENABLE
void startup_user()
void startup_user(void)
{
_delay_ms(20); // gets rid of tick
}
void shutdown_user()
void shutdown_user(void)
{
_delay_ms(150);
stop_all_notes();


+ 2
- 2
keyboards/helix/rev2/keymaps/yshrsmz/keymap.c View File

@ -459,12 +459,12 @@ void matrix_init_user(void) {
#ifdef AUDIO_ENABLE
void startup_user()
void startup_user(void)
{
_delay_ms(20); // gets rid of tick
}
void shutdown_user()
void shutdown_user(void)
{
_delay_ms(150);
stop_all_notes();


+ 1
- 1
keyboards/ibnuda/squiggle/keymaps/rick-complicated/keymap.c View File

@ -183,7 +183,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LEADER_EXTERNS();
void matrix_scan_user() {
void matrix_scan_user(void) {
LEADER_DICTIONARY() {
leading = false;
leader_end();


+ 1
- 1
keyboards/input_club/ergodox_infinity/ergodox_infinity.c View File

@ -94,7 +94,7 @@ __attribute__ ((weak)) void matrix_init_user(void) {}
__attribute__ ((weak)) void matrix_scan_user(void) {}
void keyboard_pre_init_kb() {
void keyboard_pre_init_kb(void) {
#ifdef LED_MATRIX_ENABLE
// Turn on LED controller
setPinOutput(B16);


+ 1
- 1
keyboards/input_club/ergodox_infinity/keymaps/dudeofawesome/keymap.c View File

@ -470,7 +470,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
void matrix_init_user() {
void matrix_init_user(void) {
led_matrix_enable_noeeprom();
led_matrix_set_val_noeeprom(UINT8_MAX);
}


+ 1
- 1
keyboards/input_club/k_type/keymaps/andrew-fahmy/keymap.c View File

@ -52,7 +52,7 @@ void keyboard_post_init_user(void) {
#ifdef RGB_MATRIX_ENABLE
// Turn off SDB
void keyboard_pre_init_user() {
void keyboard_pre_init_user(void) {
palSetPadMode(GPIOB, 16, PAL_MODE_OUTPUT_PUSHPULL);
palSetPad(GPIOB, 16);
}


+ 1
- 1
keyboards/jels/jels88/jels88.c View File

@ -22,7 +22,7 @@
#define CAPS_LED D5
#define SCROLL_LED D4
void keyboard_pre_init_kb() {
void keyboard_pre_init_kb(void) {
setPinOutput(CAPS_LED);
setPinOutput(SCROLL_LED);
keyboard_pre_init_user();


+ 1
- 1
keyboards/kbdfans/niu_mini/keymaps/yttyx/keymap.c View File

@ -90,6 +90,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
void matrix_init_user() {
void matrix_init_user(void) {
steno_set_mode(STENO_MODE_GEMINI);
}

+ 1
- 1
keyboards/keebio/iris/keymaps/edvorakjp/keymap.c View File

@ -50,7 +50,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
// clang-format on
void matrix_init_keymap() {}
void matrix_init_keymap(void) {}
#ifdef RGBLIGHT_EFFECT_STATIC_GRADIENT
layer_state_t layer_state_set_keymap(layer_state_t state) {


+ 1
- 1
keyboards/keebio/levinson/keymaps/steno/keymap.c View File

@ -91,7 +91,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] =
};
void matrix_init_user() {
void matrix_init_user(void) {
steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT
}


+ 1
- 1
keyboards/knops/mini/keymaps/mverteuil/keymap.c View File

@ -222,7 +222,7 @@ void set_layer_led(int layerLedMode) {
}
}
void led_init_animation() {
void led_init_animation(void) {
for (int i = ALL_LAYERS_OFF; i <= ALL_LAYERS_ON; i++) {
led_set_layer(i);
}


+ 2
- 2
keyboards/lazydesigners/dimple/staggered/staggered.c View File

@ -14,10 +14,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "staggered.h"
void dimple_led_on() {
void dimple_led_on(void) {
writePinLow(E6);
}
void dimple_led_off() {
void dimple_led_off(void) {
writePinHigh(E6);
}

+ 2
- 2
keyboards/lazydesigners/the50/the50.c View File

@ -1,9 +1,9 @@
#include "the50.h"
void the50_led_on() {
void the50_led_on(void) {
DDRB |= (1 << 7); PORTB &= ~(1 << 7);
}
void the50_led_off() {
void the50_led_off(void) {
DDRB &= ~(1 << 7); PORTB &= ~(1 << 7);
}

+ 2
- 2
keyboards/lfkeyboards/TWIlib.c View File

@ -24,7 +24,7 @@ int RXBuffLen; // The total number of bytes to read (should be less than RXMAXBU
TWIInfoStruct TWIInfo;
void TWIInit()
void TWIInit(void)
{
TWIInfo.mode = Ready;
TWIInfo.errorCode = 0xFF;
@ -37,7 +37,7 @@ void TWIInit()
TWCR = (1 << TWIE) | (1 << TWEN);
}
uint8_t isTWIReady()
uint8_t isTWIReady(void)
{
if ( (TWIInfo.mode == Ready) | (TWIInfo.mode == RepeatedStartSent) )
{


+ 1
- 1
keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c View File

@ -13,7 +13,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record)
return process_record_user(keycode, record);
}
void reset_keyboard_kb(){
void reset_keyboard_kb(void){
#ifdef WATCHDOG_ENABLE
MCUSR = 0;
wdt_disable();


+ 1
- 1
keyboards/lfkeyboards/lfk78/lfk78.c View File

@ -137,7 +137,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
return process_record_user(keycode, record);
}
void reset_keyboard_kb() {
void reset_keyboard_kb(void) {
#ifdef WATCHDOG_ENABLE
MCUSR = 0;
wdt_disable();


+ 1
- 1
keyboards/lfkeyboards/lfk87/lfk87.c View File

@ -116,7 +116,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record)
return process_record_user(keycode, record);
}
void reset_keyboard_kb(){
void reset_keyboard_kb(void){
#ifdef WATCHDOG_ENABLE
MCUSR = 0;
wdt_disable();


+ 2
- 2
keyboards/lfkeyboards/lighting.c View File

@ -112,7 +112,7 @@ void set_backlight_by_keymap(uint8_t col, uint8_t row){
#endif
}
void force_issi_refresh(){
void force_issi_refresh(void){
#ifdef ISSI_ENABLE
issi_devices[0]->led_dirty = true;
update_issi(0, true);
@ -121,7 +121,7 @@ void force_issi_refresh(){
#endif
}
void led_test(){
void led_test(void){
#ifdef ISSI_ENABLE
#ifdef WATCHDOG_ENABLE
// This test take a long time to run, disable the WTD until its complete


+ 1
- 1
keyboards/lfkeyboards/mini1800/mini1800.c View File

@ -122,7 +122,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record)
return process_record_user(keycode, record);
}
void reset_keyboard_kb(){
void reset_keyboard_kb(void){
#ifdef WATCHDOG_ENABLE
MCUSR = 0;
wdt_disable();


+ 1
- 1
keyboards/lfkeyboards/smk65/revb/revb.c View File

@ -81,7 +81,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record)
return process_record_user(keycode, record);
}
void reset_keyboard_kb(){
void reset_keyboard_kb(void){
#ifdef WATCHDOG_ENABLE
MCUSR = 0;
wdt_disable();


+ 2
- 2
keyboards/macrocat/macrocat.c View File

@ -126,12 +126,12 @@ void encoder_double_click(void) {
void encoder_triple_click(void) {
tap_code(KC_MPRV);
}
void matrix_init_kb() {
void matrix_init_kb(void) {
matrix_init_user();
setPinInputHigh(ENCODER_SWITCH);
}
void matrix_scan_kb() {
void matrix_scan_kb(void) {
matrix_scan_user();
if (readPin(ENCODER_SWITCH)) {
if (encoder_pressed) { // release switch


+ 1
- 1
keyboards/makeymakey/makeymakey.c View File

@ -108,7 +108,7 @@ void cycle_leds(void) {
}
}
void matrix_scan_kb() {
void matrix_scan_kb(void) {
cycle_leds();
matrix_scan_user();
}


+ 1
- 1
keyboards/matrix/noah/keymaps/blockader/keymap.c View File

@ -645,7 +645,7 @@ bool process_record_user(uint16_t key, keyrecord_t* record) {
return handle_common_key(key, record);
}
void keyboard_post_init_user() {
void keyboard_post_init_user(void) {
rgblight_disable_noeeprom();
rgb_matrix_disable();
common_layer_data.back = false;


+ 1
- 1
keyboards/mechwild/bbs/bbs.c View File

@ -16,7 +16,7 @@ bool dip_switch_update_kb(uint8_t index, bool active) {
}
#endif
void eeconfig_init_kb() {
void eeconfig_init_kb(void) {
steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT
eeconfig_init_user();
}

+ 2
- 2
keyboards/nek_type_a/mcp23017.c View File

@ -53,7 +53,7 @@ void expander_init(void) {
}
// set IN and HI
void expander_unselect_all() {
void expander_unselect_all(void) {
expander_write(EXPANDER_REG_IODIRA, 0xff);
expander_write(EXPANDER_REG_IODIRB, 0xff);
expander_write(EXPANDER_REG_OLATA, 0xff);
@ -74,7 +74,7 @@ void expander_select(uint8_t pin) {
wait_us(EXPANDER_PAUSE);
}
void expander_config() {
void expander_config(void) {
// set everything to input
expander_write(EXPANDER_REG_IODIRA, 0xff);
expander_write(EXPANDER_REG_IODIRB, 0xff);


+ 1
- 1
keyboards/neopad/rev1/rev1.c View File

@ -22,7 +22,7 @@ void keyboard_pre_init_kb(void) {
keyboard_pre_init_user();
}
void shutdown_user() {
void shutdown_user(void) {
// Shutdown LEDs
writePinLow(LED_00);
writePinLow(LED_01);


+ 1
- 1
keyboards/opendeck/32/rev1/rev1.c View File

@ -102,7 +102,7 @@ void keyboard_pre_init_kb(void) {
setPinInput(RGB_IRQ_N_PIN);
}
void keyboard_post_init_user() {
void keyboard_post_init_user(void) {
// RGB enabled by default, no way to turn off. No need to expend EEPROM write cycles here.
rgb_matrix_enable_noeeprom();
}


+ 2
- 2
keyboards/planck/keymaps/circuit/keymap.c View File

@ -219,13 +219,13 @@ void matrix_init_user(void) {
#ifdef AUDIO_ENABLE
void startup_user()
void startup_user(void)
{
_delay_ms(20); // gets rid of tick
PLAY_SONG(tone_startup);
}
void shutdown_user()
void shutdown_user(void)
{
PLAY_SONG(tone_goodbye);
_delay_ms(150);


+ 2
- 2
keyboards/planck/keymaps/dbroqua/keymap.c View File

@ -192,13 +192,13 @@ void matrix_init_user(void) {
#ifdef AUDIO_ENABLE
void startup_user()
void startup_user(void)
{
_delay_ms(20); // gets rid of tick
PLAY_SONG(tone_startup);
}
void shutdown_user()
void shutdown_user(void)
{
PLAY_SONG(tone_goodbye);
_delay_ms(150);


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

Loading…
Cancel
Save