diff options
| author | Ryan <fauxpark@gmail.com> | 2023-01-21 03:21:17 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-20 16:21:17 +0000 |
| commit | cf935d97ae479e7a1e1f2f2f248b93e52e4cc69e (patch) | |
| tree | cb7dc41b774171ce7036f963941ce801e868d8cd /keyboards | |
| parent | 0f77ae6a20652c11bc252548bd28fd64f5fb6b97 (diff) | |
Fix functions with empty params (#19647)
* Fix functions with empty params
* Found a bunch more
Diffstat (limited to 'keyboards')
138 files changed, 222 insertions, 222 deletions
diff --git a/keyboards/40percentclub/gherkin/keymaps/mjt/keymap.c b/keyboards/40percentclub/gherkin/keymaps/mjt/keymap.c index 312fbfaf57..40c11739fb 100644 --- a/keyboards/40percentclub/gherkin/keymaps/mjt/keymap.c +++ b/keyboards/40percentclub/gherkin/keymaps/mjt/keymap.c | |||
| @@ -174,13 +174,13 @@ void matrix_init_user(void) { | |||
| 174 | 174 | ||
| 175 | #ifdef AUDIO_ENABLE | 175 | #ifdef AUDIO_ENABLE |
| 176 | 176 | ||
| 177 | void startup_user() | 177 | void startup_user(void) |
| 178 | { | 178 | { |
| 179 | _delay_ms(20); // gets rid of tick | 179 | _delay_ms(20); // gets rid of tick |
| 180 | PLAY_SONG(tone_startup); | 180 | PLAY_SONG(tone_startup); |
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | void shutdown_user() | 183 | void shutdown_user(void) |
| 184 | { | 184 | { |
| 185 | PLAY_SONG(tone_goodbye); | 185 | PLAY_SONG(tone_goodbye); |
| 186 | _delay_ms(150); | 186 | _delay_ms(150); |
diff --git a/keyboards/40percentclub/gherkin/keymaps/steno/keymap.c b/keyboards/40percentclub/gherkin/keymaps/steno/keymap.c index c7ee63d126..5f78ba1cde 100644 --- a/keyboards/40percentclub/gherkin/keymaps/steno/keymap.c +++ b/keyboards/40percentclub/gherkin/keymaps/steno/keymap.c | |||
| @@ -8,6 +8,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 8 | STN_NUM, STN_NUM, STN_A, STN_O, STN_NUM, STN_E, STN_U, STN_NUM, STN_NUM, STN_NUM), | 8 | STN_NUM, STN_NUM, STN_A, STN_O, STN_NUM, STN_E, STN_U, STN_NUM, STN_NUM, STN_NUM), |
| 9 | }; | 9 | }; |
| 10 | 10 | ||
| 11 | void matrix_init_user() { | 11 | void matrix_init_user(void) { |
| 12 | steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT | 12 | steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT |
| 13 | } \ No newline at end of file | 13 | } \ No newline at end of file |
diff --git a/keyboards/40percentclub/mf68/keymaps/delivrance/keymap.c b/keyboards/40percentclub/mf68/keymaps/delivrance/keymap.c index ed98d947e5..8d69a5a8af 100644 --- a/keyboards/40percentclub/mf68/keymaps/delivrance/keymap.c +++ b/keyboards/40percentclub/mf68/keymaps/delivrance/keymap.c | |||
| @@ -197,7 +197,7 @@ void led_set_user(uint8_t usb_led) { | |||
| 197 | static uint32_t timer; | 197 | static uint32_t timer; |
| 198 | static bool is_idle; | 198 | static bool is_idle; |
| 199 | 199 | ||
| 200 | void matrix_scan_user() { | 200 | void matrix_scan_user(void) { |
| 201 | // Check the timer only if the keyboard is not idle | 201 | // Check the timer only if the keyboard is not idle |
| 202 | if (!is_idle) { | 202 | if (!is_idle) { |
| 203 | if (timer_elapsed32(timer) >= (uint32_t) BACKLIGHT_IDLE_TIMEOUT * 1000) { | 203 | if (timer_elapsed32(timer) >= (uint32_t) BACKLIGHT_IDLE_TIMEOUT * 1000) { |
diff --git a/keyboards/40percentclub/ut47/ut47.c b/keyboards/40percentclub/ut47/ut47.c index 864edaeb57..9d46a4679d 100644 --- a/keyboards/40percentclub/ut47/ut47.c +++ b/keyboards/40percentclub/ut47/ut47.c | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | #ifdef LED_ENABLE | 17 | #ifdef LED_ENABLE |
| 18 | #include "uart.h" | 18 | #include "uart.h" |
| 19 | 19 | ||
| 20 | void matrix_init_kb() { | 20 | void matrix_init_kb(void) { |
| 21 | uart_init(9600); | 21 | uart_init(9600); |
| 22 | } | 22 | } |
| 23 | #endif | 23 | #endif |
diff --git a/keyboards/annepro2/annepro2.c b/keyboards/annepro2/annepro2.c index f4ced65436..e1292b3517 100644 --- a/keyboards/annepro2/annepro2.c +++ b/keyboards/annepro2/annepro2.c | |||
| @@ -111,7 +111,7 @@ void keyboard_post_init_kb(void) { | |||
| 111 | keyboard_post_init_user(); | 111 | keyboard_post_init_user(); |
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | void matrix_scan_kb() { | 114 | void matrix_scan_kb(void) { |
| 115 | // if there's stuff on the ble serial buffer | 115 | // if there's stuff on the ble serial buffer |
| 116 | // read it into the capslock struct | 116 | // read it into the capslock struct |
| 117 | while (!sdGetWouldBlock(&SD1)) { | 117 | while (!sdGetWouldBlock(&SD1)) { |
diff --git a/keyboards/annepro2/ap2_led.c b/keyboards/annepro2/ap2_led.c index 339df103bf..c1d7c8166e 100644 --- a/keyboards/annepro2/ap2_led.c +++ b/keyboards/annepro2/ap2_led.c | |||
| @@ -60,15 +60,15 @@ void ap2_led_enable(void) { proto_tx(CMD_LED_ON, NULL, 0, 3); } | |||
| 60 | 60 | ||
| 61 | void ap2_led_set_profile(uint8_t prof) { proto_tx(CMD_LED_SET_PROFILE, &prof, sizeof(prof), 3); } | 61 | void ap2_led_set_profile(uint8_t prof) { proto_tx(CMD_LED_SET_PROFILE, &prof, sizeof(prof), 3); } |
| 62 | 62 | ||
| 63 | void ap2_led_get_status() { proto_tx(CMD_LED_GET_STATUS, NULL, 0, 3); } | 63 | void ap2_led_get_status(void) { proto_tx(CMD_LED_GET_STATUS, NULL, 0, 3); } |
| 64 | 64 | ||
| 65 | void ap2_led_next_profile() { proto_tx(CMD_LED_NEXT_PROFILE, NULL, 0, 3); } | 65 | void ap2_led_next_profile(void) { proto_tx(CMD_LED_NEXT_PROFILE, NULL, 0, 3); } |
| 66 | 66 | ||
| 67 | void ap2_led_next_intensity() { proto_tx(CMD_LED_NEXT_INTENSITY, NULL, 0, 3); } | 67 | void ap2_led_next_intensity(void) { proto_tx(CMD_LED_NEXT_INTENSITY, NULL, 0, 3); } |
| 68 | 68 | ||
| 69 | void ap2_led_next_animation_speed() { proto_tx(CMD_LED_NEXT_ANIMATION_SPEED, NULL, 0, 3); } | 69 | void ap2_led_next_animation_speed(void) { proto_tx(CMD_LED_NEXT_ANIMATION_SPEED, NULL, 0, 3); } |
| 70 | 70 | ||
| 71 | void ap2_led_prev_profile() { proto_tx(CMD_LED_PREV_PROFILE, NULL, 0, 3); } | 71 | void ap2_led_prev_profile(void) { proto_tx(CMD_LED_PREV_PROFILE, NULL, 0, 3); } |
| 72 | 72 | ||
| 73 | void ap2_led_mask_set_key(uint8_t row, uint8_t col, ap2_led_t color) { | 73 | void ap2_led_mask_set_key(uint8_t row, uint8_t col, ap2_led_t color) { |
| 74 | uint8_t payload[] = {row, col, color.p.blue, color.p.green, color.p.red, color.p.alpha}; | 74 | 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) { | |||
| 127 | ap2_led_mask_set_mono(color); | 127 | ap2_led_mask_set_mono(color); |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | void ap2_led_reset_foreground_color() { | 130 | void ap2_led_reset_foreground_color(void) { |
| 131 | ap2_led_t color = { | 131 | ap2_led_t color = { |
| 132 | .p.red = 0, | 132 | .p.red = 0, |
| 133 | .p.green = 0, | 133 | .p.green = 0, |
diff --git a/keyboards/bemeier/bmek/bmek.c b/keyboards/bemeier/bmek/bmek.c index 47e8742695..31209fdca2 100755 --- a/keyboards/bemeier/bmek/bmek.c +++ b/keyboards/bemeier/bmek/bmek.c | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | #include "bmek.h" | 16 | #include "bmek.h" |
| 17 | 17 | ||
| 18 | __attribute__((weak)) | 18 | __attribute__((weak)) |
| 19 | void shutdown_user() { | 19 | void shutdown_user(void) { |
| 20 | #ifdef RGBLIGHT_ENABLE | 20 | #ifdef RGBLIGHT_ENABLE |
| 21 | rgblight_setrgb(255, 0, 0); | 21 | rgblight_setrgb(255, 0, 0); |
| 22 | #endif | 22 | #endif |
diff --git a/keyboards/bpiphany/frosty_flake/20130602/20130602.c b/keyboards/bpiphany/frosty_flake/20130602/20130602.c index 2c875d1a7f..2c8e7517b9 100644 --- a/keyboards/bpiphany/frosty_flake/20130602/20130602.c +++ b/keyboards/bpiphany/frosty_flake/20130602/20130602.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #include "frosty_flake.h" | 1 | #include "frosty_flake.h" |
| 2 | 2 | ||
| 3 | void keyboard_pre_init_kb() { | 3 | void keyboard_pre_init_kb(void) { |
| 4 | setPinOutput(B7); // caps lock | 4 | setPinOutput(B7); // caps lock |
| 5 | writePinHigh(B7); | 5 | writePinHigh(B7); |
| 6 | setPinOutput(C5); // num lock | 6 | setPinOutput(C5); // num lock |
diff --git a/keyboards/bpiphany/frosty_flake/20140521/20140521.c b/keyboards/bpiphany/frosty_flake/20140521/20140521.c index be4e1a3124..65c40ab86e 100644 --- a/keyboards/bpiphany/frosty_flake/20140521/20140521.c +++ b/keyboards/bpiphany/frosty_flake/20140521/20140521.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #include "frosty_flake.h" | 1 | #include "frosty_flake.h" |
| 2 | 2 | ||
| 3 | void keyboard_pre_init_kb() { | 3 | void keyboard_pre_init_kb(void) { |
| 4 | setPinOutput(B7); // num lock | 4 | setPinOutput(B7); // num lock |
| 5 | writePinHigh(B7); | 5 | writePinHigh(B7); |
| 6 | setPinOutput(C5); // caps lock | 6 | setPinOutput(C5); // caps lock |
diff --git a/keyboards/cannonkeys/satisfaction75/satisfaction75.c b/keyboards/cannonkeys/satisfaction75/satisfaction75.c index 13b44b85db..ce870c49af 100644 --- a/keyboards/cannonkeys/satisfaction75/satisfaction75.c +++ b/keyboards/cannonkeys/satisfaction75/satisfaction75.c | |||
| @@ -361,11 +361,11 @@ void custom_config_reset(void){ | |||
| 361 | eeprom_update_byte((uint8_t*)EEPROM_ENABLED_ENCODER_MODES, 0x1F); | 361 | eeprom_update_byte((uint8_t*)EEPROM_ENABLED_ENCODER_MODES, 0x1F); |
| 362 | } | 362 | } |
| 363 | 363 | ||
| 364 | void backlight_config_save(){ | 364 | void backlight_config_save(void){ |
| 365 | eeprom_update_byte((uint8_t*)EEPROM_CUSTOM_BACKLIGHT, kb_backlight_config.raw); | 365 | eeprom_update_byte((uint8_t*)EEPROM_CUSTOM_BACKLIGHT, kb_backlight_config.raw); |
| 366 | } | 366 | } |
| 367 | 367 | ||
| 368 | void custom_config_load(){ | 368 | void custom_config_load(void){ |
| 369 | kb_backlight_config.raw = eeprom_read_byte((uint8_t*)EEPROM_CUSTOM_BACKLIGHT); | 369 | kb_backlight_config.raw = eeprom_read_byte((uint8_t*)EEPROM_CUSTOM_BACKLIGHT); |
| 370 | #ifdef DYNAMIC_KEYMAP_ENABLE | 370 | #ifdef DYNAMIC_KEYMAP_ENABLE |
| 371 | oled_mode = eeprom_read_byte((uint8_t*)EEPROM_DEFAULT_OLED); | 371 | oled_mode = eeprom_read_byte((uint8_t*)EEPROM_DEFAULT_OLED); |
diff --git a/keyboards/cannonkeys/satisfaction75/satisfaction_encoder.c b/keyboards/cannonkeys/satisfaction75/satisfaction_encoder.c index c40815a8d8..c8bb999df4 100644 --- a/keyboards/cannonkeys/satisfaction75/satisfaction_encoder.c +++ b/keyboards/cannonkeys/satisfaction75/satisfaction_encoder.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #include "satisfaction75.h" | 1 | #include "satisfaction75.h" |
| 2 | #include "eeprom.h" | 2 | #include "eeprom.h" |
| 3 | 3 | ||
| 4 | void pre_encoder_mode_change(){ | 4 | void pre_encoder_mode_change(void){ |
| 5 | if(encoder_mode == ENC_MODE_CLOCK_SET){ | 5 | if(encoder_mode == ENC_MODE_CLOCK_SET){ |
| 6 | RTCDateTime timespec; | 6 | RTCDateTime timespec; |
| 7 | timespec.year = year_config; | 7 | timespec.year = year_config; |
| @@ -16,7 +16,7 @@ void pre_encoder_mode_change(){ | |||
| 16 | } | 16 | } |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | void post_encoder_mode_change(){ | 19 | void post_encoder_mode_change(void){ |
| 20 | if(encoder_mode == ENC_MODE_CLOCK_SET){ | 20 | if(encoder_mode == ENC_MODE_CLOCK_SET){ |
| 21 | hour_config = (last_minute / 60); | 21 | hour_config = (last_minute / 60); |
| 22 | minute_config = last_minute % 60; | 22 | minute_config = last_minute % 60; |
| @@ -86,7 +86,7 @@ void update_time_config(int8_t increment){ | |||
| 86 | } | 86 | } |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | uint16_t handle_encoder_clockwise(){ | 89 | uint16_t handle_encoder_clockwise(void){ |
| 90 | uint16_t mapped_code = 0; | 90 | uint16_t mapped_code = 0; |
| 91 | switch(encoder_mode){ | 91 | switch(encoder_mode){ |
| 92 | default: | 92 | default: |
| @@ -130,7 +130,7 @@ uint16_t handle_encoder_clockwise(){ | |||
| 130 | return mapped_code; | 130 | return mapped_code; |
| 131 | } | 131 | } |
| 132 | 132 | ||
| 133 | uint16_t handle_encoder_ccw(){ | 133 | uint16_t handle_encoder_ccw(void){ |
| 134 | uint16_t mapped_code = 0; | 134 | uint16_t mapped_code = 0; |
| 135 | switch(encoder_mode){ | 135 | switch(encoder_mode){ |
| 136 | default: | 136 | default: |
| @@ -175,7 +175,7 @@ uint16_t handle_encoder_ccw(){ | |||
| 175 | return mapped_code; | 175 | return mapped_code; |
| 176 | } | 176 | } |
| 177 | 177 | ||
| 178 | uint16_t handle_encoder_press(){ | 178 | uint16_t handle_encoder_press(void){ |
| 179 | uint16_t mapped_code = 0; | 179 | uint16_t mapped_code = 0; |
| 180 | switch(encoder_mode){ | 180 | switch(encoder_mode){ |
| 181 | case ENC_MODE_VOLUME: | 181 | case ENC_MODE_VOLUME: |
diff --git a/keyboards/cannonkeys/satisfaction75/satisfaction_oled.c b/keyboards/cannonkeys/satisfaction75/satisfaction_oled.c index 1e8465387c..0fd69ca59b 100644 --- a/keyboards/cannonkeys/satisfaction75/satisfaction_oled.c +++ b/keyboards/cannonkeys/satisfaction75/satisfaction_oled.c | |||
| @@ -168,7 +168,7 @@ static char* get_date(void) { | |||
| 168 | return date_str; | 168 | return date_str; |
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | void draw_default() { | 171 | void draw_default(void) { |
| 172 | oled_write_P(PSTR("LAYER "), false); | 172 | oled_write_P(PSTR("LAYER "), false); |
| 173 | oled_write_char(get_highest_layer(layer_state) + 0x30, true); | 173 | oled_write_char(get_highest_layer(layer_state) + 0x30, true); |
| 174 | 174 | ||
| @@ -220,7 +220,7 @@ void draw_default() { | |||
| 220 | draw_line_v(71, 0, 8); | 220 | draw_line_v(71, 0, 8); |
| 221 | } | 221 | } |
| 222 | 222 | ||
| 223 | void draw_clock() { | 223 | void draw_clock(void) { |
| 224 | oled_set_cursor(0, 0); | 224 | oled_set_cursor(0, 0); |
| 225 | oled_write(get_date(), false); | 225 | oled_write(get_date(), false); |
| 226 | oled_set_cursor(0, 2); | 226 | oled_set_cursor(0, 2); |
diff --git a/keyboards/capsunlocked/cu75/cu75.c b/keyboards/capsunlocked/cu75/cu75.c index 690d72055a..fff0c10ef6 100644 --- a/keyboards/capsunlocked/cu75/cu75.c +++ b/keyboards/capsunlocked/cu75/cu75.c | |||
| @@ -98,7 +98,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) | |||
| 98 | return process_record_user(keycode, record); | 98 | return process_record_user(keycode, record); |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | void reset_keyboard_kb(){ | 101 | void reset_keyboard_kb(void){ |
| 102 | #ifdef WATCHDOG_ENABLE | 102 | #ifdef WATCHDOG_ENABLE |
| 103 | MCUSR = 0; | 103 | MCUSR = 0; |
| 104 | wdt_disable(); | 104 | wdt_disable(); |
diff --git a/keyboards/converter/adb_usb/adb.c b/keyboards/converter/adb_usb/adb.c index 28f14c9fe8..c05bbb53ca 100644 --- a/keyboards/converter/adb_usb/adb.c +++ b/keyboards/converter/adb_usb/adb.c | |||
| @@ -238,15 +238,15 @@ void adb_host_kbd_led(uint8_t led) { | |||
| 238 | } | 238 | } |
| 239 | 239 | ||
| 240 | #ifdef ADB_PSW_BIT | 240 | #ifdef ADB_PSW_BIT |
| 241 | static inline void psw_lo() { | 241 | static inline void psw_lo(void) { |
| 242 | ADB_DDR |= (1 << ADB_PSW_BIT); | 242 | ADB_DDR |= (1 << ADB_PSW_BIT); |
| 243 | ADB_PORT &= ~(1 << ADB_PSW_BIT); | 243 | ADB_PORT &= ~(1 << ADB_PSW_BIT); |
| 244 | } | 244 | } |
| 245 | static inline void psw_hi() { | 245 | static inline void psw_hi(void) { |
| 246 | ADB_PORT |= (1 << ADB_PSW_BIT); | 246 | ADB_PORT |= (1 << ADB_PSW_BIT); |
| 247 | ADB_DDR &= ~(1 << ADB_PSW_BIT); | 247 | ADB_DDR &= ~(1 << ADB_PSW_BIT); |
| 248 | } | 248 | } |
| 249 | static inline bool psw_in() { | 249 | static inline bool psw_in(void) { |
| 250 | ADB_PORT |= (1 << ADB_PSW_BIT); | 250 | ADB_PORT |= (1 << ADB_PSW_BIT); |
| 251 | ADB_DDR &= ~(1 << ADB_PSW_BIT); | 251 | ADB_DDR &= ~(1 << ADB_PSW_BIT); |
| 252 | return ADB_PIN & (1 << ADB_PSW_BIT); | 252 | return ADB_PIN & (1 << ADB_PSW_BIT); |
diff --git a/keyboards/converter/hp_46010a/matrix.c b/keyboards/converter/hp_46010a/matrix.c index 03fcb2424f..eafe320a3d 100644 --- a/keyboards/converter/hp_46010a/matrix.c +++ b/keyboards/converter/hp_46010a/matrix.c | |||
| @@ -145,7 +145,7 @@ void Matrix_ThrowByte(void) { | |||
| 145 | return ; | 145 | return ; |
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | void matrix_init () { | 148 | void matrix_init (void) { |
| 149 | // debug_matrix = 1; | 149 | // debug_matrix = 1; |
| 150 | // PB0 (SS) and PB1 (SCLK) set to outputs | 150 | // PB0 (SS) and PB1 (SCLK) set to outputs |
| 151 | DDRB |= RESET | SCLK ; | 151 | DDRB |= RESET | SCLK ; |
diff --git a/keyboards/converter/ibm_terminal/keymaps/priyadi/keymap.c b/keyboards/converter/ibm_terminal/keymaps/priyadi/keymap.c index f16b349664..0e11fa6779 100644 --- a/keyboards/converter/ibm_terminal/keymaps/priyadi/keymap.c +++ b/keyboards/converter/ibm_terminal/keymaps/priyadi/keymap.c | |||
| @@ -297,6 +297,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 297 | return true; | 297 | return true; |
| 298 | } | 298 | } |
| 299 | 299 | ||
| 300 | void matrix_init_user() { | 300 | void matrix_init_user(void) { |
| 301 | set_unicode_input_mode(UNICODE_MODE_LINUX); | 301 | set_unicode_input_mode(UNICODE_MODE_LINUX); |
| 302 | } | 302 | } |
diff --git a/keyboards/converter/m0110_usb/m0110.c b/keyboards/converter/m0110_usb/m0110.c index 64f2fa50ab..f3097fb465 100644 --- a/keyboards/converter/m0110_usb/m0110.c +++ b/keyboards/converter/m0110_usb/m0110.c | |||
| @@ -318,31 +318,31 @@ static inline uint8_t instant(void) { | |||
| 318 | return data; | 318 | return data; |
| 319 | } | 319 | } |
| 320 | 320 | ||
| 321 | static inline void clock_lo() { | 321 | static inline void clock_lo(void) { |
| 322 | M0110_CLOCK_PORT &= ~(1 << M0110_CLOCK_BIT); | 322 | M0110_CLOCK_PORT &= ~(1 << M0110_CLOCK_BIT); |
| 323 | M0110_CLOCK_DDR |= (1 << M0110_CLOCK_BIT); | 323 | M0110_CLOCK_DDR |= (1 << M0110_CLOCK_BIT); |
| 324 | } | 324 | } |
| 325 | static inline void clock_hi() { | 325 | static inline void clock_hi(void) { |
| 326 | /* input with pull up */ | 326 | /* input with pull up */ |
| 327 | M0110_CLOCK_DDR &= ~(1 << M0110_CLOCK_BIT); | 327 | M0110_CLOCK_DDR &= ~(1 << M0110_CLOCK_BIT); |
| 328 | M0110_CLOCK_PORT |= (1 << M0110_CLOCK_BIT); | 328 | M0110_CLOCK_PORT |= (1 << M0110_CLOCK_BIT); |
| 329 | } | 329 | } |
| 330 | static inline bool clock_in() { | 330 | static inline bool clock_in(void) { |
| 331 | M0110_CLOCK_DDR &= ~(1 << M0110_CLOCK_BIT); | 331 | M0110_CLOCK_DDR &= ~(1 << M0110_CLOCK_BIT); |
| 332 | M0110_CLOCK_PORT |= (1 << M0110_CLOCK_BIT); | 332 | M0110_CLOCK_PORT |= (1 << M0110_CLOCK_BIT); |
| 333 | _delay_us(1); | 333 | _delay_us(1); |
| 334 | return M0110_CLOCK_PIN & (1 << M0110_CLOCK_BIT); | 334 | return M0110_CLOCK_PIN & (1 << M0110_CLOCK_BIT); |
| 335 | } | 335 | } |
| 336 | static inline void data_lo() { | 336 | static inline void data_lo(void) { |
| 337 | M0110_DATA_PORT &= ~(1 << M0110_DATA_BIT); | 337 | M0110_DATA_PORT &= ~(1 << M0110_DATA_BIT); |
| 338 | M0110_DATA_DDR |= (1 << M0110_DATA_BIT); | 338 | M0110_DATA_DDR |= (1 << M0110_DATA_BIT); |
| 339 | } | 339 | } |
| 340 | static inline void data_hi() { | 340 | static inline void data_hi(void) { |
| 341 | /* input with pull up */ | 341 | /* input with pull up */ |
| 342 | M0110_DATA_DDR &= ~(1 << M0110_DATA_BIT); | 342 | M0110_DATA_DDR &= ~(1 << M0110_DATA_BIT); |
| 343 | M0110_DATA_PORT |= (1 << M0110_DATA_BIT); | 343 | M0110_DATA_PORT |= (1 << M0110_DATA_BIT); |
| 344 | } | 344 | } |
| 345 | static inline bool data_in() { | 345 | static inline bool data_in(void) { |
| 346 | M0110_DATA_DDR &= ~(1 << M0110_DATA_BIT); | 346 | M0110_DATA_DDR &= ~(1 << M0110_DATA_BIT); |
| 347 | M0110_DATA_PORT |= (1 << M0110_DATA_BIT); | 347 | M0110_DATA_PORT |= (1 << M0110_DATA_BIT); |
| 348 | _delay_us(1); | 348 | _delay_us(1); |
diff --git a/keyboards/crkbd/keymaps/jpe230/oled/avr/master/oled_master_handler.c b/keyboards/crkbd/keymaps/jpe230/oled/avr/master/oled_master_handler.c index 9a75e9fa9a..f0f6f3f62f 100644 --- a/keyboards/crkbd/keymaps/jpe230/oled/avr/master/oled_master_handler.c +++ b/keyboards/crkbd/keymaps/jpe230/oled/avr/master/oled_master_handler.c | |||
| @@ -63,7 +63,7 @@ void oled_render_keylog(void) { | |||
| 63 | oled_write((const char *)&logged_char, false); | 63 | oled_write((const char *)&logged_char, false); |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | void render_master_oled() { | 66 | void render_master_oled(void) { |
| 67 | if (timer_elapsed32(oled_timer) > CUSTOM_OLED_TIMEOUT) { | 67 | if (timer_elapsed32(oled_timer) > CUSTOM_OLED_TIMEOUT) { |
| 68 | oled_off(); | 68 | oled_off(); |
| 69 | return; | 69 | return; |
diff --git a/keyboards/crkbd/keymaps/jpe230/oled/avr/slave/oled_slave_handler.c b/keyboards/crkbd/keymaps/jpe230/oled/avr/slave/oled_slave_handler.c index 159413d083..c47fb2a07b 100644 --- a/keyboards/crkbd/keymaps/jpe230/oled/avr/slave/oled_slave_handler.c +++ b/keyboards/crkbd/keymaps/jpe230/oled/avr/slave/oled_slave_handler.c | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #include "jpe230.h" | 4 | #include "jpe230.h" |
| 5 | 5 | ||
| 6 | void render_slave_oled() { | 6 | void render_slave_oled(void) { |
| 7 | static const char PROGMEM crkbd_logo[] = { | 7 | static const char PROGMEM crkbd_logo[] = { |
| 8 | 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94, | 8 | 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94, |
| 9 | 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, | 9 | 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, |
diff --git a/keyboards/crkbd/keymaps/jpe230/oled/oled_handler.c b/keyboards/crkbd/keymaps/jpe230/oled/oled_handler.c index 67861e5b27..9e130dae38 100644 --- a/keyboards/crkbd/keymaps/jpe230/oled/oled_handler.c +++ b/keyboards/crkbd/keymaps/jpe230/oled/oled_handler.c | |||
| @@ -12,7 +12,7 @@ __attribute__ ((weak)) void handle_oled_keypress(uint16_t keycode, keyrecord_t * | |||
| 12 | __attribute__ ((weak)) oled_rotation_t rotate_master(oled_rotation_t rotation) {return rotation;} | 12 | __attribute__ ((weak)) oled_rotation_t rotate_master(oled_rotation_t rotation) {return rotation;} |
| 13 | __attribute__ ((weak)) oled_rotation_t rotate_slave(oled_rotation_t rotation) {return rotation;} | 13 | __attribute__ ((weak)) oled_rotation_t rotate_slave(oled_rotation_t rotation) {return rotation;} |
| 14 | 14 | ||
| 15 | void oled_timer_reset() { oled_timer = timer_read32(); } | 15 | void oled_timer_reset(void) { oled_timer = timer_read32(); } |
| 16 | 16 | ||
| 17 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 17 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { |
| 18 | 18 | ||
diff --git a/keyboards/crkbd/keymaps/jpe230/oled/rp2040/master/oled_master_handler.c b/keyboards/crkbd/keymaps/jpe230/oled/rp2040/master/oled_master_handler.c index a2230e5ee1..ffd3edb792 100644 --- a/keyboards/crkbd/keymaps/jpe230/oled/rp2040/master/oled_master_handler.c +++ b/keyboards/crkbd/keymaps/jpe230/oled/rp2040/master/oled_master_handler.c | |||
| @@ -40,7 +40,7 @@ void oled_render_layer_state(void) { | |||
| 40 | 40 | ||
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | void render_master_oled() { | 43 | void render_master_oled(void) { |
| 44 | if (timer_elapsed32(oled_timer) > CUSTOM_OLED_TIMEOUT) { | 44 | if (timer_elapsed32(oled_timer) > CUSTOM_OLED_TIMEOUT) { |
| 45 | oled_off(); | 45 | oled_off(); |
| 46 | return; | 46 | return; |
diff --git a/keyboards/crkbd/keymaps/jpe230/oled/rp2040/slave/oled_slave_handler.c b/keyboards/crkbd/keymaps/jpe230/oled/rp2040/slave/oled_slave_handler.c index ef38fd8c44..31166b3b43 100644 --- a/keyboards/crkbd/keymaps/jpe230/oled/rp2040/slave/oled_slave_handler.c +++ b/keyboards/crkbd/keymaps/jpe230/oled/rp2040/slave/oled_slave_handler.c | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | #include "jpe230.h" | 4 | #include "jpe230.h" |
| 5 | #include "ocean_dream.h" | 5 | #include "ocean_dream.h" |
| 6 | 6 | ||
| 7 | void render_slave_oled() { | 7 | void render_slave_oled(void) { |
| 8 | render_stars(); | 8 | render_stars(); |
| 9 | } | 9 | } |
| 10 | 10 | ||
diff --git a/keyboards/dmqdesign/spin/keymaps/spidey3_pad/keymap.c b/keyboards/dmqdesign/spin/keymaps/spidey3_pad/keymap.c index 00b144a2f4..2ee5fa34c0 100644 --- a/keyboards/dmqdesign/spin/keymaps/spidey3_pad/keymap.c +++ b/keyboards/dmqdesign/spin/keymaps/spidey3_pad/keymap.c | |||
| @@ -147,7 +147,7 @@ void keyboard_post_init_user(void) { | |||
| 147 | do_rgb_layers(layer_state, LAYER_BASE, LAYER_BASE_END); | 147 | do_rgb_layers(layer_state, LAYER_BASE, LAYER_BASE_END); |
| 148 | } | 148 | } |
| 149 | 149 | ||
| 150 | void shutdown_user() { | 150 | void shutdown_user(void) { |
| 151 | clear_rgb_layers(); | 151 | clear_rgb_layers(); |
| 152 | rgblight_enable(); | 152 | rgblight_enable(); |
| 153 | rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT); | 153 | rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT); |
diff --git a/keyboards/dp60/matrix.c b/keyboards/dp60/matrix.c index a9974757dd..dbcc68056d 100644 --- a/keyboards/dp60/matrix.c +++ b/keyboards/dp60/matrix.c | |||
| @@ -123,7 +123,7 @@ static void init_rows(void) | |||
| 123 | setPinInputHigh(D4); | 123 | setPinInputHigh(D4); |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | static uint8_t read_rows() | 126 | static uint8_t read_rows(void) |
| 127 | { | 127 | { |
| 128 | return ((readPin(E6) ? 0 : (1 << 0)) | | 128 | return ((readPin(E6) ? 0 : (1 << 0)) | |
| 129 | (readPin(F6) ? 0 : (1 << 1)) | | 129 | (readPin(F6) ? 0 : (1 << 1)) | |
diff --git a/keyboards/duck/jetfire/jetfire.c b/keyboards/duck/jetfire/jetfire.c index 7bebd7ad21..d42cb22ff3 100644 --- a/keyboards/duck/jetfire/jetfire.c +++ b/keyboards/duck/jetfire/jetfire.c | |||
| @@ -76,7 +76,7 @@ void backlight_set(uint8_t level) | |||
| 76 | backlight_toggle_rgb(level & BACKLIGHT_RGB); | 76 | backlight_toggle_rgb(level & BACKLIGHT_RGB); |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | void backlight_update_state() | 79 | void backlight_update_state(void) |
| 80 | { | 80 | { |
| 81 | cli(); | 81 | cli(); |
| 82 | send_color(backlight_state_led & (1<<STATE_LED_SCROLL_LOCK) ? 255 : 0, | 82 | send_color(backlight_state_led & (1<<STATE_LED_SCROLL_LOCK) ? 255 : 0, |
diff --git a/keyboards/duck/lightsaver/matrix.c b/keyboards/duck/lightsaver/matrix.c index 066452724f..c65b6aa6c4 100644 --- a/keyboards/duck/lightsaver/matrix.c +++ b/keyboards/duck/lightsaver/matrix.c | |||
| @@ -138,7 +138,7 @@ static void init_rows(void) { | |||
| 138 | PORTE |= 0b00000100; | 138 | PORTE |= 0b00000100; |
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | static uint8_t read_rows() { | 141 | static uint8_t read_rows(void) { |
| 142 | return (PINB&(1<<7) ? (1<<0) : 0) | | 142 | return (PINB&(1<<7) ? (1<<0) : 0) | |
| 143 | (PIND&(1<<0) ? (1<<1) : 0) | | 143 | (PIND&(1<<0) ? (1<<1) : 0) | |
| 144 | (PIND&(1<<1) ? (1<<2) : 0) | | 144 | (PIND&(1<<1) ? (1<<2) : 0) | |
diff --git a/keyboards/dumbpad/v0x/v0x.c b/keyboards/dumbpad/v0x/v0x.c index b981c3769f..a225a2641c 100644 --- a/keyboards/dumbpad/v0x/v0x.c +++ b/keyboards/dumbpad/v0x/v0x.c | |||
| @@ -22,7 +22,7 @@ void keyboard_pre_init_kb(void) { | |||
| 22 | keyboard_pre_init_user(); | 22 | keyboard_pre_init_user(); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | void shutdown_user() { | 25 | void shutdown_user(void) { |
| 26 | // Shutdown LEDs | 26 | // Shutdown LEDs |
| 27 | writePinLow(LED_00); | 27 | writePinLow(LED_00); |
| 28 | writePinLow(LED_01); | 28 | writePinLow(LED_01); |
diff --git a/keyboards/dumbpad/v0x_dualencoder/v0x_dualencoder.c b/keyboards/dumbpad/v0x_dualencoder/v0x_dualencoder.c index 9b2a2cd241..8f571ca306 100644 --- a/keyboards/dumbpad/v0x_dualencoder/v0x_dualencoder.c +++ b/keyboards/dumbpad/v0x_dualencoder/v0x_dualencoder.c | |||
| @@ -22,7 +22,7 @@ void keyboard_pre_init_kb(void) { | |||
| 22 | keyboard_pre_init_user(); | 22 | keyboard_pre_init_user(); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | void shutdown_user() { | 25 | void shutdown_user(void) { |
| 26 | // Shutdown LEDs | 26 | // Shutdown LEDs |
| 27 | writePinLow(LED_00); | 27 | writePinLow(LED_00); |
| 28 | writePinLow(LED_01); | 28 | writePinLow(LED_01); |
diff --git a/keyboards/dumbpad/v0x_right/v0x_right.c b/keyboards/dumbpad/v0x_right/v0x_right.c index 2a987b2eaa..c5c0d670c6 100644 --- a/keyboards/dumbpad/v0x_right/v0x_right.c +++ b/keyboards/dumbpad/v0x_right/v0x_right.c | |||
| @@ -22,7 +22,7 @@ void keyboard_pre_init_kb(void) { | |||
| 22 | keyboard_pre_init_user(); | 22 | keyboard_pre_init_user(); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | void shutdown_user() { | 25 | void shutdown_user(void) { |
| 26 | // Shutdown LEDs | 26 | // Shutdown LEDs |
| 27 | writePinLow(LED_00); | 27 | writePinLow(LED_00); |
| 28 | writePinLow(LED_01); | 28 | writePinLow(LED_01); |
diff --git a/keyboards/dumbpad/v1x/v1x.c b/keyboards/dumbpad/v1x/v1x.c index 4f4df5ece2..1a1eb1e9c5 100644 --- a/keyboards/dumbpad/v1x/v1x.c +++ b/keyboards/dumbpad/v1x/v1x.c | |||
| @@ -23,7 +23,7 @@ void keyboard_pre_init_kb(void) { | |||
| 23 | keyboard_pre_init_user(); | 23 | keyboard_pre_init_user(); |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | void shutdown_user() { | 26 | void shutdown_user(void) { |
| 27 | // Shutdown LEDs | 27 | // Shutdown LEDs |
| 28 | writePinLow(LED_00); | 28 | writePinLow(LED_00); |
| 29 | writePinLow(LED_01); | 29 | writePinLow(LED_01); |
diff --git a/keyboards/dumbpad/v1x_dualencoder/v1x_dualencoder.c b/keyboards/dumbpad/v1x_dualencoder/v1x_dualencoder.c index a727a257b2..33a8679985 100644 --- a/keyboards/dumbpad/v1x_dualencoder/v1x_dualencoder.c +++ b/keyboards/dumbpad/v1x_dualencoder/v1x_dualencoder.c | |||
| @@ -23,7 +23,7 @@ void keyboard_pre_init_kb(void) { | |||
| 23 | keyboard_pre_init_user(); | 23 | keyboard_pre_init_user(); |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | void shutdown_user() { | 26 | void shutdown_user(void) { |
| 27 | // Shutdown LEDs | 27 | // Shutdown LEDs |
| 28 | writePinLow(LED_00); | 28 | writePinLow(LED_00); |
| 29 | writePinLow(LED_01); | 29 | writePinLow(LED_01); |
diff --git a/keyboards/dumbpad/v1x_right/v1x_right.c b/keyboards/dumbpad/v1x_right/v1x_right.c index b0b3f473df..2a2da68d5c 100644 --- a/keyboards/dumbpad/v1x_right/v1x_right.c +++ b/keyboards/dumbpad/v1x_right/v1x_right.c | |||
| @@ -23,7 +23,7 @@ void keyboard_pre_init_kb(void) { | |||
| 23 | keyboard_pre_init_user(); | 23 | keyboard_pre_init_user(); |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | void shutdown_user() { | 26 | void shutdown_user(void) { |
| 27 | // Shutdown LEDs | 27 | // Shutdown LEDs |
| 28 | writePinLow(LED_00); | 28 | writePinLow(LED_00); |
| 29 | writePinLow(LED_01); | 29 | writePinLow(LED_01); |
diff --git a/keyboards/dumbpad/v3x/v3x.c b/keyboards/dumbpad/v3x/v3x.c index 4a8ba12c47..7af3c4e838 100644 --- a/keyboards/dumbpad/v3x/v3x.c +++ b/keyboards/dumbpad/v3x/v3x.c | |||
| @@ -54,7 +54,7 @@ void keyboard_pre_init_kb(void) { | |||
| 54 | keyboard_pre_init_user(); | 54 | keyboard_pre_init_user(); |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | void shutdown_user() { | 57 | void shutdown_user(void) { |
| 58 | // Shutdown LEDs | 58 | // Shutdown LEDs |
| 59 | writePinLow(LED_00); | 59 | writePinLow(LED_00); |
| 60 | writePinLow(LED_01); | 60 | writePinLow(LED_01); |
diff --git a/keyboards/dz60/keymaps/marianas/relativity.c b/keyboards/dz60/keymaps/marianas/relativity.c index d2b9393400..f498b86742 100644 --- a/keyboards/dz60/keymaps/marianas/relativity.c +++ b/keyboards/dz60/keymaps/marianas/relativity.c | |||
| @@ -24,7 +24,7 @@ bool tempOff = false; | |||
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | void initStringData() | 27 | void initStringData(void) |
| 28 | { | 28 | { |
| 29 | if (macroTaps == 0) | 29 | if (macroTaps == 0) |
| 30 | { | 30 | { |
| @@ -382,7 +382,7 @@ bool processSmartMacroTap(uint16_t kc) | |||
| 382 | 382 | ||
| 383 | 383 | ||
| 384 | bool shifted = false; | 384 | bool shifted = false; |
| 385 | bool isShifted() | 385 | bool isShifted(void) |
| 386 | { | 386 | { |
| 387 | return shifted; | 387 | return shifted; |
| 388 | } | 388 | } |
diff --git a/keyboards/eco/keymaps/that_canadian/keymap.c b/keyboards/eco/keymaps/that_canadian/keymap.c index 6561491b14..0c8b53385d 100644 --- a/keyboards/eco/keymaps/that_canadian/keymap.c +++ b/keyboards/eco/keymaps/that_canadian/keymap.c | |||
| @@ -183,13 +183,13 @@ void matrix_init_user(void) { | |||
| 183 | 183 | ||
| 184 | #ifdef AUDIO_ENABLE | 184 | #ifdef AUDIO_ENABLE |
| 185 | 185 | ||
| 186 | void startup_user() | 186 | void startup_user(void) |
| 187 | { | 187 | { |
| 188 | _delay_ms(20); // gets rid of tick | 188 | _delay_ms(20); // gets rid of tick |
| 189 | PLAY_SONG(tone_startup); | 189 | PLAY_SONG(tone_startup); |
| 190 | } | 190 | } |
| 191 | 191 | ||
| 192 | void shutdown_user() | 192 | void shutdown_user(void) |
| 193 | { | 193 | { |
| 194 | PLAY_SONG(tone_goodbye); | 194 | PLAY_SONG(tone_goodbye); |
| 195 | _delay_ms(150); | 195 | _delay_ms(150); |
diff --git a/keyboards/eyeohdesigns/babyv/keymaps/bghull/keymap.c b/keyboards/eyeohdesigns/babyv/keymaps/bghull/keymap.c index 21a0200925..38a5770b05 100644 --- a/keyboards/eyeohdesigns/babyv/keymaps/bghull/keymap.c +++ b/keyboards/eyeohdesigns/babyv/keymaps/bghull/keymap.c | |||
| @@ -116,7 +116,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 116 | }; | 116 | }; |
| 117 | 117 | ||
| 118 | 118 | ||
| 119 | void matrix_init_user() { | 119 | void matrix_init_user(void) { |
| 120 | steno_set_mode(STENO_MODE_GEMINI); | 120 | steno_set_mode(STENO_MODE_GEMINI); |
| 121 | }; | 121 | }; |
| 122 | 122 | ||
diff --git a/keyboards/gboards/butterstick/sten.c b/keyboards/gboards/butterstick/sten.c index 8820127848..5d6adcc1d0 100644 --- a/keyboards/gboards/butterstick/sten.c +++ b/keyboards/gboards/butterstick/sten.c | |||
| @@ -370,7 +370,7 @@ void saveState(uint32_t cleanChord) { | |||
| 370 | for (int i = 0; i < 32; i++) | 370 | for (int i = 0; i < 32; i++) |
| 371 | pChordState[i] = chordState[i]; | 371 | pChordState[i] = chordState[i]; |
| 372 | } | 372 | } |
| 373 | void restoreState() { | 373 | void restoreState(void) { |
| 374 | cChord = pChord; | 374 | cChord = pChord; |
| 375 | chordIndex = pChordIndex; | 375 | chordIndex = pChordIndex; |
| 376 | for (int i = 0; i < 32; i++) | 376 | for (int i = 0; i < 32; i++) |
diff --git a/keyboards/gboards/engine/engine.c b/keyboards/gboards/engine/engine.c index 9094b7905a..7d4cc05e5f 100644 --- a/keyboards/gboards/engine/engine.c +++ b/keyboards/gboards/engine/engine.c | |||
| @@ -53,7 +53,7 @@ bool inMouse = false; | |||
| 53 | int8_t mousePress; | 53 | int8_t mousePress; |
| 54 | 54 | ||
| 55 | // All processing done at chordUp goes through here | 55 | // All processing done at chordUp goes through here |
| 56 | void processKeysUp() { | 56 | void processKeysUp(void) { |
| 57 | // Check for mousekeys, this is release | 57 | // Check for mousekeys, this is release |
| 58 | #ifdef MOUSEKEY_ENABLE | 58 | #ifdef MOUSEKEY_ENABLE |
| 59 | if (inMouse) { | 59 | if (inMouse) { |
| @@ -372,7 +372,7 @@ void saveState(C_SIZE cleanChord) { | |||
| 372 | pChordIndex = chordIndex; | 372 | pChordIndex = chordIndex; |
| 373 | for (int i = 0; i < 32; i++) pChordState[i] = chordState[i]; | 373 | for (int i = 0; i < 32; i++) pChordState[i] = chordState[i]; |
| 374 | } | 374 | } |
| 375 | void restoreState() { | 375 | void restoreState(void) { |
| 376 | cChord = pChord; | 376 | cChord = pChord; |
| 377 | chordIndex = pChordIndex; | 377 | chordIndex = pChordIndex; |
| 378 | for (int i = 0; i < 32; i++) chordState[i] = pChordState[i]; | 378 | for (int i = 0; i < 32; i++) chordState[i] = pChordState[i]; |
diff --git a/keyboards/gboards/g/engine.c b/keyboards/gboards/g/engine.c index 015b48d38f..7ce18d334e 100644 --- a/keyboards/gboards/g/engine.c +++ b/keyboards/gboards/g/engine.c | |||
| @@ -53,7 +53,7 @@ bool inMouse = false; | |||
| 53 | int8_t mousePress; | 53 | int8_t mousePress; |
| 54 | 54 | ||
| 55 | // All processing done at chordUp goes through here | 55 | // All processing done at chordUp goes through here |
| 56 | void processKeysUp() { | 56 | void processKeysUp(void) { |
| 57 | // Check for mousekeys, this is release | 57 | // Check for mousekeys, this is release |
| 58 | #ifdef MOUSEKEY_ENABLE | 58 | #ifdef MOUSEKEY_ENABLE |
| 59 | if (inMouse) { | 59 | if (inMouse) { |
| @@ -377,7 +377,7 @@ void saveState(C_SIZE cleanChord) { | |||
| 377 | pChordIndex = chordIndex; | 377 | pChordIndex = chordIndex; |
| 378 | for (int i = 0; i < 32; i++) pChordState[i] = chordState[i]; | 378 | for (int i = 0; i < 32; i++) pChordState[i] = chordState[i]; |
| 379 | } | 379 | } |
| 380 | void restoreState() { | 380 | void restoreState(void) { |
| 381 | cChord = pChord; | 381 | cChord = pChord; |
| 382 | chordIndex = pChordIndex; | 382 | chordIndex = pChordIndex; |
| 383 | for (int i = 0; i < 32; i++) chordState[i] = pChordState[i]; | 383 | for (int i = 0; i < 32; i++) chordState[i] = pChordState[i]; |
diff --git a/keyboards/gboards/georgi/sten.c b/keyboards/gboards/georgi/sten.c index bd96dee758..7318d04af3 100644 --- a/keyboards/gboards/georgi/sten.c +++ b/keyboards/gboards/georgi/sten.c | |||
| @@ -370,7 +370,7 @@ void saveState(uint32_t cleanChord) { | |||
| 370 | for (int i = 0; i < 32; i++) | 370 | for (int i = 0; i < 32; i++) |
| 371 | pChordState[i] = chordState[i]; | 371 | pChordState[i] = chordState[i]; |
| 372 | } | 372 | } |
| 373 | void restoreState() { | 373 | void restoreState(void) { |
| 374 | cChord = pChord; | 374 | cChord = pChord; |
| 375 | chordIndex = pChordIndex; | 375 | chordIndex = pChordIndex; |
| 376 | for (int i = 0; i < 32; i++) | 376 | for (int i = 0; i < 32; i++) |
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/andrebrait/keymap.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/andrebrait/keymap.c index 8d34d82f64..c7c183e33c 100644 --- a/keyboards/gmmk/pro/rev1/ansi/keymaps/andrebrait/keymap.c +++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/andrebrait/keymap.c | |||
| @@ -296,7 +296,7 @@ bool rgb_matrix_indicators_user(void) { | |||
| 296 | return false; | 296 | return false; |
| 297 | } | 297 | } |
| 298 | 298 | ||
| 299 | static void start_effects() { | 299 | static void start_effects(void) { |
| 300 | effect_started_time = sync_timer_read(); | 300 | effect_started_time = sync_timer_read(); |
| 301 | if (!rgb_matrix_is_enabled()) { | 301 | if (!rgb_matrix_is_enabled()) { |
| 302 | /* Turn it ON, signal the cause (EFFECTS) */ | 302 | /* Turn it ON, signal the cause (EFFECTS) */ |
| @@ -319,7 +319,7 @@ static void start_effects() { | |||
| 319 | // 87, led 07 88, led 18 | 319 | // 87, led 07 88, led 18 |
| 320 | // 91, led 08 92, led 19 | 320 | // 91, led 08 92, led 19 |
| 321 | 321 | ||
| 322 | static void set_rgb_caps_leds() { | 322 | static void set_rgb_caps_leds(void) { |
| 323 | rgb_matrix_set_color(0, 0xFF, 0x0, 0x0); // ESC | 323 | rgb_matrix_set_color(0, 0xFF, 0x0, 0x0); // ESC |
| 324 | rgb_matrix_set_color(6, 0xFF, 0x0, 0x0); // F1 | 324 | rgb_matrix_set_color(6, 0xFF, 0x0, 0x0); // F1 |
| 325 | rgb_matrix_set_color(12, 0xFF, 0x0, 0x0); // F2 | 325 | rgb_matrix_set_color(12, 0xFF, 0x0, 0x0); // F2 |
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/byungyoonc/keymap.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/byungyoonc/keymap.c index b0d75a378a..b54f7f404c 100644 --- a/keyboards/gmmk/pro/rev1/ansi/keymaps/byungyoonc/keymap.c +++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/byungyoonc/keymap.c | |||
| @@ -81,7 +81,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
| 81 | 81 | ||
| 82 | static void set_rgb_caps_leds(void); | 82 | static void set_rgb_caps_leds(void); |
| 83 | 83 | ||
| 84 | static void set_rgb_caps_leds() { | 84 | static void set_rgb_caps_leds(void) { |
| 85 | rgb_matrix_set_color(73, 0xFF, 0x77, 0x77); // Left side LED 3 | 85 | rgb_matrix_set_color(73, 0xFF, 0x77, 0x77); // Left side LED 3 |
| 86 | rgb_matrix_set_color(74, 0xFF, 0x77, 0x77); // Right side LED 3 | 86 | rgb_matrix_set_color(74, 0xFF, 0x77, 0x77); // Right side LED 3 |
| 87 | rgb_matrix_set_color(76, 0xFF, 0x77, 0x77); // Left side LED 4 | 87 | rgb_matrix_set_color(76, 0xFF, 0x77, 0x77); // Left side LED 4 |
| @@ -97,14 +97,14 @@ static void set_rgb_nlck_notset_leds(void); | |||
| 97 | 97 | ||
| 98 | static void set_rgb_wlck_leds(void); | 98 | static void set_rgb_wlck_leds(void); |
| 99 | 99 | ||
| 100 | static void set_rgb_nlck_notset_leds() { | 100 | static void set_rgb_nlck_notset_leds(void) { |
| 101 | rgb_matrix_set_color(67, 0x77, 0x77, 0xFF); // Left side LED 1 | 101 | rgb_matrix_set_color(67, 0x77, 0x77, 0xFF); // Left side LED 1 |
| 102 | rgb_matrix_set_color(68, 0x77, 0x77, 0xFF); // Right side LED 1 | 102 | rgb_matrix_set_color(68, 0x77, 0x77, 0xFF); // Right side LED 1 |
| 103 | rgb_matrix_set_color(70, 0x77, 0x77, 0xFF); // Left side LED 2 | 103 | rgb_matrix_set_color(70, 0x77, 0x77, 0xFF); // Left side LED 2 |
| 104 | rgb_matrix_set_color(71, 0x77, 0x77, 0xFF); // Right side LED 2 | 104 | rgb_matrix_set_color(71, 0x77, 0x77, 0xFF); // Right side LED 2 |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | static void set_rgb_wlck_leds() { | 107 | static void set_rgb_wlck_leds(void) { |
| 108 | rgb_matrix_set_color(87, 0x77, 0xFF, 0x77); // Left side LED 7 | 108 | rgb_matrix_set_color(87, 0x77, 0xFF, 0x77); // Left side LED 7 |
| 109 | rgb_matrix_set_color(88, 0x77, 0xFF, 0x77); // Right side LED 7 | 109 | rgb_matrix_set_color(88, 0x77, 0xFF, 0x77); // Right side LED 7 |
| 110 | rgb_matrix_set_color(91, 0x77, 0xFF, 0x77); // Left side LED 8 | 110 | rgb_matrix_set_color(91, 0x77, 0xFF, 0x77); // Left side LED 8 |
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/hachetman/keymap.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/hachetman/keymap.c index aa1558fd07..3b378ba572 100644 --- a/keyboards/gmmk/pro/rev1/ansi/keymaps/hachetman/keymap.c +++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/hachetman/keymap.c | |||
| @@ -220,7 +220,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 220 | } | 220 | } |
| 221 | 221 | ||
| 222 | 222 | ||
| 223 | bool rgb_matrix_indicators_user() { | 223 | bool rgb_matrix_indicators_user(void) { |
| 224 | #if RGB_CONFIRMATION_BLINKING_TIME > 0 | 224 | #if RGB_CONFIRMATION_BLINKING_TIME > 0 |
| 225 | if (effect_started_time > 0) { | 225 | if (effect_started_time > 0) { |
| 226 | /* Render blinking EFFECTS */ | 226 | /* Render blinking EFFECTS */ |
| @@ -262,7 +262,7 @@ bool rgb_matrix_indicators_user() { | |||
| 262 | } | 262 | } |
| 263 | 263 | ||
| 264 | #if RGB_CONFIRMATION_BLINKING_TIME > 0 | 264 | #if RGB_CONFIRMATION_BLINKING_TIME > 0 |
| 265 | static void start_effects() { | 265 | static void start_effects(void) { |
| 266 | effect_started_time = sync_timer_read(); | 266 | effect_started_time = sync_timer_read(); |
| 267 | if (!rgb_matrix_is_enabled()) { | 267 | if (!rgb_matrix_is_enabled()) { |
| 268 | /* Turn it ON, signal the cause (EFFECTS) */ | 268 | /* Turn it ON, signal the cause (EFFECTS) */ |
| @@ -286,7 +286,7 @@ static void start_effects() { | |||
| 286 | // 87, led 07 88, led 18 | 286 | // 87, led 07 88, led 18 |
| 287 | // 91, led 08 92, led 19 | 287 | // 91, led 08 92, led 19 |
| 288 | 288 | ||
| 289 | static void set_rgb_caps_leds() { | 289 | static void set_rgb_caps_leds(void) { |
| 290 | rgb_matrix_set_color(67, 0xFF, 0x0, 0x0); // Left side LED 1 | 290 | rgb_matrix_set_color(67, 0xFF, 0x0, 0x0); // Left side LED 1 |
| 291 | rgb_matrix_set_color(68, 0xFF, 0x0, 0x0); // Right side LED 1 | 291 | rgb_matrix_set_color(68, 0xFF, 0x0, 0x0); // Right side LED 1 |
| 292 | rgb_matrix_set_color(70, 0xFF, 0x0, 0x0); // Left side LED 2 | 292 | rgb_matrix_set_color(70, 0xFF, 0x0, 0x0); // Left side LED 2 |
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/lalitmaganti/keymap.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/lalitmaganti/keymap.c index 46e0a128f9..83ef8c765a 100644 --- a/keyboards/gmmk/pro/rev1/ansi/keymaps/lalitmaganti/keymap.c +++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/lalitmaganti/keymap.c | |||
| @@ -73,14 +73,14 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
| 73 | 73 | ||
| 74 | static void set_rgb_side_leds(void); | 74 | static void set_rgb_side_leds(void); |
| 75 | 75 | ||
| 76 | static void set_rgb_side_leds() { | 76 | static void set_rgb_side_leds(void) { |
| 77 | rgb_matrix_set_color(67, RGB_WHITE); // Left side LED 1 | 77 | rgb_matrix_set_color(67, RGB_WHITE); // Left side LED 1 |
| 78 | rgb_matrix_set_color(68, RGB_WHITE); // Right side LED 1 | 78 | rgb_matrix_set_color(68, RGB_WHITE); // Right side LED 1 |
| 79 | rgb_matrix_set_color(91, RGB_WHITE); // Left side LED 8 | 79 | rgb_matrix_set_color(91, RGB_WHITE); // Left side LED 8 |
| 80 | rgb_matrix_set_color(92, RGB_WHITE); // Right side LED 8 | 80 | rgb_matrix_set_color(92, RGB_WHITE); // Right side LED 8 |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | bool rgb_matrix_indicators_user() { | 83 | bool rgb_matrix_indicators_user(void) { |
| 84 | rgb_matrix_set_color_all(0x0, 0x0, 0x0); | 84 | rgb_matrix_set_color_all(0x0, 0x0, 0x0); |
| 85 | if (IS_HOST_LED_ON(USB_LED_CAPS_LOCK)) { | 85 | if (IS_HOST_LED_ON(USB_LED_CAPS_LOCK)) { |
| 86 | rgb_matrix_set_color(3, RGB_WHITE); // CAPS | 86 | rgb_matrix_set_color(3, RGB_WHITE); // CAPS |
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/macos/keymap.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/macos/keymap.c index 8740bfe89c..50a2ac6ca3 100644 --- a/keyboards/gmmk/pro/rev1/ansi/keymaps/macos/keymap.c +++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/macos/keymap.c | |||
| @@ -414,7 +414,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 414 | } | 414 | } |
| 415 | 415 | ||
| 416 | #if RGB_CONFIRMATION_BLINKING_TIME > 0 | 416 | #if RGB_CONFIRMATION_BLINKING_TIME > 0 |
| 417 | static void start_effects() { | 417 | static void start_effects(void) { |
| 418 | effect_started_time = sync_timer_read(); | 418 | effect_started_time = sync_timer_read(); |
| 419 | if (!rgb_matrix_is_enabled()) { | 419 | if (!rgb_matrix_is_enabled()) { |
| 420 | /* Turn it ON, signal the cause (EFFECTS) */ | 420 | /* Turn it ON, signal the cause (EFFECTS) */ |
| @@ -427,7 +427,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 427 | } | 427 | } |
| 428 | #endif // RGB_CONFIRMATION_BLINKING_TIME > 0 | 428 | #endif // RGB_CONFIRMATION_BLINKING_TIME > 0 |
| 429 | 429 | ||
| 430 | static void set_rgb_caps_leds() { | 430 | static void set_rgb_caps_leds(void) { |
| 431 | rgb_matrix_set_color(67, 0xFF, 0x0, 0x0); // Left side LED 1 | 431 | rgb_matrix_set_color(67, 0xFF, 0x0, 0x0); // Left side LED 1 |
| 432 | rgb_matrix_set_color(68, 0xFF, 0x0, 0x0); // Right side LED 1 | 432 | rgb_matrix_set_color(68, 0xFF, 0x0, 0x0); // Right side LED 1 |
| 433 | rgb_matrix_set_color(70, 0xFF, 0x0, 0x0); // Left side LED 2 | 433 | rgb_matrix_set_color(70, 0xFF, 0x0, 0x0); // Left side LED 2 |
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/encoder.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/encoder.c index 43ed195fbb..c912806217 100644 --- a/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/encoder.c +++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/encoder.c | |||
| @@ -36,9 +36,9 @@ const encoder_callback encoder_mapping[][2] = { | |||
| 36 | 36 | ||
| 37 | // clang-format on | 37 | // clang-format on |
| 38 | 38 | ||
| 39 | void volume_up() { tap_code(KC_VOLU); } | 39 | void volume_up(void) { tap_code(KC_VOLU); } |
| 40 | 40 | ||
| 41 | void volume_down() { tap_code(KC_VOLD); } | 41 | void volume_down(void) { tap_code(KC_VOLD); } |
| 42 | 42 | ||
| 43 | bool encoder_update_user(uint8_t index, bool clockwise) { | 43 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 44 | dprintf("current encoder state is: %d\n", state); | 44 | dprintf("current encoder state is: %d\n", state); |
| @@ -65,7 +65,7 @@ void handle_rgb_key(bool pressed) { | |||
| 65 | 65 | ||
| 66 | static KeyPressState *rgb_state; | 66 | static KeyPressState *rgb_state; |
| 67 | 67 | ||
| 68 | void keyboard_post_init_encoder() { | 68 | void keyboard_post_init_encoder(void) { |
| 69 | rgb_state = NewKeyPressState(handle_rgb_key); | 69 | rgb_state = NewKeyPressState(handle_rgb_key); |
| 70 | } | 70 | } |
| 71 | 71 | ||
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/process_record.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/process_record.c index ac0164e73f..a21b58a36c 100644 --- a/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/process_record.c +++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/process_record.c | |||
| @@ -116,4 +116,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 116 | process_record_fun(keycode, record); | 116 | process_record_fun(keycode, record); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | void keyboard_post_init_user() { keyboard_post_init_encoder(); } | 119 | void keyboard_post_init_user(void) { keyboard_post_init_encoder(); } |
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.c index 0106d80c14..b213abc998 100644 --- a/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.c +++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/rgb_matrix_ledmaps.c | |||
| @@ -58,12 +58,12 @@ void set_layer_rgb(uint8_t led_min, uint8_t led_max, int layer) { | |||
| 58 | } | 58 | } |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | void rgb_matrix_layers_enable() { | 61 | void rgb_matrix_layers_enable(void) { |
| 62 | dprintf("ledmaps are enabled\n"); | 62 | dprintf("ledmaps are enabled\n"); |
| 63 | enabled = true; | 63 | enabled = true; |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | void rgb_matrix_layers_disable() { | 66 | void rgb_matrix_layers_disable(void) { |
| 67 | dprintf("ledmaps are disabled\n"); | 67 | dprintf("ledmaps are disabled\n"); |
| 68 | enabled = false; | 68 | enabled = false; |
| 69 | } | 69 | } |
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/utils.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/utils.c index 35ae20b126..009e826423 100644 --- a/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/utils.c +++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/mike1808/utils.c | |||
| @@ -15,7 +15,7 @@ | |||
| 15 | */ | 15 | */ |
| 16 | #include "utils.h" | 16 | #include "utils.h" |
| 17 | 17 | ||
| 18 | void store_rgb_state_to_eeprom() { | 18 | void store_rgb_state_to_eeprom(void) { |
| 19 | uint8_t mode = rgb_matrix_get_mode(); | 19 | uint8_t mode = rgb_matrix_get_mode(); |
| 20 | uint8_t speed = rgb_matrix_get_speed(); | 20 | uint8_t speed = rgb_matrix_get_speed(); |
| 21 | HSV color = rgb_matrix_get_hsv(); | 21 | HSV color = rgb_matrix_get_hsv(); |
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/stickandgum/keymap.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/stickandgum/keymap.c index 6ba850b3e5..9a3123a0a7 100644 --- a/keyboards/gmmk/pro/rev1/ansi/keymaps/stickandgum/keymap.c +++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/stickandgum/keymap.c | |||
| @@ -247,7 +247,7 @@ bool rgb_matrix_indicators_user(void) { | |||
| 247 | // 87, led 07 88, led 18 | 247 | // 87, led 07 88, led 18 |
| 248 | // 91, led 08 92, led 19 | 248 | // 91, led 08 92, led 19 |
| 249 | 249 | ||
| 250 | static void set_rgb_caps_leds_on() { | 250 | static void set_rgb_caps_leds_on(void) { |
| 251 | rgb_matrix_set_color(0, 255, 0, 0); //Escape Key | 251 | rgb_matrix_set_color(0, 255, 0, 0); //Escape Key |
| 252 | rgb_matrix_set_color(3, 255, 0, 0); //capslock key | 252 | rgb_matrix_set_color(3, 255, 0, 0); //capslock key |
| 253 | rgb_matrix_set_color(5, 255, 0, 0); //Left CTRL key | 253 | rgb_matrix_set_color(5, 255, 0, 0); //Left CTRL key |
| @@ -269,7 +269,7 @@ static void set_rgb_caps_leds_on() { | |||
| 269 | rgb_matrix_set_color(92, 255, 255, 255); //Right LED 19 | 269 | rgb_matrix_set_color(92, 255, 255, 255); //Right LED 19 |
| 270 | } | 270 | } |
| 271 | 271 | ||
| 272 | static void set_rgb_caps_leds_off() { | 272 | static void set_rgb_caps_leds_off(void) { |
| 273 | rgb_matrix_set_color(0, 0, 0, 0); //Escape Key | 273 | rgb_matrix_set_color(0, 0, 0, 0); //Escape Key |
| 274 | rgb_matrix_set_color(3, 0, 0, 0); //capslock key | 274 | rgb_matrix_set_color(3, 0, 0, 0); //capslock key |
| 275 | rgb_matrix_set_color(5, 0, 0, 0); //Left CTRL key | 275 | rgb_matrix_set_color(5, 0, 0, 0); //Left CTRL key |
| @@ -291,11 +291,11 @@ static void set_rgb_caps_leds_off() { | |||
| 291 | rgb_matrix_set_color(92, 0, 0, 0); //Right LED 19 | 291 | rgb_matrix_set_color(92, 0, 0, 0); //Right LED 19 |
| 292 | } | 292 | } |
| 293 | 293 | ||
| 294 | static void set_rgb_scroll_leds_on() { | 294 | static void set_rgb_scroll_leds_on(void) { |
| 295 | rgb_matrix_set_color(72, 255, 255, 255); // Under Rotary (HOME) | 295 | rgb_matrix_set_color(72, 255, 255, 255); // Under Rotary (HOME) |
| 296 | } | 296 | } |
| 297 | 297 | ||
| 298 | static void set_rgb_scroll_leds_off() { | 298 | static void set_rgb_scroll_leds_off(void) { |
| 299 | rgb_matrix_set_color(72, 0, 0, 0); // Under Rotary (HOME) | 299 | rgb_matrix_set_color(72, 0, 0, 0); // Under Rotary (HOME) |
| 300 | } | 300 | } |
| 301 | 301 | ||
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/trwnh/keymap.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/trwnh/keymap.c index 8d425cdf1e..303861c676 100644 --- a/keyboards/gmmk/pro/rev1/ansi/keymaps/trwnh/keymap.c +++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/trwnh/keymap.c | |||
| @@ -62,7 +62,7 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { | |||
| 62 | static void set_rgb_caps_leds_off(void); | 62 | static void set_rgb_caps_leds_off(void); |
| 63 | static void set_rgb_scroll_leds_off(void); | 63 | static void set_rgb_scroll_leds_off(void); |
| 64 | 64 | ||
| 65 | static void set_rgb_caps_leds_on() { | 65 | static void set_rgb_caps_leds_on(void) { |
| 66 | // Set alpha and capslock to red | 66 | // Set alpha and capslock to red |
| 67 | 67 | ||
| 68 | rgb_matrix_set_color( 3, 255, 0, 0); // Caps | 68 | rgb_matrix_set_color( 3, 255, 0, 0); // Caps |
| @@ -97,7 +97,7 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { | |||
| 97 | rgb_matrix_set_color(43, 255, 0, 0); // M | 97 | rgb_matrix_set_color(43, 255, 0, 0); // M |
| 98 | } | 98 | } |
| 99 | 99 | ||
| 100 | static void set_rgb_caps_leds_off() { | 100 | static void set_rgb_caps_leds_off(void) { |
| 101 | // Set alpha and capslock to black | 101 | // Set alpha and capslock to black |
| 102 | 102 | ||
| 103 | rgb_matrix_set_color( 3, 0, 0, 0); // Caps | 103 | rgb_matrix_set_color( 3, 0, 0, 0); // Caps |
| @@ -132,11 +132,11 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { | |||
| 132 | rgb_matrix_set_color(43, 0, 0, 0); // M | 132 | rgb_matrix_set_color(43, 0, 0, 0); // M |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | static void set_rgb_scroll_leds_on() { | 135 | static void set_rgb_scroll_leds_on(void) { |
| 136 | rgb_matrix_set_color(72, 255, 255, 255); // Under Rotary (HOME) | 136 | rgb_matrix_set_color(72, 255, 255, 255); // Under Rotary (HOME) |
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | static void set_rgb_scroll_leds_off() { | 139 | static void set_rgb_scroll_leds_off(void) { |
| 140 | rgb_matrix_set_color(72, 0, 0, 0); // Under Rotary (HOME) | 140 | rgb_matrix_set_color(72, 0, 0, 0); // Under Rotary (HOME) |
| 141 | } | 141 | } |
| 142 | 142 | ||
diff --git a/keyboards/hadron/ver2/keymaps/side_numpad/keymap.c b/keyboards/hadron/ver2/keymaps/side_numpad/keymap.c index 04b30e3437..f352b1c851 100644 --- a/keyboards/hadron/ver2/keymaps/side_numpad/keymap.c +++ b/keyboards/hadron/ver2/keymaps/side_numpad/keymap.c | |||
| @@ -325,13 +325,13 @@ void matrix_init_user(void) { | |||
| 325 | 325 | ||
| 326 | #ifdef AUDIO_ENABLE | 326 | #ifdef AUDIO_ENABLE |
| 327 | 327 | ||
| 328 | void startup_user() | 328 | void startup_user(void) |
| 329 | { | 329 | { |
| 330 | _delay_ms(20); // gets rid of tick | 330 | _delay_ms(20); // gets rid of tick |
| 331 | PLAY_SONG(tone_startup); | 331 | PLAY_SONG(tone_startup); |
| 332 | } | 332 | } |
| 333 | 333 | ||
| 334 | void shutdown_user() | 334 | void shutdown_user(void) |
| 335 | {cc | 335 | {cc |
| 336 | PLAY_SONG(tone_goodbye); | 336 | PLAY_SONG(tone_goodbye); |
| 337 | _delay_ms(150); | 337 | _delay_ms(150); |
diff --git a/keyboards/handwired/atreus50/keymaps/default/keymap.c b/keyboards/handwired/atreus50/keymaps/default/keymap.c index 6feed5e070..cbcc5fc6f8 100644 --- a/keyboards/handwired/atreus50/keymaps/default/keymap.c +++ b/keyboards/handwired/atreus50/keymaps/default/keymap.c | |||
| @@ -187,13 +187,13 @@ void matrix_init_user(void) { | |||
| 187 | 187 | ||
| 188 | #ifdef AUDIO_ENABLE | 188 | #ifdef AUDIO_ENABLE |
| 189 | 189 | ||
| 190 | void startup_user() | 190 | void startup_user(void) |
| 191 | { | 191 | { |
| 192 | _delay_ms(20); // gets rid of tick | 192 | _delay_ms(20); // gets rid of tick |
| 193 | PLAY_SONG(tone_startup); | 193 | PLAY_SONG(tone_startup); |
| 194 | } | 194 | } |
| 195 | 195 | ||
| 196 | void shutdown_user() | 196 | void shutdown_user(void) |
| 197 | { | 197 | { |
| 198 | PLAY_SONG(tone_goodbye); | 198 | PLAY_SONG(tone_goodbye); |
| 199 | _delay_ms(150); | 199 | _delay_ms(150); |
diff --git a/keyboards/handwired/jotanck/jotanck.c b/keyboards/handwired/jotanck/jotanck.c index af650b129e..23e2b9634c 100644 --- a/keyboards/handwired/jotanck/jotanck.c +++ b/keyboards/handwired/jotanck/jotanck.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #include "jotanck.h" | 1 | #include "jotanck.h" |
| 2 | 2 | ||
| 3 | void keyboard_pre_init_kb() { | 3 | void keyboard_pre_init_kb(void) { |
| 4 | setPinOutput(JOTANCK_LED1); | 4 | setPinOutput(JOTANCK_LED1); |
| 5 | setPinOutput(JOTANCK_LED2); | 5 | setPinOutput(JOTANCK_LED2); |
| 6 | 6 | ||
diff --git a/keyboards/handwired/jotpad16/jotpad16.c b/keyboards/handwired/jotpad16/jotpad16.c index dfff7e1679..439cfc7b1e 100644 --- a/keyboards/handwired/jotpad16/jotpad16.c +++ b/keyboards/handwired/jotpad16/jotpad16.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #include "jotpad16.h" | 1 | #include "jotpad16.h" |
| 2 | 2 | ||
| 3 | void keyboard_pre_init_kb() { | 3 | void keyboard_pre_init_kb(void) { |
| 4 | setPinOutput(JOTPAD16_LED1); | 4 | setPinOutput(JOTPAD16_LED1); |
| 5 | setPinOutput(JOTPAD16_LED2); | 5 | setPinOutput(JOTPAD16_LED2); |
| 6 | 6 | ||
diff --git a/keyboards/handwired/jscotto/scotto36/keymaps/default/keymap.c b/keyboards/handwired/jscotto/scotto36/keymaps/default/keymap.c index 3c6e61aea0..ad8451ac09 100644 --- a/keyboards/handwired/jscotto/scotto36/keymaps/default/keymap.c +++ b/keyboards/handwired/jscotto/scotto36/keymaps/default/keymap.c | |||
| @@ -216,7 +216,7 @@ static void render_animation(void) { | |||
| 216 | } | 216 | } |
| 217 | 217 | ||
| 218 | // Draw to OLED | 218 | // Draw to OLED |
| 219 | bool oled_task_user() { | 219 | bool oled_task_user(void) { |
| 220 | // Render Bongo Cat | 220 | // Render Bongo Cat |
| 221 | render_animation(); | 221 | render_animation(); |
| 222 | 222 | ||
diff --git a/keyboards/handwired/jscotto/scottocmd/keymaps/default/keymap.c b/keyboards/handwired/jscotto/scottocmd/keymaps/default/keymap.c index 97d2c206a8..b1c77ae944 100644 --- a/keyboards/handwired/jscotto/scottocmd/keymaps/default/keymap.c +++ b/keyboards/handwired/jscotto/scottocmd/keymaps/default/keymap.c | |||
| @@ -349,7 +349,7 @@ static void render_animation(void) { | |||
| 349 | } | 349 | } |
| 350 | 350 | ||
| 351 | // Draw to OLED | 351 | // Draw to OLED |
| 352 | bool oled_task_user() { | 352 | bool oled_task_user(void) { |
| 353 | // Caps lock text | 353 | // Caps lock text |
| 354 | led_t led_state = host_keyboard_led_state(); | 354 | led_t led_state = host_keyboard_led_state(); |
| 355 | oled_set_cursor(0,1); | 355 | oled_set_cursor(0,1); |
diff --git a/keyboards/handwired/onekey/keymaps/digitizer/keymap.c b/keyboards/handwired/onekey/keymaps/digitizer/keymap.c index dcc0adc59b..49fe3d66c8 100644 --- a/keyboards/handwired/onekey/keymaps/digitizer/keymap.c +++ b/keyboards/handwired/onekey/keymaps/digitizer/keymap.c | |||
| @@ -32,7 +32,7 @@ void keyboard_post_init_user(void) { | |||
| 32 | digitizer_in_range_on(); | 32 | digitizer_in_range_on(); |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | void matrix_scan_user() { | 35 | void matrix_scan_user(void) { |
| 36 | if (timer_elapsed32(timer) < 200) { | 36 | if (timer_elapsed32(timer) < 200) { |
| 37 | return; | 37 | return; |
| 38 | } | 38 | } |
diff --git a/keyboards/handwired/onekey/keymaps/joystick/keymap.c b/keyboards/handwired/onekey/keymaps/joystick/keymap.c index 6463900b7b..3bcdf2c58e 100644 --- a/keyboards/handwired/onekey/keymaps/joystick/keymap.c +++ b/keyboards/handwired/onekey/keymaps/joystick/keymap.c | |||
| @@ -8,7 +8,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 8 | LAYOUT_ortho_1x1(JS_0) | 8 | LAYOUT_ortho_1x1(JS_0) |
| 9 | }; | 9 | }; |
| 10 | 10 | ||
| 11 | void matrix_scan_user() { | 11 | void matrix_scan_user(void) { |
| 12 | int16_t val = (((uint32_t)timer_read() % 5000 - 2500) * 255) / 5000; | 12 | int16_t val = (((uint32_t)timer_read() % 5000 - 2500) * 255) / 5000; |
| 13 | joystick_set_axis(1, val); | 13 | joystick_set_axis(1, val); |
| 14 | } | 14 | } |
diff --git a/keyboards/handwired/ortho5x13/keymaps/default/keymap.c b/keyboards/handwired/ortho5x13/keymaps/default/keymap.c index f043bd1be2..ef975a215d 100644 --- a/keyboards/handwired/ortho5x13/keymaps/default/keymap.c +++ b/keyboards/handwired/ortho5x13/keymaps/default/keymap.c | |||
| @@ -256,13 +256,13 @@ void matrix_init_user(void) { | |||
| 256 | 256 | ||
| 257 | #ifdef AUDIO_ENABLE | 257 | #ifdef AUDIO_ENABLE |
| 258 | 258 | ||
| 259 | void startup_user() | 259 | void startup_user(void) |
| 260 | { | 260 | { |
| 261 | _delay_ms(20); // gets rid of tick | 261 | _delay_ms(20); // gets rid of tick |
| 262 | PLAY_SONG(tone_startup); | 262 | PLAY_SONG(tone_startup); |
| 263 | } | 263 | } |
| 264 | 264 | ||
| 265 | void shutdown_user() | 265 | void shutdown_user(void) |
| 266 | { | 266 | { |
| 267 | PLAY_SONG(tone_goodbye); | 267 | PLAY_SONG(tone_goodbye); |
| 268 | _delay_ms(150); | 268 | _delay_ms(150); |
diff --git a/keyboards/handwired/promethium/keymaps/default/keymap.c b/keyboards/handwired/promethium/keymaps/default/keymap.c index 534a2986cb..21dd99d95a 100644 --- a/keyboards/handwired/promethium/keymaps/default/keymap.c +++ b/keyboards/handwired/promethium/keymaps/default/keymap.c | |||
| @@ -1272,7 +1272,7 @@ void set_output_user(uint8_t output) { | |||
| 1272 | #endif | 1272 | #endif |
| 1273 | } | 1273 | } |
| 1274 | 1274 | ||
| 1275 | void matrix_init_user() { | 1275 | void matrix_init_user(void) { |
| 1276 | wait_ms(500); // give time for usb to initialize | 1276 | wait_ms(500); // give time for usb to initialize |
| 1277 | 1277 | ||
| 1278 | set_unicode_input_mode(UNICODE_MODE_LINUX); | 1278 | set_unicode_input_mode(UNICODE_MODE_LINUX); |
| @@ -1292,7 +1292,7 @@ void matrix_init_user() { | |||
| 1292 | #endif | 1292 | #endif |
| 1293 | } | 1293 | } |
| 1294 | 1294 | ||
| 1295 | void turn_off_capslock() { | 1295 | void turn_off_capslock(void) { |
| 1296 | if (capslock) { | 1296 | if (capslock) { |
| 1297 | register_code(KC_CAPS); | 1297 | register_code(KC_CAPS); |
| 1298 | unregister_code(KC_CAPS); | 1298 | unregister_code(KC_CAPS); |
| @@ -1323,7 +1323,7 @@ void turn_off_capslock() { | |||
| 1323 | #endif | 1323 | #endif |
| 1324 | 1324 | ||
| 1325 | #ifdef PS2_MOUSE_ENABLE | 1325 | #ifdef PS2_MOUSE_ENABLE |
| 1326 | void ps2_mouse_init_user() { | 1326 | void ps2_mouse_init_user(void) { |
| 1327 | uint8_t rcv; | 1327 | uint8_t rcv; |
| 1328 | 1328 | ||
| 1329 | // set TrackPoint sensitivity | 1329 | // set TrackPoint sensitivity |
diff --git a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c index 4271073549..1ebf63037b 100644 --- a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c +++ b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c | |||
| @@ -1275,7 +1275,7 @@ void set_output_user(uint8_t output) { | |||
| 1275 | #endif | 1275 | #endif |
| 1276 | } | 1276 | } |
| 1277 | 1277 | ||
| 1278 | void matrix_init_user() { | 1278 | void matrix_init_user(void) { |
| 1279 | wait_ms(500); // give time for usb to initialize | 1279 | wait_ms(500); // give time for usb to initialize |
| 1280 | 1280 | ||
| 1281 | set_unicode_input_mode(UNICODE_MODE_LINUX); | 1281 | set_unicode_input_mode(UNICODE_MODE_LINUX); |
| @@ -1295,7 +1295,7 @@ void matrix_init_user() { | |||
| 1295 | #endif | 1295 | #endif |
| 1296 | } | 1296 | } |
| 1297 | 1297 | ||
| 1298 | void turn_off_capslock() { | 1298 | void turn_off_capslock(void) { |
| 1299 | if (capslock) { | 1299 | if (capslock) { |
| 1300 | register_code(KC_CAPS); | 1300 | register_code(KC_CAPS); |
| 1301 | unregister_code(KC_CAPS); | 1301 | unregister_code(KC_CAPS); |
| @@ -1326,7 +1326,7 @@ void turn_off_capslock() { | |||
| 1326 | #endif | 1326 | #endif |
| 1327 | 1327 | ||
| 1328 | #ifdef PS2_MOUSE_ENABLE | 1328 | #ifdef PS2_MOUSE_ENABLE |
| 1329 | void ps2_mouse_init_user() { | 1329 | void ps2_mouse_init_user(void) { |
| 1330 | uint8_t rcv; | 1330 | uint8_t rcv; |
| 1331 | 1331 | ||
| 1332 | // set TrackPoint sensitivity | 1332 | // set TrackPoint sensitivity |
diff --git a/keyboards/helix/pico/keymaps/default/keymap.c b/keyboards/helix/pico/keymaps/default/keymap.c index 21418f2d2f..101a54bda6 100644 --- a/keyboards/helix/pico/keymaps/default/keymap.c +++ b/keyboards/helix/pico/keymaps/default/keymap.c | |||
| @@ -340,12 +340,12 @@ void matrix_init_user(void) { | |||
| 340 | 340 | ||
| 341 | #ifdef AUDIO_ENABLE | 341 | #ifdef AUDIO_ENABLE |
| 342 | 342 | ||
| 343 | void startup_user() | 343 | void startup_user(void) |
| 344 | { | 344 | { |
| 345 | _delay_ms(50); // gets rid of tick | 345 | _delay_ms(50); // gets rid of tick |
| 346 | } | 346 | } |
| 347 | 347 | ||
| 348 | void shutdown_user() | 348 | void shutdown_user(void) |
| 349 | { | 349 | { |
| 350 | _delay_ms(150); | 350 | _delay_ms(150); |
| 351 | stop_all_notes(); | 351 | stop_all_notes(); |
diff --git a/keyboards/helix/pico/keymaps/mtei/keymap.c b/keyboards/helix/pico/keymaps/mtei/keymap.c index 17a98f4d7f..6a5f7d295a 100644 --- a/keyboards/helix/pico/keymaps/mtei/keymap.c +++ b/keyboards/helix/pico/keymaps/mtei/keymap.c | |||
| @@ -344,12 +344,12 @@ void matrix_init_user(void) { | |||
| 344 | 344 | ||
| 345 | #ifdef AUDIO_ENABLE | 345 | #ifdef AUDIO_ENABLE |
| 346 | 346 | ||
| 347 | void startup_user() | 347 | void startup_user(void) |
| 348 | { | 348 | { |
| 349 | _delay_ms(50); // gets rid of tick | 349 | _delay_ms(50); // gets rid of tick |
| 350 | } | 350 | } |
| 351 | 351 | ||
| 352 | void shutdown_user() | 352 | void shutdown_user(void) |
| 353 | { | 353 | { |
| 354 | _delay_ms(150); | 354 | _delay_ms(150); |
| 355 | stop_all_notes(); | 355 | stop_all_notes(); |
diff --git a/keyboards/helix/rev2/keymaps/default/keymap.c b/keyboards/helix/rev2/keymaps/default/keymap.c index cc61ec4caa..464b8bbd80 100644 --- a/keyboards/helix/rev2/keymaps/default/keymap.c +++ b/keyboards/helix/rev2/keymaps/default/keymap.c | |||
| @@ -479,12 +479,12 @@ void matrix_init_user(void) { | |||
| 479 | 479 | ||
| 480 | #ifdef AUDIO_ENABLE | 480 | #ifdef AUDIO_ENABLE |
| 481 | 481 | ||
| 482 | void startup_user() | 482 | void startup_user(void) |
| 483 | { | 483 | { |
| 484 | _delay_ms(20); // gets rid of tick | 484 | _delay_ms(20); // gets rid of tick |
| 485 | } | 485 | } |
| 486 | 486 | ||
| 487 | void shutdown_user() | 487 | void shutdown_user(void) |
| 488 | { | 488 | { |
| 489 | _delay_ms(150); | 489 | _delay_ms(150); |
| 490 | stop_all_notes(); | 490 | stop_all_notes(); |
diff --git a/keyboards/helix/rev2/keymaps/froggy/keymap.c b/keyboards/helix/rev2/keymaps/froggy/keymap.c index 3b6d3f2065..ae96f576af 100644 --- a/keyboards/helix/rev2/keymaps/froggy/keymap.c +++ b/keyboards/helix/rev2/keymaps/froggy/keymap.c | |||
| @@ -464,12 +464,12 @@ void matrix_init_user(void) { | |||
| 464 | 464 | ||
| 465 | #ifdef AUDIO_ENABLE | 465 | #ifdef AUDIO_ENABLE |
| 466 | 466 | ||
| 467 | void startup_user() | 467 | void startup_user(void) |
| 468 | { | 468 | { |
| 469 | _delay_ms(20); // gets rid of tick | 469 | _delay_ms(20); // gets rid of tick |
| 470 | } | 470 | } |
| 471 | 471 | ||
| 472 | void shutdown_user() | 472 | void shutdown_user(void) |
| 473 | { | 473 | { |
| 474 | _delay_ms(150); | 474 | _delay_ms(150); |
| 475 | stop_all_notes(); | 475 | stop_all_notes(); |
diff --git a/keyboards/helix/rev2/keymaps/yshrsmz/keymap.c b/keyboards/helix/rev2/keymaps/yshrsmz/keymap.c index d2a460d0b5..5f22ed2741 100644 --- a/keyboards/helix/rev2/keymaps/yshrsmz/keymap.c +++ b/keyboards/helix/rev2/keymaps/yshrsmz/keymap.c | |||
| @@ -459,12 +459,12 @@ void matrix_init_user(void) { | |||
| 459 | 459 | ||
| 460 | #ifdef AUDIO_ENABLE | 460 | #ifdef AUDIO_ENABLE |
| 461 | 461 | ||
| 462 | void startup_user() | 462 | void startup_user(void) |
| 463 | { | 463 | { |
| 464 | _delay_ms(20); // gets rid of tick | 464 | _delay_ms(20); // gets rid of tick |
| 465 | } | 465 | } |
| 466 | 466 | ||
| 467 | void shutdown_user() | 467 | void shutdown_user(void) |
| 468 | { | 468 | { |
| 469 | _delay_ms(150); | 469 | _delay_ms(150); |
| 470 | stop_all_notes(); | 470 | stop_all_notes(); |
diff --git a/keyboards/ibnuda/squiggle/keymaps/rick-complicated/keymap.c b/keyboards/ibnuda/squiggle/keymaps/rick-complicated/keymap.c index b8c0d9f844..c33bf71741 100644 --- a/keyboards/ibnuda/squiggle/keymaps/rick-complicated/keymap.c +++ b/keyboards/ibnuda/squiggle/keymaps/rick-complicated/keymap.c | |||
| @@ -183,7 +183,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 183 | 183 | ||
| 184 | LEADER_EXTERNS(); | 184 | LEADER_EXTERNS(); |
| 185 | 185 | ||
| 186 | void matrix_scan_user() { | 186 | void matrix_scan_user(void) { |
| 187 | LEADER_DICTIONARY() { | 187 | LEADER_DICTIONARY() { |
| 188 | leading = false; | 188 | leading = false; |
| 189 | leader_end(); | 189 | leader_end(); |
diff --git a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c index 6f7de7ff29..fbe1bdb77f 100644 --- a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c +++ b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c | |||
| @@ -94,7 +94,7 @@ __attribute__ ((weak)) void matrix_init_user(void) {} | |||
| 94 | __attribute__ ((weak)) void matrix_scan_user(void) {} | 94 | __attribute__ ((weak)) void matrix_scan_user(void) {} |
| 95 | 95 | ||
| 96 | 96 | ||
| 97 | void keyboard_pre_init_kb() { | 97 | void keyboard_pre_init_kb(void) { |
| 98 | #ifdef LED_MATRIX_ENABLE | 98 | #ifdef LED_MATRIX_ENABLE |
| 99 | // Turn on LED controller | 99 | // Turn on LED controller |
| 100 | setPinOutput(B16); | 100 | setPinOutput(B16); |
diff --git a/keyboards/input_club/ergodox_infinity/keymaps/dudeofawesome/keymap.c b/keyboards/input_club/ergodox_infinity/keymaps/dudeofawesome/keymap.c index ebdedcbe6b..d1665ecb1f 100644 --- a/keyboards/input_club/ergodox_infinity/keymaps/dudeofawesome/keymap.c +++ b/keyboards/input_club/ergodox_infinity/keymaps/dudeofawesome/keymap.c | |||
| @@ -470,7 +470,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 470 | 470 | ||
| 471 | }; | 471 | }; |
| 472 | 472 | ||
| 473 | void matrix_init_user() { | 473 | void matrix_init_user(void) { |
| 474 | led_matrix_enable_noeeprom(); | 474 | led_matrix_enable_noeeprom(); |
| 475 | led_matrix_set_val_noeeprom(UINT8_MAX); | 475 | led_matrix_set_val_noeeprom(UINT8_MAX); |
| 476 | } | 476 | } |
diff --git a/keyboards/input_club/k_type/keymaps/andrew-fahmy/keymap.c b/keyboards/input_club/k_type/keymaps/andrew-fahmy/keymap.c index 87a6404326..264c760414 100644 --- a/keyboards/input_club/k_type/keymaps/andrew-fahmy/keymap.c +++ b/keyboards/input_club/k_type/keymaps/andrew-fahmy/keymap.c | |||
| @@ -52,7 +52,7 @@ void keyboard_post_init_user(void) { | |||
| 52 | 52 | ||
| 53 | #ifdef RGB_MATRIX_ENABLE | 53 | #ifdef RGB_MATRIX_ENABLE |
| 54 | // Turn off SDB | 54 | // Turn off SDB |
| 55 | void keyboard_pre_init_user() { | 55 | void keyboard_pre_init_user(void) { |
| 56 | palSetPadMode(GPIOB, 16, PAL_MODE_OUTPUT_PUSHPULL); | 56 | palSetPadMode(GPIOB, 16, PAL_MODE_OUTPUT_PUSHPULL); |
| 57 | palSetPad(GPIOB, 16); | 57 | palSetPad(GPIOB, 16); |
| 58 | } | 58 | } |
diff --git a/keyboards/jels/jels88/jels88.c b/keyboards/jels/jels88/jels88.c index bd8e30e4ee..a5ae732d3e 100644 --- a/keyboards/jels/jels88/jels88.c +++ b/keyboards/jels/jels88/jels88.c | |||
| @@ -22,7 +22,7 @@ | |||
| 22 | #define CAPS_LED D5 | 22 | #define CAPS_LED D5 |
| 23 | #define SCROLL_LED D4 | 23 | #define SCROLL_LED D4 |
| 24 | 24 | ||
| 25 | void keyboard_pre_init_kb() { | 25 | void keyboard_pre_init_kb(void) { |
| 26 | setPinOutput(CAPS_LED); | 26 | setPinOutput(CAPS_LED); |
| 27 | setPinOutput(SCROLL_LED); | 27 | setPinOutput(SCROLL_LED); |
| 28 | keyboard_pre_init_user(); | 28 | keyboard_pre_init_user(); |
diff --git a/keyboards/kbdfans/niu_mini/keymaps/yttyx/keymap.c b/keyboards/kbdfans/niu_mini/keymaps/yttyx/keymap.c index c7db9d5023..55d5a80228 100644 --- a/keyboards/kbdfans/niu_mini/keymaps/yttyx/keymap.c +++ b/keyboards/kbdfans/niu_mini/keymaps/yttyx/keymap.c | |||
| @@ -90,6 +90,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 90 | 90 | ||
| 91 | }; | 91 | }; |
| 92 | 92 | ||
| 93 | void matrix_init_user() { | 93 | void matrix_init_user(void) { |
| 94 | steno_set_mode(STENO_MODE_GEMINI); | 94 | steno_set_mode(STENO_MODE_GEMINI); |
| 95 | } | 95 | } |
diff --git a/keyboards/keebio/iris/keymaps/edvorakjp/keymap.c b/keyboards/keebio/iris/keymaps/edvorakjp/keymap.c index e593051db8..97c9f48f89 100644 --- a/keyboards/keebio/iris/keymaps/edvorakjp/keymap.c +++ b/keyboards/keebio/iris/keymaps/edvorakjp/keymap.c | |||
| @@ -50,7 +50,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 50 | }; | 50 | }; |
| 51 | // clang-format on | 51 | // clang-format on |
| 52 | 52 | ||
| 53 | void matrix_init_keymap() {} | 53 | void matrix_init_keymap(void) {} |
| 54 | 54 | ||
| 55 | #ifdef RGBLIGHT_EFFECT_STATIC_GRADIENT | 55 | #ifdef RGBLIGHT_EFFECT_STATIC_GRADIENT |
| 56 | layer_state_t layer_state_set_keymap(layer_state_t state) { | 56 | layer_state_t layer_state_set_keymap(layer_state_t state) { |
diff --git a/keyboards/keebio/levinson/keymaps/steno/keymap.c b/keyboards/keebio/levinson/keymaps/steno/keymap.c index 33b80ca194..854ef41999 100644 --- a/keyboards/keebio/levinson/keymaps/steno/keymap.c +++ b/keyboards/keebio/levinson/keymaps/steno/keymap.c | |||
| @@ -91,7 +91,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = | |||
| 91 | }; | 91 | }; |
| 92 | 92 | ||
| 93 | 93 | ||
| 94 | void matrix_init_user() { | 94 | void matrix_init_user(void) { |
| 95 | steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT | 95 | steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT |
| 96 | } | 96 | } |
| 97 | 97 | ||
diff --git a/keyboards/knops/mini/keymaps/mverteuil/keymap.c b/keyboards/knops/mini/keymaps/mverteuil/keymap.c index 45765a7aba..2e8d678f26 100644 --- a/keyboards/knops/mini/keymaps/mverteuil/keymap.c +++ b/keyboards/knops/mini/keymaps/mverteuil/keymap.c | |||
| @@ -222,7 +222,7 @@ void set_layer_led(int layerLedMode) { | |||
| 222 | } | 222 | } |
| 223 | } | 223 | } |
| 224 | 224 | ||
| 225 | void led_init_animation() { | 225 | void led_init_animation(void) { |
| 226 | for (int i = ALL_LAYERS_OFF; i <= ALL_LAYERS_ON; i++) { | 226 | for (int i = ALL_LAYERS_OFF; i <= ALL_LAYERS_ON; i++) { |
| 227 | led_set_layer(i); | 227 | led_set_layer(i); |
| 228 | } | 228 | } |
diff --git a/keyboards/lazydesigners/dimple/staggered/staggered.c b/keyboards/lazydesigners/dimple/staggered/staggered.c index 2cd8c018db..b871868afa 100644 --- a/keyboards/lazydesigners/dimple/staggered/staggered.c +++ b/keyboards/lazydesigners/dimple/staggered/staggered.c | |||
| @@ -14,10 +14,10 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #include "staggered.h" | 16 | #include "staggered.h" |
| 17 | void dimple_led_on() { | 17 | void dimple_led_on(void) { |
| 18 | writePinLow(E6); | 18 | writePinLow(E6); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | void dimple_led_off() { | 21 | void dimple_led_off(void) { |
| 22 | writePinHigh(E6); | 22 | writePinHigh(E6); |
| 23 | } | 23 | } |
diff --git a/keyboards/lazydesigners/the50/the50.c b/keyboards/lazydesigners/the50/the50.c index 4ceb3da6ab..35c678fd5e 100644 --- a/keyboards/lazydesigners/the50/the50.c +++ b/keyboards/lazydesigners/the50/the50.c | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | #include "the50.h" | 1 | #include "the50.h" |
| 2 | 2 | ||
| 3 | void the50_led_on() { | 3 | void the50_led_on(void) { |
| 4 | DDRB |= (1 << 7); PORTB &= ~(1 << 7); | 4 | DDRB |= (1 << 7); PORTB &= ~(1 << 7); |
| 5 | } | 5 | } |
| 6 | 6 | ||
| 7 | void the50_led_off() { | 7 | void the50_led_off(void) { |
| 8 | DDRB &= ~(1 << 7); PORTB &= ~(1 << 7); | 8 | DDRB &= ~(1 << 7); PORTB &= ~(1 << 7); |
| 9 | } | 9 | } |
diff --git a/keyboards/lfkeyboards/TWIlib.c b/keyboards/lfkeyboards/TWIlib.c index d50ce72895..0d52322c64 100644 --- a/keyboards/lfkeyboards/TWIlib.c +++ b/keyboards/lfkeyboards/TWIlib.c | |||
| @@ -24,7 +24,7 @@ int RXBuffLen; // The total number of bytes to read (should be less than RXMAXBU | |||
| 24 | 24 | ||
| 25 | TWIInfoStruct TWIInfo; | 25 | TWIInfoStruct TWIInfo; |
| 26 | 26 | ||
| 27 | void TWIInit() | 27 | void TWIInit(void) |
| 28 | { | 28 | { |
| 29 | TWIInfo.mode = Ready; | 29 | TWIInfo.mode = Ready; |
| 30 | TWIInfo.errorCode = 0xFF; | 30 | TWIInfo.errorCode = 0xFF; |
| @@ -37,7 +37,7 @@ void TWIInit() | |||
| 37 | TWCR = (1 << TWIE) | (1 << TWEN); | 37 | TWCR = (1 << TWIE) | (1 << TWEN); |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | uint8_t isTWIReady() | 40 | uint8_t isTWIReady(void) |
| 41 | { | 41 | { |
| 42 | if ( (TWIInfo.mode == Ready) | (TWIInfo.mode == RepeatedStartSent) ) | 42 | if ( (TWIInfo.mode == Ready) | (TWIInfo.mode == RepeatedStartSent) ) |
| 43 | { | 43 | { |
diff --git a/keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c b/keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c index 7326e812ec..3d273e8aec 100644 --- a/keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c +++ b/keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c | |||
| @@ -13,7 +13,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) | |||
| 13 | return process_record_user(keycode, record); | 13 | return process_record_user(keycode, record); |
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | void reset_keyboard_kb(){ | 16 | void reset_keyboard_kb(void){ |
| 17 | #ifdef WATCHDOG_ENABLE | 17 | #ifdef WATCHDOG_ENABLE |
| 18 | MCUSR = 0; | 18 | MCUSR = 0; |
| 19 | wdt_disable(); | 19 | wdt_disable(); |
diff --git a/keyboards/lfkeyboards/lfk78/lfk78.c b/keyboards/lfkeyboards/lfk78/lfk78.c index 110bbd4168..6f4c062ad8 100644 --- a/keyboards/lfkeyboards/lfk78/lfk78.c +++ b/keyboards/lfkeyboards/lfk78/lfk78.c | |||
| @@ -137,7 +137,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) { | |||
| 137 | return process_record_user(keycode, record); | 137 | return process_record_user(keycode, record); |
| 138 | } | 138 | } |
| 139 | 139 | ||
| 140 | void reset_keyboard_kb() { | 140 | void reset_keyboard_kb(void) { |
| 141 | #ifdef WATCHDOG_ENABLE | 141 | #ifdef WATCHDOG_ENABLE |
| 142 | MCUSR = 0; | 142 | MCUSR = 0; |
| 143 | wdt_disable(); | 143 | wdt_disable(); |
diff --git a/keyboards/lfkeyboards/lfk87/lfk87.c b/keyboards/lfkeyboards/lfk87/lfk87.c index 18ddd86adc..ce81aa7d27 100644 --- a/keyboards/lfkeyboards/lfk87/lfk87.c +++ b/keyboards/lfkeyboards/lfk87/lfk87.c | |||
| @@ -116,7 +116,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) | |||
| 116 | return process_record_user(keycode, record); | 116 | return process_record_user(keycode, record); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | void reset_keyboard_kb(){ | 119 | void reset_keyboard_kb(void){ |
| 120 | #ifdef WATCHDOG_ENABLE | 120 | #ifdef WATCHDOG_ENABLE |
| 121 | MCUSR = 0; | 121 | MCUSR = 0; |
| 122 | wdt_disable(); | 122 | wdt_disable(); |
diff --git a/keyboards/lfkeyboards/lighting.c b/keyboards/lfkeyboards/lighting.c index f4940ec079..5f3ab46e46 100644 --- a/keyboards/lfkeyboards/lighting.c +++ b/keyboards/lfkeyboards/lighting.c | |||
| @@ -112,7 +112,7 @@ void set_backlight_by_keymap(uint8_t col, uint8_t row){ | |||
| 112 | #endif | 112 | #endif |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | void force_issi_refresh(){ | 115 | void force_issi_refresh(void){ |
| 116 | #ifdef ISSI_ENABLE | 116 | #ifdef ISSI_ENABLE |
| 117 | issi_devices[0]->led_dirty = true; | 117 | issi_devices[0]->led_dirty = true; |
| 118 | update_issi(0, true); | 118 | update_issi(0, true); |
| @@ -121,7 +121,7 @@ void force_issi_refresh(){ | |||
| 121 | #endif | 121 | #endif |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void led_test(){ | 124 | void led_test(void){ |
| 125 | #ifdef ISSI_ENABLE | 125 | #ifdef ISSI_ENABLE |
| 126 | #ifdef WATCHDOG_ENABLE | 126 | #ifdef WATCHDOG_ENABLE |
| 127 | // This test take a long time to run, disable the WTD until its complete | 127 | // This test take a long time to run, disable the WTD until its complete |
diff --git a/keyboards/lfkeyboards/mini1800/mini1800.c b/keyboards/lfkeyboards/mini1800/mini1800.c index cf7e42f134..fb92137be8 100644 --- a/keyboards/lfkeyboards/mini1800/mini1800.c +++ b/keyboards/lfkeyboards/mini1800/mini1800.c | |||
| @@ -122,7 +122,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) | |||
| 122 | return process_record_user(keycode, record); | 122 | return process_record_user(keycode, record); |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | void reset_keyboard_kb(){ | 125 | void reset_keyboard_kb(void){ |
| 126 | #ifdef WATCHDOG_ENABLE | 126 | #ifdef WATCHDOG_ENABLE |
| 127 | MCUSR = 0; | 127 | MCUSR = 0; |
| 128 | wdt_disable(); | 128 | wdt_disable(); |
diff --git a/keyboards/lfkeyboards/smk65/revb/revb.c b/keyboards/lfkeyboards/smk65/revb/revb.c index 9e78107eca..858305244a 100644 --- a/keyboards/lfkeyboards/smk65/revb/revb.c +++ b/keyboards/lfkeyboards/smk65/revb/revb.c | |||
| @@ -81,7 +81,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) | |||
| 81 | return process_record_user(keycode, record); | 81 | return process_record_user(keycode, record); |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | void reset_keyboard_kb(){ | 84 | void reset_keyboard_kb(void){ |
| 85 | #ifdef WATCHDOG_ENABLE | 85 | #ifdef WATCHDOG_ENABLE |
| 86 | MCUSR = 0; | 86 | MCUSR = 0; |
| 87 | wdt_disable(); | 87 | wdt_disable(); |
diff --git a/keyboards/macrocat/macrocat.c b/keyboards/macrocat/macrocat.c index aec76d1912..f00bb01410 100644 --- a/keyboards/macrocat/macrocat.c +++ b/keyboards/macrocat/macrocat.c | |||
| @@ -126,12 +126,12 @@ void encoder_double_click(void) { | |||
| 126 | void encoder_triple_click(void) { | 126 | void encoder_triple_click(void) { |
| 127 | tap_code(KC_MPRV); | 127 | tap_code(KC_MPRV); |
| 128 | } | 128 | } |
| 129 | void matrix_init_kb() { | 129 | void matrix_init_kb(void) { |
| 130 | matrix_init_user(); | 130 | matrix_init_user(); |
| 131 | 131 | ||
| 132 | setPinInputHigh(ENCODER_SWITCH); | 132 | setPinInputHigh(ENCODER_SWITCH); |
| 133 | } | 133 | } |
| 134 | void matrix_scan_kb() { | 134 | void matrix_scan_kb(void) { |
| 135 | matrix_scan_user(); | 135 | matrix_scan_user(); |
| 136 | if (readPin(ENCODER_SWITCH)) { | 136 | if (readPin(ENCODER_SWITCH)) { |
| 137 | if (encoder_pressed) { // release switch | 137 | if (encoder_pressed) { // release switch |
diff --git a/keyboards/makeymakey/makeymakey.c b/keyboards/makeymakey/makeymakey.c index 77794416b2..ade9200de4 100644 --- a/keyboards/makeymakey/makeymakey.c +++ b/keyboards/makeymakey/makeymakey.c | |||
| @@ -108,7 +108,7 @@ void cycle_leds(void) { | |||
| 108 | } | 108 | } |
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | void matrix_scan_kb() { | 111 | void matrix_scan_kb(void) { |
| 112 | cycle_leds(); | 112 | cycle_leds(); |
| 113 | matrix_scan_user(); | 113 | matrix_scan_user(); |
| 114 | } | 114 | } |
diff --git a/keyboards/matrix/noah/keymaps/blockader/keymap.c b/keyboards/matrix/noah/keymaps/blockader/keymap.c index cec0905677..b6caf43f91 100644 --- a/keyboards/matrix/noah/keymaps/blockader/keymap.c +++ b/keyboards/matrix/noah/keymaps/blockader/keymap.c | |||
| @@ -645,7 +645,7 @@ bool process_record_user(uint16_t key, keyrecord_t* record) { | |||
| 645 | return handle_common_key(key, record); | 645 | return handle_common_key(key, record); |
| 646 | } | 646 | } |
| 647 | 647 | ||
| 648 | void keyboard_post_init_user() { | 648 | void keyboard_post_init_user(void) { |
| 649 | rgblight_disable_noeeprom(); | 649 | rgblight_disable_noeeprom(); |
| 650 | rgb_matrix_disable(); | 650 | rgb_matrix_disable(); |
| 651 | common_layer_data.back = false; | 651 | common_layer_data.back = false; |
diff --git a/keyboards/mechwild/bbs/bbs.c b/keyboards/mechwild/bbs/bbs.c index 02c5f43dd9..9a7253e5da 100644 --- a/keyboards/mechwild/bbs/bbs.c +++ b/keyboards/mechwild/bbs/bbs.c | |||
| @@ -16,7 +16,7 @@ bool dip_switch_update_kb(uint8_t index, bool active) { | |||
| 16 | } | 16 | } |
| 17 | #endif | 17 | #endif |
| 18 | 18 | ||
| 19 | void eeconfig_init_kb() { | 19 | void eeconfig_init_kb(void) { |
| 20 | steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT | 20 | steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT |
| 21 | eeconfig_init_user(); | 21 | eeconfig_init_user(); |
| 22 | } \ No newline at end of file | 22 | } \ No newline at end of file |
diff --git a/keyboards/nek_type_a/mcp23017.c b/keyboards/nek_type_a/mcp23017.c index 1434fa56c4..6c8ccb4ff1 100644 --- a/keyboards/nek_type_a/mcp23017.c +++ b/keyboards/nek_type_a/mcp23017.c | |||
| @@ -53,7 +53,7 @@ void expander_init(void) { | |||
| 53 | } | 53 | } |
| 54 | 54 | ||
| 55 | // set IN and HI | 55 | // set IN and HI |
| 56 | void expander_unselect_all() { | 56 | void expander_unselect_all(void) { |
| 57 | expander_write(EXPANDER_REG_IODIRA, 0xff); | 57 | expander_write(EXPANDER_REG_IODIRA, 0xff); |
| 58 | expander_write(EXPANDER_REG_IODIRB, 0xff); | 58 | expander_write(EXPANDER_REG_IODIRB, 0xff); |
| 59 | expander_write(EXPANDER_REG_OLATA, 0xff); | 59 | expander_write(EXPANDER_REG_OLATA, 0xff); |
| @@ -74,7 +74,7 @@ void expander_select(uint8_t pin) { | |||
| 74 | wait_us(EXPANDER_PAUSE); | 74 | wait_us(EXPANDER_PAUSE); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | void expander_config() { | 77 | void expander_config(void) { |
| 78 | // set everything to input | 78 | // set everything to input |
| 79 | expander_write(EXPANDER_REG_IODIRA, 0xff); | 79 | expander_write(EXPANDER_REG_IODIRA, 0xff); |
| 80 | expander_write(EXPANDER_REG_IODIRB, 0xff); | 80 | expander_write(EXPANDER_REG_IODIRB, 0xff); |
diff --git a/keyboards/neopad/rev1/rev1.c b/keyboards/neopad/rev1/rev1.c index 20e2c4d055..665294451a 100755 --- a/keyboards/neopad/rev1/rev1.c +++ b/keyboards/neopad/rev1/rev1.c | |||
| @@ -22,7 +22,7 @@ void keyboard_pre_init_kb(void) { | |||
| 22 | keyboard_pre_init_user(); | 22 | keyboard_pre_init_user(); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | void shutdown_user() { | 25 | void shutdown_user(void) { |
| 26 | // Shutdown LEDs | 26 | // Shutdown LEDs |
| 27 | writePinLow(LED_00); | 27 | writePinLow(LED_00); |
| 28 | writePinLow(LED_01); | 28 | writePinLow(LED_01); |
diff --git a/keyboards/opendeck/32/rev1/rev1.c b/keyboards/opendeck/32/rev1/rev1.c index b803682b7d..5d546afb29 100644 --- a/keyboards/opendeck/32/rev1/rev1.c +++ b/keyboards/opendeck/32/rev1/rev1.c | |||
| @@ -102,7 +102,7 @@ void keyboard_pre_init_kb(void) { | |||
| 102 | setPinInput(RGB_IRQ_N_PIN); | 102 | setPinInput(RGB_IRQ_N_PIN); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | void keyboard_post_init_user() { | 105 | void keyboard_post_init_user(void) { |
| 106 | // RGB enabled by default, no way to turn off. No need to expend EEPROM write cycles here. | 106 | // RGB enabled by default, no way to turn off. No need to expend EEPROM write cycles here. |
| 107 | rgb_matrix_enable_noeeprom(); | 107 | rgb_matrix_enable_noeeprom(); |
| 108 | } | 108 | } |
diff --git a/keyboards/planck/keymaps/circuit/keymap.c b/keyboards/planck/keymaps/circuit/keymap.c index 4b3db082a7..d150905dc8 100644 --- a/keyboards/planck/keymaps/circuit/keymap.c +++ b/keyboards/planck/keymaps/circuit/keymap.c | |||
| @@ -219,13 +219,13 @@ void matrix_init_user(void) { | |||
| 219 | 219 | ||
| 220 | #ifdef AUDIO_ENABLE | 220 | #ifdef AUDIO_ENABLE |
| 221 | 221 | ||
| 222 | void startup_user() | 222 | void startup_user(void) |
| 223 | { | 223 | { |
| 224 | _delay_ms(20); // gets rid of tick | 224 | _delay_ms(20); // gets rid of tick |
| 225 | PLAY_SONG(tone_startup); | 225 | PLAY_SONG(tone_startup); |
| 226 | } | 226 | } |
| 227 | 227 | ||
| 228 | void shutdown_user() | 228 | void shutdown_user(void) |
| 229 | { | 229 | { |
| 230 | PLAY_SONG(tone_goodbye); | 230 | PLAY_SONG(tone_goodbye); |
| 231 | _delay_ms(150); | 231 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/dbroqua/keymap.c b/keyboards/planck/keymaps/dbroqua/keymap.c index 6096b51dde..95d0b85408 100644 --- a/keyboards/planck/keymaps/dbroqua/keymap.c +++ b/keyboards/planck/keymaps/dbroqua/keymap.c | |||
| @@ -192,13 +192,13 @@ void matrix_init_user(void) { | |||
| 192 | 192 | ||
| 193 | #ifdef AUDIO_ENABLE | 193 | #ifdef AUDIO_ENABLE |
| 194 | 194 | ||
| 195 | void startup_user() | 195 | void startup_user(void) |
| 196 | { | 196 | { |
| 197 | _delay_ms(20); // gets rid of tick | 197 | _delay_ms(20); // gets rid of tick |
| 198 | PLAY_SONG(tone_startup); | 198 | PLAY_SONG(tone_startup); |
| 199 | } | 199 | } |
| 200 | 200 | ||
| 201 | void shutdown_user() | 201 | void shutdown_user(void) |
| 202 | { | 202 | { |
| 203 | PLAY_SONG(tone_goodbye); | 203 | PLAY_SONG(tone_goodbye); |
| 204 | _delay_ms(150); | 204 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/dcompact/keymap.c b/keyboards/planck/keymaps/dcompact/keymap.c index 0e09d21efb..a63f86e7a8 100644 --- a/keyboards/planck/keymaps/dcompact/keymap.c +++ b/keyboards/planck/keymaps/dcompact/keymap.c | |||
| @@ -357,6 +357,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 357 | return true; | 357 | return true; |
| 358 | } | 358 | } |
| 359 | 359 | ||
| 360 | void matrix_init_user() { | 360 | void matrix_init_user(void) { |
| 361 | steno_set_mode(STENO_MODE_GEMINI); | 361 | steno_set_mode(STENO_MODE_GEMINI); |
| 362 | } | 362 | } |
diff --git a/keyboards/planck/keymaps/dr_notsokind/keymap.c b/keyboards/planck/keymaps/dr_notsokind/keymap.c index 0338e1806e..ffceef11cc 100644 --- a/keyboards/planck/keymaps/dr_notsokind/keymap.c +++ b/keyboards/planck/keymaps/dr_notsokind/keymap.c | |||
| @@ -312,13 +312,13 @@ void matrix_init_user(void) { | |||
| 312 | 312 | ||
| 313 | #ifdef AUDIO_ENABLE | 313 | #ifdef AUDIO_ENABLE |
| 314 | 314 | ||
| 315 | void startup_user() | 315 | void startup_user(void) |
| 316 | { | 316 | { |
| 317 | _delay_ms(20); // gets rid of tick | 317 | _delay_ms(20); // gets rid of tick |
| 318 | PLAY_SONG(tone_startup); | 318 | PLAY_SONG(tone_startup); |
| 319 | } | 319 | } |
| 320 | 320 | ||
| 321 | void shutdown_user() | 321 | void shutdown_user(void) |
| 322 | { | 322 | { |
| 323 | PLAY_SONG(tone_goodbye); | 323 | PLAY_SONG(tone_goodbye); |
| 324 | _delay_ms(150); | 324 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/emilyh/keymap.c b/keyboards/planck/keymaps/emilyh/keymap.c index 91e5c5fb37..17bbc98b7e 100644 --- a/keyboards/planck/keymaps/emilyh/keymap.c +++ b/keyboards/planck/keymaps/emilyh/keymap.c | |||
| @@ -282,13 +282,13 @@ void matrix_init_user(void) { | |||
| 282 | 282 | ||
| 283 | #ifdef AUDIO_ENABLE | 283 | #ifdef AUDIO_ENABLE |
| 284 | 284 | ||
| 285 | void startup_user() | 285 | void startup_user(void) |
| 286 | { | 286 | { |
| 287 | _delay_ms(20); // gets rid of tick | 287 | _delay_ms(20); // gets rid of tick |
| 288 | PLAY_SONG(tone_startup); | 288 | PLAY_SONG(tone_startup); |
| 289 | } | 289 | } |
| 290 | 290 | ||
| 291 | void shutdown_user() | 291 | void shutdown_user(void) |
| 292 | { | 292 | { |
| 293 | PLAY_SONG(tone_goodbye); | 293 | PLAY_SONG(tone_goodbye); |
| 294 | _delay_ms(150); | 294 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/experimental/keymap.c b/keyboards/planck/keymaps/experimental/keymap.c index ecb13848d1..e0ade650fe 100644 --- a/keyboards/planck/keymaps/experimental/keymap.c +++ b/keyboards/planck/keymaps/experimental/keymap.c | |||
| @@ -347,13 +347,13 @@ void matrix_init_user(void) { | |||
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | #ifdef AUDIO_ENABLE | 349 | #ifdef AUDIO_ENABLE |
| 350 | void startup_user() | 350 | void startup_user(void) |
| 351 | { | 351 | { |
| 352 | _delay_ms(20); // gets rid of tick | 352 | _delay_ms(20); // gets rid of tick |
| 353 | PLAY_SONG(tone_startup); | 353 | PLAY_SONG(tone_startup); |
| 354 | } | 354 | } |
| 355 | 355 | ||
| 356 | void shutdown_user() | 356 | void shutdown_user(void) |
| 357 | { | 357 | { |
| 358 | PLAY_SONG(tone_goodbye); | 358 | PLAY_SONG(tone_goodbye); |
| 359 | _delay_ms(150); | 359 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/gunp/keymap.c b/keyboards/planck/keymaps/gunp/keymap.c index 555b073839..7c2f6c0bd5 100644 --- a/keyboards/planck/keymaps/gunp/keymap.c +++ b/keyboards/planck/keymaps/gunp/keymap.c | |||
| @@ -293,13 +293,13 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 293 | float music_scale[][2] = SONG(MUSIC_SCALE_SOUND); | 293 | float music_scale[][2] = SONG(MUSIC_SCALE_SOUND); |
| 294 | #endif | 294 | #endif |
| 295 | 295 | ||
| 296 | void startup_user() { | 296 | void startup_user(void) { |
| 297 | #ifdef AUDIO_ENABLE | 297 | #ifdef AUDIO_ENABLE |
| 298 | PLAY_SONG(tone_startup); | 298 | PLAY_SONG(tone_startup); |
| 299 | #endif | 299 | #endif |
| 300 | } | 300 | } |
| 301 | 301 | ||
| 302 | void shutdown_user() { | 302 | void shutdown_user(void) { |
| 303 | #ifdef AUDIO_ENABLE | 303 | #ifdef AUDIO_ENABLE |
| 304 | PLAY_SONG(tone_goodbye); | 304 | PLAY_SONG(tone_goodbye); |
| 305 | stop_all_notes(); | 305 | stop_all_notes(); |
diff --git a/keyboards/planck/keymaps/handwired_binaryplease/keymap.c b/keyboards/planck/keymaps/handwired_binaryplease/keymap.c index b5e8484bdd..13917e516d 100644 --- a/keyboards/planck/keymaps/handwired_binaryplease/keymap.c +++ b/keyboards/planck/keymaps/handwired_binaryplease/keymap.c | |||
| @@ -280,13 +280,13 @@ void matrix_init_user(void) { | |||
| 280 | 280 | ||
| 281 | #ifdef AUDIO_ENABLE | 281 | #ifdef AUDIO_ENABLE |
| 282 | 282 | ||
| 283 | void startup_user() | 283 | void startup_user(void) |
| 284 | { | 284 | { |
| 285 | _delay_ms(20); // gets rid of tick | 285 | _delay_ms(20); // gets rid of tick |
| 286 | PLAY_SONG(tone_startup); | 286 | PLAY_SONG(tone_startup); |
| 287 | } | 287 | } |
| 288 | 288 | ||
| 289 | void shutdown_user() | 289 | void shutdown_user(void) |
| 290 | { | 290 | { |
| 291 | PLAY_SONG(tone_goodbye); | 291 | PLAY_SONG(tone_goodbye); |
| 292 | _delay_ms(150); | 292 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/impossible/keymap.c b/keyboards/planck/keymaps/impossible/keymap.c index 07872d0d7f..9145ad79aa 100644 --- a/keyboards/planck/keymaps/impossible/keymap.c +++ b/keyboards/planck/keymaps/impossible/keymap.c | |||
| @@ -205,13 +205,13 @@ void matrix_init_user(void) { | |||
| 205 | 205 | ||
| 206 | #ifdef AUDIO_ENABLE | 206 | #ifdef AUDIO_ENABLE |
| 207 | 207 | ||
| 208 | void startup_user() | 208 | void startup_user(void) |
| 209 | { | 209 | { |
| 210 | _delay_ms(20); // gets rid of tick | 210 | _delay_ms(20); // gets rid of tick |
| 211 | PLAY_SONG(tone_startup); | 211 | PLAY_SONG(tone_startup); |
| 212 | } | 212 | } |
| 213 | 213 | ||
| 214 | void shutdown_user() | 214 | void shutdown_user(void) |
| 215 | { | 215 | { |
| 216 | PLAY_SONG(tone_goodbye); | 216 | PLAY_SONG(tone_goodbye); |
| 217 | _delay_ms(150); | 217 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/ishtob/keymap.c b/keyboards/planck/keymaps/ishtob/keymap.c index 48cce59420..eebafddbed 100644 --- a/keyboards/planck/keymaps/ishtob/keymap.c +++ b/keyboards/planck/keymaps/ishtob/keymap.c | |||
| @@ -321,7 +321,7 @@ void matrix_init_keymap(void) { | |||
| 321 | 321 | ||
| 322 | #ifdef AUDIO_ENABLE | 322 | #ifdef AUDIO_ENABLE |
| 323 | 323 | ||
| 324 | void startup_user() | 324 | void startup_user(void) |
| 325 | { | 325 | { |
| 326 | #ifdef RGB_MATRIX_ENABLE | 326 | #ifdef RGB_MATRIX_ENABLE |
| 327 | rgblight_mode(RGB_MATRIX_CYCLE_ALL); | 327 | rgblight_mode(RGB_MATRIX_CYCLE_ALL); |
| @@ -330,7 +330,7 @@ void startup_user() | |||
| 330 | PLAY_SONG(tone_startup); | 330 | PLAY_SONG(tone_startup); |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | void shutdown_user() | 333 | void shutdown_user(void) |
| 334 | { | 334 | { |
| 335 | PLAY_SONG(tone_goodbye); | 335 | PLAY_SONG(tone_goodbye); |
| 336 | wait_ms(150); | 336 | wait_ms(150); |
diff --git a/keyboards/planck/keymaps/jhenahan/keymap.c b/keyboards/planck/keymaps/jhenahan/keymap.c index 92b3d16e2e..21c489922d 100644 --- a/keyboards/planck/keymaps/jhenahan/keymap.c +++ b/keyboards/planck/keymaps/jhenahan/keymap.c | |||
| @@ -277,13 +277,13 @@ void matrix_init_user(void) { | |||
| 277 | 277 | ||
| 278 | #ifdef AUDIO_ENABLE | 278 | #ifdef AUDIO_ENABLE |
| 279 | 279 | ||
| 280 | void startup_user() | 280 | void startup_user(void) |
| 281 | { | 281 | { |
| 282 | _delay_ms(20); // gets rid of tick | 282 | _delay_ms(20); // gets rid of tick |
| 283 | PLAY_SONG(tone_startup); | 283 | PLAY_SONG(tone_startup); |
| 284 | } | 284 | } |
| 285 | 285 | ||
| 286 | void shutdown_user() | 286 | void shutdown_user(void) |
| 287 | { | 287 | { |
| 288 | PLAY_SONG(tone_goodbye); | 288 | PLAY_SONG(tone_goodbye); |
| 289 | _delay_ms(150); | 289 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/lae3/keymap.c b/keyboards/planck/keymaps/lae3/keymap.c index 87845b0f32..7b6175d543 100644 --- a/keyboards/planck/keymaps/lae3/keymap.c +++ b/keyboards/planck/keymaps/lae3/keymap.c | |||
| @@ -227,13 +227,13 @@ void matrix_init_user(void) | |||
| 227 | 227 | ||
| 228 | #ifdef AUDIO_ENABLE | 228 | #ifdef AUDIO_ENABLE |
| 229 | 229 | ||
| 230 | void startup_user() | 230 | void startup_user(void) |
| 231 | { | 231 | { |
| 232 | _delay_ms(100); // gets rid of tick | 232 | _delay_ms(100); // gets rid of tick |
| 233 | PLAY_SONG(tone_startup); | 233 | PLAY_SONG(tone_startup); |
| 234 | } | 234 | } |
| 235 | 235 | ||
| 236 | void shutdown_user() | 236 | void shutdown_user(void) |
| 237 | { | 237 | { |
| 238 | PLAY_SONG(tone_goodbye); | 238 | PLAY_SONG(tone_goodbye); |
| 239 | _delay_ms(150); | 239 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/mjt/keymap.c b/keyboards/planck/keymaps/mjt/keymap.c index 2b5ce9d206..e927627e1f 100644 --- a/keyboards/planck/keymaps/mjt/keymap.c +++ b/keyboards/planck/keymaps/mjt/keymap.c | |||
| @@ -248,13 +248,13 @@ void matrix_init_user(void) { | |||
| 248 | 248 | ||
| 249 | #ifdef AUDIO_ENABLE | 249 | #ifdef AUDIO_ENABLE |
| 250 | 250 | ||
| 251 | void startup_user() | 251 | void startup_user(void) |
| 252 | { | 252 | { |
| 253 | _delay_ms(20); // gets rid of tick | 253 | _delay_ms(20); // gets rid of tick |
| 254 | PLAY_SONG(tone_startup); | 254 | PLAY_SONG(tone_startup); |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | void shutdown_user() | 257 | void shutdown_user(void) |
| 258 | { | 258 | { |
| 259 | PLAY_SONG(tone_goodbye); | 259 | PLAY_SONG(tone_goodbye); |
| 260 | _delay_ms(150); | 260 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/mjtnumsym/keymap.c b/keyboards/planck/keymaps/mjtnumsym/keymap.c index 81ba8d9ee0..3fa05ad178 100644 --- a/keyboards/planck/keymaps/mjtnumsym/keymap.c +++ b/keyboards/planck/keymaps/mjtnumsym/keymap.c | |||
| @@ -247,13 +247,13 @@ void matrix_init_user(void) { | |||
| 247 | 247 | ||
| 248 | #ifdef AUDIO_ENABLE | 248 | #ifdef AUDIO_ENABLE |
| 249 | 249 | ||
| 250 | void startup_user() | 250 | void startup_user(void) |
| 251 | { | 251 | { |
| 252 | _delay_ms(20); // gets rid of tick | 252 | _delay_ms(20); // gets rid of tick |
| 253 | PLAY_SONG(tone_startup); | 253 | PLAY_SONG(tone_startup); |
| 254 | } | 254 | } |
| 255 | 255 | ||
| 256 | void shutdown_user() | 256 | void shutdown_user(void) |
| 257 | { | 257 | { |
| 258 | PLAY_SONG(tone_goodbye); | 258 | PLAY_SONG(tone_goodbye); |
| 259 | _delay_ms(150); | 259 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/originerd/keymap.c b/keyboards/planck/keymaps/originerd/keymap.c index 917e59f0bb..85e5cd3b16 100644 --- a/keyboards/planck/keymaps/originerd/keymap.c +++ b/keyboards/planck/keymaps/originerd/keymap.c | |||
| @@ -158,13 +158,13 @@ void matrix_init_user(void) { | |||
| 158 | 158 | ||
| 159 | #ifdef AUDIO_ENABLE | 159 | #ifdef AUDIO_ENABLE |
| 160 | 160 | ||
| 161 | void startup_user() | 161 | void startup_user(void) |
| 162 | { | 162 | { |
| 163 | _delay_ms(20); // gets rid of tick | 163 | _delay_ms(20); // gets rid of tick |
| 164 | PLAY_SONG(tone_startup); | 164 | PLAY_SONG(tone_startup); |
| 165 | } | 165 | } |
| 166 | 166 | ||
| 167 | void shutdown_user() | 167 | void shutdown_user(void) |
| 168 | { | 168 | { |
| 169 | PLAY_SONG(tone_goodbye); | 169 | PLAY_SONG(tone_goodbye); |
| 170 | _delay_ms(150); | 170 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/premek/keymap.c b/keyboards/planck/keymaps/premek/keymap.c index 402a603ece..76d3cabfbc 100644 --- a/keyboards/planck/keymaps/premek/keymap.c +++ b/keyboards/planck/keymaps/premek/keymap.c | |||
| @@ -194,13 +194,13 @@ void matrix_init_user(void) { | |||
| 194 | 194 | ||
| 195 | #ifdef AUDIO_ENABLE | 195 | #ifdef AUDIO_ENABLE |
| 196 | 196 | ||
| 197 | void startup_user() | 197 | void startup_user(void) |
| 198 | { | 198 | { |
| 199 | _delay_ms(20); // gets rid of tick | 199 | _delay_ms(20); // gets rid of tick |
| 200 | PLAY_SONG(tone_startup); | 200 | PLAY_SONG(tone_startup); |
| 201 | } | 201 | } |
| 202 | 202 | ||
| 203 | void shutdown_user() | 203 | void shutdown_user(void) |
| 204 | { | 204 | { |
| 205 | PLAY_SONG(tone_goodbye); | 205 | PLAY_SONG(tone_goodbye); |
| 206 | _delay_ms(150); | 206 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/sgoodwin/keymap.c b/keyboards/planck/keymaps/sgoodwin/keymap.c index 1b88afd952..e61cd4de68 100644 --- a/keyboards/planck/keymaps/sgoodwin/keymap.c +++ b/keyboards/planck/keymaps/sgoodwin/keymap.c | |||
| @@ -198,13 +198,13 @@ void matrix_init_user(void) { | |||
| 198 | 198 | ||
| 199 | #ifdef AUDIO_ENABLE | 199 | #ifdef AUDIO_ENABLE |
| 200 | 200 | ||
| 201 | void startup_user() | 201 | void startup_user(void) |
| 202 | { | 202 | { |
| 203 | _delay_ms(20); // gets rid of tick | 203 | _delay_ms(20); // gets rid of tick |
| 204 | PLAY_SONG(tone_startup); | 204 | PLAY_SONG(tone_startup); |
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | void shutdown_user() | 207 | void shutdown_user(void) |
| 208 | { | 208 | { |
| 209 | PLAY_SONG(tone_goodbye); | 209 | PLAY_SONG(tone_goodbye); |
| 210 | _delay_ms(150); | 210 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/smt/keymap.c b/keyboards/planck/keymaps/smt/keymap.c index 3c6eb6e74c..6320e11fcf 100644 --- a/keyboards/planck/keymaps/smt/keymap.c +++ b/keyboards/planck/keymaps/smt/keymap.c | |||
| @@ -230,13 +230,13 @@ void matrix_init_user(void) { | |||
| 230 | 230 | ||
| 231 | #ifdef AUDIO_ENABLE | 231 | #ifdef AUDIO_ENABLE |
| 232 | 232 | ||
| 233 | void startup_user() | 233 | void startup_user(void) |
| 234 | { | 234 | { |
| 235 | _delay_ms(20); // gets rid of tick | 235 | _delay_ms(20); // gets rid of tick |
| 236 | PLAY_SONG(tone_startup); | 236 | PLAY_SONG(tone_startup); |
| 237 | } | 237 | } |
| 238 | 238 | ||
| 239 | void shutdown_user() | 239 | void shutdown_user(void) |
| 240 | { | 240 | { |
| 241 | PLAY_SONG(tone_goodbye); | 241 | PLAY_SONG(tone_goodbye); |
| 242 | _delay_ms(150); | 242 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/that_canadian/keymap.c b/keyboards/planck/keymaps/that_canadian/keymap.c index bb9ff261ee..9f3a415fa3 100644 --- a/keyboards/planck/keymaps/that_canadian/keymap.c +++ b/keyboards/planck/keymaps/that_canadian/keymap.c | |||
| @@ -182,13 +182,13 @@ void matrix_init_user(void) { | |||
| 182 | 182 | ||
| 183 | #ifdef AUDIO_ENABLE | 183 | #ifdef AUDIO_ENABLE |
| 184 | 184 | ||
| 185 | void startup_user() | 185 | void startup_user(void) |
| 186 | { | 186 | { |
| 187 | _delay_ms(20); // gets rid of tick | 187 | _delay_ms(20); // gets rid of tick |
| 188 | PLAY_SONG(tone_startup); | 188 | PLAY_SONG(tone_startup); |
| 189 | } | 189 | } |
| 190 | 190 | ||
| 191 | void shutdown_user() | 191 | void shutdown_user(void) |
| 192 | { | 192 | { |
| 193 | PLAY_SONG(tone_goodbye); | 193 | PLAY_SONG(tone_goodbye); |
| 194 | _delay_ms(150); | 194 | _delay_ms(150); |
diff --git a/keyboards/planck/keymaps/vaire/keymap.c b/keyboards/planck/keymaps/vaire/keymap.c index 3b411e6185..05f7f4a520 100644 --- a/keyboards/planck/keymaps/vaire/keymap.c +++ b/keyboards/planck/keymaps/vaire/keymap.c | |||
| @@ -124,13 +124,13 @@ void led_set_user(uint8_t usb_led) | |||
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | 126 | ||
| 127 | void startup_user() | 127 | void startup_user(void) |
| 128 | { | 128 | { |
| 129 | _delay_ms(30); // gets rid of tick | 129 | _delay_ms(30); // gets rid of tick |
| 130 | PLAY_SONG(tone_my_startup); | 130 | PLAY_SONG(tone_my_startup); |
| 131 | } | 131 | } |
| 132 | 132 | ||
| 133 | void shutdown_user() | 133 | void shutdown_user(void) |
| 134 | { | 134 | { |
| 135 | PLAY_SONG(tone_my_goodbye); | 135 | PLAY_SONG(tone_my_goodbye); |
| 136 | _delay_ms(3000); | 136 | _delay_ms(3000); |
diff --git a/keyboards/planck/keymaps/yttyx/keymap.c b/keyboards/planck/keymaps/yttyx/keymap.c index 8c989da8a8..1201163ac7 100644 --- a/keyboards/planck/keymaps/yttyx/keymap.c +++ b/keyboards/planck/keymaps/yttyx/keymap.c | |||
| @@ -90,6 +90,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 90 | 90 | ||
| 91 | }; | 91 | }; |
| 92 | 92 | ||
| 93 | void matrix_init_user() { | 93 | void matrix_init_user(void) { |
| 94 | steno_set_mode(STENO_MODE_GEMINI); | 94 | steno_set_mode(STENO_MODE_GEMINI); |
| 95 | } | 95 | } |
diff --git a/keyboards/planck/keymaps/zach/zach_common_functions.c b/keyboards/planck/keymaps/zach/zach_common_functions.c index 97b650d9cb..6ad1c7bed3 100644 --- a/keyboards/planck/keymaps/zach/zach_common_functions.c +++ b/keyboards/planck/keymaps/zach/zach_common_functions.c | |||
| @@ -427,7 +427,7 @@ void play_goodbye_tone(void){ | |||
| 427 | _delay_ms(150); | 427 | _delay_ms(150); |
| 428 | } | 428 | } |
| 429 | 429 | ||
| 430 | void shutdown_user(){ | 430 | void shutdown_user(void){ |
| 431 | PLAY_SONG(tone_goodbye); | 431 | PLAY_SONG(tone_goodbye); |
| 432 | _delay_ms(150); | 432 | _delay_ms(150); |
| 433 | stop_all_notes(); | 433 | stop_all_notes(); |
diff --git a/keyboards/preonic/keymaps/0xdec/keymap.c b/keyboards/preonic/keymaps/0xdec/keymap.c index 4cf3a21049..fafa5c4460 100644 --- a/keyboards/preonic/keymaps/0xdec/keymap.c +++ b/keyboards/preonic/keymaps/0xdec/keymap.c | |||
| @@ -98,11 +98,11 @@ float tone_game[][2] = { | |||
| 98 | float tone_goodbye[][2] = SONG(GOODBYE_SOUND); | 98 | float tone_goodbye[][2] = SONG(GOODBYE_SOUND); |
| 99 | float music_scale[][2] = SONG(MUSIC_SCALE_SOUND); | 99 | float music_scale[][2] = SONG(MUSIC_SCALE_SOUND); |
| 100 | 100 | ||
| 101 | void startup_user() { | 101 | void startup_user(void) { |
| 102 | _delay_ms(20); // gets rid of tick | 102 | _delay_ms(20); // gets rid of tick |
| 103 | PLAY_SONG(tone_startup); | 103 | PLAY_SONG(tone_startup); |
| 104 | } | 104 | } |
| 105 | void shutdown_user() { | 105 | void shutdown_user(void) { |
| 106 | PLAY_SONG(tone_goodbye); | 106 | PLAY_SONG(tone_goodbye); |
| 107 | _delay_ms(150); | 107 | _delay_ms(150); |
| 108 | stop_all_notes(); | 108 | stop_all_notes(); |
diff --git a/keyboards/preonic/keymaps/bucktooth/keymap.c b/keyboards/preonic/keymaps/bucktooth/keymap.c index b68a93ba3c..593083f201 100644 --- a/keyboards/preonic/keymaps/bucktooth/keymap.c +++ b/keyboards/preonic/keymaps/bucktooth/keymap.c | |||
| @@ -91,12 +91,12 @@ void matrix_init_user(void) { | |||
| 91 | 91 | ||
| 92 | #ifdef AUDIO_ENABLE | 92 | #ifdef AUDIO_ENABLE |
| 93 | 93 | ||
| 94 | void startup_user() | 94 | void startup_user(void) |
| 95 | { | 95 | { |
| 96 | PLAY_SONG(tone_startup); | 96 | PLAY_SONG(tone_startup); |
| 97 | } | 97 | } |
| 98 | 98 | ||
| 99 | void shutdown_user() | 99 | void shutdown_user(void) |
| 100 | { | 100 | { |
| 101 | PLAY_SONG(tone_goodbye); | 101 | PLAY_SONG(tone_goodbye); |
| 102 | stop_all_notes(); | 102 | stop_all_notes(); |
diff --git a/keyboards/preonic/keymaps/jacwib/keymap.c b/keyboards/preonic/keymaps/jacwib/keymap.c index 774b2a0c4e..9de460c2a4 100644 --- a/keyboards/preonic/keymaps/jacwib/keymap.c +++ b/keyboards/preonic/keymaps/jacwib/keymap.c | |||
| @@ -258,13 +258,13 @@ void matrix_init_user(void) { | |||
| 258 | 258 | ||
| 259 | #ifdef AUDIO_ENABLE | 259 | #ifdef AUDIO_ENABLE |
| 260 | 260 | ||
| 261 | void startup_user() | 261 | void startup_user(void) |
| 262 | { | 262 | { |
| 263 | _delay_ms(20); // gets rid of tick | 263 | _delay_ms(20); // gets rid of tick |
| 264 | PLAY_SONG(tone_startup); | 264 | PLAY_SONG(tone_startup); |
| 265 | } | 265 | } |
| 266 | 266 | ||
| 267 | void shutdown_user() | 267 | void shutdown_user(void) |
| 268 | { | 268 | { |
| 269 | PLAY_SONG(tone_goodbye); | 269 | PLAY_SONG(tone_goodbye); |
| 270 | _delay_ms(150); | 270 | _delay_ms(150); |
diff --git a/keyboards/preonic/keymaps/mverteuil/keymap.c b/keyboards/preonic/keymaps/mverteuil/keymap.c index 332e2877b2..e81f38362a 100644 --- a/keyboards/preonic/keymaps/mverteuil/keymap.c +++ b/keyboards/preonic/keymaps/mverteuil/keymap.c | |||
| @@ -242,7 +242,7 @@ float s_audio_on[][2] = AUDIO_ON_SONG; | |||
| 242 | float s_layer_lower[][2] = LAYER_LOWER_SONG; | 242 | float s_layer_lower[][2] = LAYER_LOWER_SONG; |
| 243 | float s_layer_raise[][2] = LAYER_RAISE_SONG; | 243 | float s_layer_raise[][2] = LAYER_RAISE_SONG; |
| 244 | 244 | ||
| 245 | void audio_on_user() { PLAY_SONG(s_audio_on); }; | 245 | void audio_on_user(void) { PLAY_SONG(s_audio_on); }; |
| 246 | 246 | ||
| 247 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 247 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| 248 | switch (keycode) { | 248 | switch (keycode) { |
diff --git a/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c b/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c index c6cad0fe5f..cab5cdcb05 100644 --- a/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c +++ b/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c | |||
| @@ -218,7 +218,7 @@ float s_audio_on[][2] = AUDIO_ON_SONG; | |||
| 218 | float s_layer_lower[][2] = LAYER_LOWER_SONG; | 218 | float s_layer_lower[][2] = LAYER_LOWER_SONG; |
| 219 | float s_layer_raise[][2] = LAYER_RAISE_SONG; | 219 | float s_layer_raise[][2] = LAYER_RAISE_SONG; |
| 220 | 220 | ||
| 221 | void audio_on_user() { PLAY_SONG(s_audio_on); }; | 221 | void audio_on_user(void) { PLAY_SONG(s_audio_on); }; |
| 222 | 222 | ||
| 223 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 223 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| 224 | switch (keycode) { | 224 | switch (keycode) { |
diff --git a/keyboards/preonic/keymaps/nikchi/keymap.c b/keyboards/preonic/keymaps/nikchi/keymap.c index 9510791d2a..e14f8f0052 100644 --- a/keyboards/preonic/keymaps/nikchi/keymap.c +++ b/keyboards/preonic/keymaps/nikchi/keymap.c | |||
| @@ -186,13 +186,13 @@ void matrix_init_user(void) { | |||
| 186 | 186 | ||
| 187 | #ifdef AUDIO_ENABLE | 187 | #ifdef AUDIO_ENABLE |
| 188 | 188 | ||
| 189 | void startup_user() | 189 | void startup_user(void) |
| 190 | { | 190 | { |
| 191 | _delay_ms(20); // gets rid of tick | 191 | _delay_ms(20); // gets rid of tick |
| 192 | PLAY_SONG(tone_startup); | 192 | PLAY_SONG(tone_startup); |
| 193 | } | 193 | } |
| 194 | 194 | ||
| 195 | void shutdown_user() | 195 | void shutdown_user(void) |
| 196 | { | 196 | { |
| 197 | PLAY_SONG(tone_goodbye); | 197 | PLAY_SONG(tone_goodbye); |
| 198 | _delay_ms(150); | 198 | _delay_ms(150); |
diff --git a/keyboards/preonic/keymaps/smt/keymap.c b/keyboards/preonic/keymaps/smt/keymap.c index 80c704de32..7dd9545261 100644 --- a/keyboards/preonic/keymaps/smt/keymap.c +++ b/keyboards/preonic/keymaps/smt/keymap.c | |||
| @@ -251,13 +251,13 @@ void matrix_init_user(void) { | |||
| 251 | 251 | ||
| 252 | #ifdef AUDIO_ENABLE | 252 | #ifdef AUDIO_ENABLE |
| 253 | 253 | ||
| 254 | void startup_user() | 254 | void startup_user(void) |
| 255 | { | 255 | { |
| 256 | _delay_ms(20); // gets rid of tick | 256 | _delay_ms(20); // gets rid of tick |
| 257 | PLAY_SONG(tone_startup); | 257 | PLAY_SONG(tone_startup); |
| 258 | } | 258 | } |
| 259 | 259 | ||
| 260 | void shutdown_user() | 260 | void shutdown_user(void) |
| 261 | { | 261 | { |
| 262 | PLAY_SONG(tone_goodbye); | 262 | PLAY_SONG(tone_goodbye); |
| 263 | _delay_ms(150); | 263 | _delay_ms(150); |
diff --git a/keyboards/preonic/keymaps/that_canadian/keymap.c b/keyboards/preonic/keymaps/that_canadian/keymap.c index 0c2a05fa14..8af796821c 100644 --- a/keyboards/preonic/keymaps/that_canadian/keymap.c +++ b/keyboards/preonic/keymaps/that_canadian/keymap.c | |||
| @@ -210,13 +210,13 @@ void matrix_init_user(void) { | |||
| 210 | 210 | ||
| 211 | #ifdef AUDIO_ENABLE | 211 | #ifdef AUDIO_ENABLE |
| 212 | 212 | ||
| 213 | void startup_user() | 213 | void startup_user(void) |
| 214 | { | 214 | { |
| 215 | _delay_ms(20); // gets rid of tick | 215 | _delay_ms(20); // gets rid of tick |
| 216 | PLAY_SONG(tone_startup); | 216 | PLAY_SONG(tone_startup); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void shutdown_user() | 219 | void shutdown_user(void) |
| 220 | { | 220 | { |
| 221 | PLAY_SONG(tone_goodbye); | 221 | PLAY_SONG(tone_goodbye); |
| 222 | _delay_ms(150); | 222 | _delay_ms(150); |
diff --git a/keyboards/preonic/keymaps/trigotometry/keymap.c b/keyboards/preonic/keymaps/trigotometry/keymap.c index aa734328b5..419f7a10ba 100644 --- a/keyboards/preonic/keymaps/trigotometry/keymap.c +++ b/keyboards/preonic/keymaps/trigotometry/keymap.c | |||
| @@ -157,7 +157,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 157 | // {NOTE_E5, 8} | 157 | // {NOTE_E5, 8} |
| 158 | // }; | 158 | // }; |
| 159 | 159 | ||
| 160 | // void startup_user() | 160 | // void startup_user(void) |
| 161 | // { | 161 | // { |
| 162 | // _delay_ms(20); // gets rid of tick | 162 | // _delay_ms(20); // gets rid of tick |
| 163 | // PLAY_SONG(tone_startup); | 163 | // PLAY_SONG(tone_startup); |
diff --git a/keyboards/preonic/keymaps/zach/zach_common_functions.c b/keyboards/preonic/keymaps/zach/zach_common_functions.c index 97b650d9cb..6ad1c7bed3 100644 --- a/keyboards/preonic/keymaps/zach/zach_common_functions.c +++ b/keyboards/preonic/keymaps/zach/zach_common_functions.c | |||
| @@ -427,7 +427,7 @@ void play_goodbye_tone(void){ | |||
| 427 | _delay_ms(150); | 427 | _delay_ms(150); |
| 428 | } | 428 | } |
| 429 | 429 | ||
| 430 | void shutdown_user(){ | 430 | void shutdown_user(void){ |
| 431 | PLAY_SONG(tone_goodbye); | 431 | PLAY_SONG(tone_goodbye); |
| 432 | _delay_ms(150); | 432 | _delay_ms(150); |
| 433 | stop_all_notes(); | 433 | stop_all_notes(); |
diff --git a/keyboards/reviung/reviung41/keymaps/ciutadellla/keymap.c b/keyboards/reviung/reviung41/keymaps/ciutadellla/keymap.c index d6962664b1..98dda7fe19 100644 --- a/keyboards/reviung/reviung41/keymaps/ciutadellla/keymap.c +++ b/keyboards/reviung/reviung41/keymaps/ciutadellla/keymap.c | |||
| @@ -132,7 +132,7 @@ | |||
| 132 | }; | 132 | }; |
| 133 | 133 | ||
| 134 | 134 | ||
| 135 | void matrix_init_user(){ | 135 | void matrix_init_user(void){ |
| 136 | set_unicode_input_mode(UNICODE_MODE_MACOS); | 136 | set_unicode_input_mode(UNICODE_MODE_MACOS); |
| 137 | } | 137 | } |
| 138 | 138 | ||
diff --git a/keyboards/rgbkb/sol3/rev1/rev1.c b/keyboards/rgbkb/sol3/rev1/rev1.c index c66e145e80..de5836e061 100644 --- a/keyboards/rgbkb/sol3/rev1/rev1.c +++ b/keyboards/rgbkb/sol3/rev1/rev1.c | |||
| @@ -105,7 +105,7 @@ bool touch_encoder_tapped_kb(uint8_t index, uint8_t section) { | |||
| 105 | return false; | 105 | return false; |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | void matrix_slave_scan_kb() { | 108 | void matrix_slave_scan_kb(void) { |
| 109 | dip_switch_read(false); | 109 | dip_switch_read(false); |
| 110 | matrix_slave_scan_user(); | 110 | matrix_slave_scan_user(); |
| 111 | } | 111 | } |
diff --git a/keyboards/sekigon/grs_70ec/grs_70ec.c b/keyboards/sekigon/grs_70ec/grs_70ec.c index e8791c00c1..e855a80dcf 100644 --- a/keyboards/sekigon/grs_70ec/grs_70ec.c +++ b/keyboards/sekigon/grs_70ec/grs_70ec.c | |||
| @@ -23,7 +23,7 @@ void led_on(void) { | |||
| 23 | 23 | ||
| 24 | void led_off(void) { writePinLow(D2); } | 24 | void led_off(void) { writePinLow(D2); } |
| 25 | 25 | ||
| 26 | void keyboard_post_init_kb() { | 26 | void keyboard_post_init_kb(void) { |
| 27 | led_on(); | 27 | led_on(); |
| 28 | 28 | ||
| 29 | keyboard_post_init_user(); | 29 | keyboard_post_init_user(); |
diff --git a/keyboards/sneakbox/aliceclone/aliceclone.c b/keyboards/sneakbox/aliceclone/aliceclone.c index 9457c641df..9cfb4e551d 100644 --- a/keyboards/sneakbox/aliceclone/aliceclone.c +++ b/keyboards/sneakbox/aliceclone/aliceclone.c | |||
| @@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 17 | 17 | ||
| 18 | #include "aliceclone.h" | 18 | #include "aliceclone.h" |
| 19 | 19 | ||
| 20 | void keyboard_pre_init_kb() { | 20 | void keyboard_pre_init_kb(void) { |
| 21 | setPinOutput(D7); | 21 | setPinOutput(D7); |
| 22 | setPinOutput(D6); | 22 | setPinOutput(D6); |
| 23 | setPinOutput(D4); | 23 | setPinOutput(D4); |
diff --git a/keyboards/splitkb/kyria/keymaps/cwebster2/keymap.c b/keyboards/splitkb/kyria/keymaps/cwebster2/keymap.c index 1abf865010..9c31e2617c 100644 --- a/keyboards/splitkb/kyria/keymaps/cwebster2/keymap.c +++ b/keyboards/splitkb/kyria/keymaps/cwebster2/keymap.c | |||
| @@ -252,7 +252,7 @@ bool led_update_user(led_t led_state) { | |||
| 252 | #endif | 252 | #endif |
| 253 | 253 | ||
| 254 | #ifdef OLED_ENABLE | 254 | #ifdef OLED_ENABLE |
| 255 | void suspend_power_down_user() { | 255 | void suspend_power_down_user(void) { |
| 256 | oled_clear(); | 256 | oled_clear(); |
| 257 | oled_off(); | 257 | oled_off(); |
| 258 | } | 258 | } |
diff --git a/keyboards/stenokeyboards/the_uni/keymaps/default/keymap.c b/keyboards/stenokeyboards/the_uni/keymaps/default/keymap.c index 492c7a3c94..74aa207bd5 100644 --- a/keyboards/stenokeyboards/the_uni/keymaps/default/keymap.c +++ b/keyboards/stenokeyboards/the_uni/keymaps/default/keymap.c | |||
| @@ -31,6 +31,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 31 | 31 | ||
| 32 | }; | 32 | }; |
| 33 | 33 | ||
| 34 | void matrix_init_user() { | 34 | void matrix_init_user(void) { |
| 35 | steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT | 35 | steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT |
| 36 | } | 36 | } |
diff --git a/keyboards/thevankeyboards/minivan/keymaps/josjoha/keymap.c b/keyboards/thevankeyboards/minivan/keymaps/josjoha/keymap.c index 92356446fd..a1d82e9923 100644 --- a/keyboards/thevankeyboards/minivan/keymaps/josjoha/keymap.c +++ b/keyboards/thevankeyboards/minivan/keymaps/josjoha/keymap.c | |||
| @@ -288,7 +288,7 @@ void speed_led (int speed) { | |||
| 288 | 288 | ||
| 289 | 289 | ||
| 290 | // do this in one place to handle left/right leds being off here | 290 | // do this in one place to handle left/right leds being off here |
| 291 | void isolate_rgblight_set () { | 291 | void isolate_rgblight_set (void) { |
| 292 | 292 | ||
| 293 | # ifdef RGBLIGHT_ENABLE | 293 | # ifdef RGBLIGHT_ENABLE |
| 294 | if (!leds_on) { // left/right leds are off | 294 | if (!leds_on) { // left/right leds are off |
diff --git a/keyboards/wilba_tech/wt65_xt/keymaps/zunger/keymap.c b/keyboards/wilba_tech/wt65_xt/keymaps/zunger/keymap.c index 45778e1698..b0dfa3e03c 100644 --- a/keyboards/wilba_tech/wt65_xt/keymaps/zunger/keymap.c +++ b/keyboards/wilba_tech/wt65_xt/keymaps/zunger/keymap.c | |||
| @@ -435,7 +435,7 @@ void toggle_os_mode(void) { | |||
| 435 | set_os_mode((os_mode + 1) % _OS_MODES_MAX); | 435 | set_os_mode((os_mode + 1) % _OS_MODES_MAX); |
| 436 | } | 436 | } |
| 437 | 437 | ||
| 438 | void keyboard_post_init_user() { | 438 | void keyboard_post_init_user(void) { |
| 439 | set_os_mode(_WINDOWS); | 439 | set_os_mode(_WINDOWS); |
| 440 | } | 440 | } |
| 441 | 441 | ||
diff --git a/keyboards/wilba_tech/wt70_jb/wt70_jb.c b/keyboards/wilba_tech/wt70_jb/wt70_jb.c index d4f2c5c8da..df44b2f9b8 100644 --- a/keyboards/wilba_tech/wt70_jb/wt70_jb.c +++ b/keyboards/wilba_tech/wt70_jb/wt70_jb.c | |||
| @@ -49,7 +49,7 @@ void via_init_kb(void) | |||
| 49 | } | 49 | } |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | void keyboard_post_init_kb() { | 52 | void keyboard_post_init_kb(void) { |
| 53 | // This is a workaround to ensure "EEPROM cleared" PCBs will | 53 | // This is a workaround to ensure "EEPROM cleared" PCBs will |
| 54 | // start with the RGB test mode, essential for testing LEDs. | 54 | // start with the RGB test mode, essential for testing LEDs. |
| 55 | if ( g_first_execution ) { | 55 | if ( g_first_execution ) { |
diff --git a/keyboards/woodkeys/meira/TWIlib.c b/keyboards/woodkeys/meira/TWIlib.c index 8f5658fcdb..89e03a73d4 100755 --- a/keyboards/woodkeys/meira/TWIlib.c +++ b/keyboards/woodkeys/meira/TWIlib.c | |||
| @@ -24,7 +24,7 @@ int RXBuffLen; // The total number of bytes to read (should be less than RXMAXBU | |||
| 24 | 24 | ||
| 25 | TWIInfoStruct TWIInfo; | 25 | TWIInfoStruct TWIInfo; |
| 26 | 26 | ||
| 27 | void TWIInit() | 27 | void TWIInit(void) |
| 28 | { | 28 | { |
| 29 | TWIInfo.mode = Ready; | 29 | TWIInfo.mode = Ready; |
| 30 | TWIInfo.errorCode = 0xFF; | 30 | TWIInfo.errorCode = 0xFF; |
| @@ -37,7 +37,7 @@ void TWIInit() | |||
| 37 | TWCR = (1 << TWIE) | (1 << TWEN); | 37 | TWCR = (1 << TWIE) | (1 << TWEN); |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | uint8_t isTWIReady() | 40 | uint8_t isTWIReady(void) |
| 41 | { | 41 | { |
| 42 | if ( (TWIInfo.mode == Ready) | (TWIInfo.mode == RepeatedStartSent) ) | 42 | if ( (TWIInfo.mode == Ready) | (TWIInfo.mode == RepeatedStartSent) ) |
| 43 | { | 43 | { |
diff --git a/keyboards/woodkeys/meira/lighting.c b/keyboards/woodkeys/meira/lighting.c index 1a3c954bcf..6cbe101dbc 100755 --- a/keyboards/woodkeys/meira/lighting.c +++ b/keyboards/woodkeys/meira/lighting.c | |||
| @@ -56,14 +56,14 @@ void set_backlight_by_keymap(uint8_t col, uint8_t row){ | |||
| 56 | // activateLED(matrix, led_col, led_row, 255); | 56 | // activateLED(matrix, led_col, led_row, 255); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | void force_issi_refresh(){ | 59 | void force_issi_refresh(void){ |
| 60 | issi_devices[0]->led_dirty = true; | 60 | issi_devices[0]->led_dirty = true; |
| 61 | update_issi(0, true); | 61 | update_issi(0, true); |
| 62 | issi_devices[3]->led_dirty = true; | 62 | issi_devices[3]->led_dirty = true; |
| 63 | update_issi(3, true); | 63 | update_issi(3, true); |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | void led_test(){ | 66 | void led_test(void){ |
| 67 | #ifdef WATCHDOG_ENABLE | 67 | #ifdef WATCHDOG_ENABLE |
| 68 | // This test take a long time to run, disable the WTD until its complete | 68 | // This test take a long time to run, disable the WTD until its complete |
| 69 | wdt_disable(); | 69 | wdt_disable(); |
diff --git a/keyboards/woodkeys/meira/meira.c b/keyboards/woodkeys/meira/meira.c index 87a6d11b4e..d8c04859e2 100644 --- a/keyboards/woodkeys/meira/meira.c +++ b/keyboards/woodkeys/meira/meira.c | |||
| @@ -86,7 +86,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | |||
| 86 | return process_record_user(keycode, record); | 86 | return process_record_user(keycode, record); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | void reset_keyboard_kb(){ | 89 | void reset_keyboard_kb(void){ |
| 90 | #ifdef WATCHDOG_ENABLE | 90 | #ifdef WATCHDOG_ENABLE |
| 91 | MCUSR = 0; | 91 | MCUSR = 0; |
| 92 | wdt_disable(); | 92 | wdt_disable(); |
diff --git a/keyboards/xiudi/xd75/keymaps/colinta/keymap.c b/keyboards/xiudi/xd75/keymaps/colinta/keymap.c index 5cdbdd6c74..3cf286aeb5 100644 --- a/keyboards/xiudi/xd75/keymaps/colinta/keymap.c +++ b/keyboards/xiudi/xd75/keymaps/colinta/keymap.c | |||
| @@ -205,7 +205,7 @@ void taphold_tapped(uint8_t index, bool pressed) { | |||
| 205 | } | 205 | } |
| 206 | } | 206 | } |
| 207 | 207 | ||
| 208 | void matrix_scan_user() { | 208 | void matrix_scan_user(void) { |
| 209 | for (uint8_t index = 0 ; index < TH_EVENTS_COUNT ; ++index ) { | 209 | for (uint8_t index = 0 ; index < TH_EVENTS_COUNT ; ++index ) { |
| 210 | tap_hold_t *th_event = &th_events[index]; | 210 | tap_hold_t *th_event = &th_events[index]; |
| 211 | if ( th_event->is_pressed && timer_elapsed(th_event->timer) > LONGPRESS_DELAY) { | 211 | if ( th_event->is_pressed && timer_elapsed(th_event->timer) > LONGPRESS_DELAY) { |
diff --git a/keyboards/xiudi/xd96/keymaps/uuupah/keymap.c b/keyboards/xiudi/xd96/keymaps/uuupah/keymap.c index 5fb6ed2b59..b554860c20 100644 --- a/keyboards/xiudi/xd96/keymaps/uuupah/keymap.c +++ b/keyboards/xiudi/xd96/keymaps/uuupah/keymap.c | |||
| @@ -19,7 +19,7 @@ | |||
| 19 | #define LT_ENT2 LT(2,KC_ENT) | 19 | #define LT_ENT2 LT(2,KC_ENT) |
| 20 | 20 | ||
| 21 | #ifdef RGBLIGHT_ENABLE | 21 | #ifdef RGBLIGHT_ENABLE |
| 22 | void matrix_init_user() { | 22 | void matrix_init_user(void) { |
| 23 | rgblight_disable(); | 23 | rgblight_disable(); |
| 24 | } | 24 | } |
| 25 | #endif | 25 | #endif |
