summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzvecr <git@zvecr.com>2024-07-11 11:03:11 +0100
committerzvecr <git@zvecr.com>2024-07-11 11:03:11 +0100
commitb066c86e432347e8abd52eb0faffc3db26dd4ede (patch)
tree307533a798f04119f0b12595017d1ad0c0d079cf
parent494af672ced0f10bf5c60f9d5a8dac68d579640f (diff)
bad_kb_funcs1
-rw-r--r--keyboards/40percentclub/ut47/ut47.c2
-rw-r--r--keyboards/acheron/athena/alpha/alpha.c2
-rwxr-xr-xkeyboards/acheron/elongate/delta/delta.c2
-rw-r--r--keyboards/clueboard/2x1800/2021/2021.c2
-rw-r--r--keyboards/converter/xmk/xmk.c2
-rw-r--r--keyboards/durgod/k310/k310.c2
-rw-r--r--keyboards/durgod/k320/k320.c2
-rw-r--r--keyboards/evyd13/gud70/gud70.c2
-rw-r--r--keyboards/handwired/aek64/aek64.c13
-rw-r--r--keyboards/handwired/battleship_gamepad/battleship_gamepad.c2
-rw-r--r--keyboards/ibm/model_m/mschwingen/mschwingen.c2
-rw-r--r--keyboards/idb/idb_60/idb_60.c2
-rw-r--r--keyboards/kbdfans/phaseone/phaseone.c2
-rw-r--r--keyboards/matrix/falcon/falcon.c1
-rw-r--r--keyboards/mechlovin/zed1800/zed1800.c4
-rw-r--r--keyboards/monsgeek/m3/m3.c2
-rw-r--r--keyboards/system76/launch_1/launch_1.c6
-rw-r--r--keyboards/unicomp/spacesaver_m_post_2013/overnumpad_1xb/overnumpad_1xb.c2
-rw-r--r--keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/overnumpad_1xb.c2
-rw-r--r--keyboards/wilba_tech/wt70_jb/wt70_jb.c2
-rw-r--r--keyboards/yandrstudio/nz64/nz64.c4
-rw-r--r--keyboards/yandrstudio/nz67v2/nz67v2.c4
22 files changed, 55 insertions, 9 deletions
diff --git a/keyboards/40percentclub/ut47/ut47.c b/keyboards/40percentclub/ut47/ut47.c
index d5675e1047..867d8c0202 100644
--- a/keyboards/40percentclub/ut47/ut47.c
+++ b/keyboards/40percentclub/ut47/ut47.c
@@ -19,6 +19,8 @@
19 19
20void matrix_init_kb(void) { 20void matrix_init_kb(void) {
21 uart_init(9600); 21 uart_init(9600);
22
23 matrix_init_user();
22} 24}
23#endif 25#endif
24 26
diff --git a/keyboards/acheron/athena/alpha/alpha.c b/keyboards/acheron/athena/alpha/alpha.c
index 8fe47eff82..4dea24b93d 100644
--- a/keyboards/acheron/athena/alpha/alpha.c
+++ b/keyboards/acheron/athena/alpha/alpha.c
@@ -24,6 +24,8 @@ void board_init(void) {
24void keyboard_post_init_kb(void){ 24void keyboard_post_init_kb(void){
25 // Defining the backlight pin (A6) as an floating (no pullup or pulldown resistor) opendrain output pin 25 // Defining the backlight pin (A6) as an floating (no pullup or pulldown resistor) opendrain output pin
26 palSetLineMode(BACKLIGHT_PIN, PAL_MODE_ALTERNATE(2) | PAL_STM32_OTYPE_OPENDRAIN | PAL_STM32_OSPEED_HIGHEST | PAL_STM32_PUPDR_FLOATING); 26 palSetLineMode(BACKLIGHT_PIN, PAL_MODE_ALTERNATE(2) | PAL_STM32_OTYPE_OPENDRAIN | PAL_STM32_OSPEED_HIGHEST | PAL_STM32_PUPDR_FLOATING);
27
28 keyboard_post_init_user();
27} 29}
28 30
29void led_init_ports(void) { 31void led_init_ports(void) {
diff --git a/keyboards/acheron/elongate/delta/delta.c b/keyboards/acheron/elongate/delta/delta.c
index 98b60bae61..839151521a 100755
--- a/keyboards/acheron/elongate/delta/delta.c
+++ b/keyboards/acheron/elongate/delta/delta.c
@@ -74,4 +74,6 @@ layer_state_t layer_state_set_kb(layer_state_t state) {
74// Since the keyboard starts at layer 0, the init function starts LED4 as lit up. 74// Since the keyboard starts at layer 0, the init function starts LED4 as lit up.
75void keyboard_post_init_kb(void){ 75void keyboard_post_init_kb(void){
76 gpio_write_pin(LED4_PIN, 0); 76 gpio_write_pin(LED4_PIN, 0);
77
78 keyboard_post_init_user();
77} 79}
diff --git a/keyboards/clueboard/2x1800/2021/2021.c b/keyboards/clueboard/2x1800/2021/2021.c
index 2a3f1304c7..e575a7544c 100644
--- a/keyboards/clueboard/2x1800/2021/2021.c
+++ b/keyboards/clueboard/2x1800/2021/2021.c
@@ -90,6 +90,8 @@ void matrix_init_kb(void) {
90#elif defined(DRAWING_TOY_MODE) 90#elif defined(DRAWING_TOY_MODE)
91 max7219_set_led(0, 0, true); 91 max7219_set_led(0, 0, true);
92#endif 92#endif
93
94 matrix_init_user();
93} 95}
94 96
95__attribute__ ((weak)) 97__attribute__ ((weak))
diff --git a/keyboards/converter/xmk/xmk.c b/keyboards/converter/xmk/xmk.c
index e0df96fc2d..8a24e5f964 100644
--- a/keyboards/converter/xmk/xmk.c
+++ b/keyboards/converter/xmk/xmk.c
@@ -10,5 +10,7 @@ void keyboard_post_init_kb(void) {
10 debug_enable=true; 10 debug_enable=true;
11 debug_matrix=true; 11 debug_matrix=true;
12 debug_keyboard=true; 12 debug_keyboard=true;
13
14 keyboard_post_init_user();
13} 15}
14#endif 16#endif
diff --git a/keyboards/durgod/k310/k310.c b/keyboards/durgod/k310/k310.c
index 7879b13f4e..c176587ef2 100644
--- a/keyboards/durgod/k310/k310.c
+++ b/keyboards/durgod/k310/k310.c
@@ -87,4 +87,6 @@ void keyboard_pre_init_kb(void) {
87 bootloader_jump(); 87 bootloader_jump();
88 } 88 }
89#endif 89#endif
90
91 keyboard_pre_init_user();
90} 92}
diff --git a/keyboards/durgod/k320/k320.c b/keyboards/durgod/k320/k320.c
index 0a544fe318..50b87d7241 100644
--- a/keyboards/durgod/k320/k320.c
+++ b/keyboards/durgod/k320/k320.c
@@ -87,4 +87,6 @@ void keyboard_pre_init_kb(void) {
87 bootloader_jump(); 87 bootloader_jump();
88 } 88 }
89#endif 89#endif
90
91 keyboard_pre_init_user();
90} 92}
diff --git a/keyboards/evyd13/gud70/gud70.c b/keyboards/evyd13/gud70/gud70.c
index 5c40045521..118c68e566 100644
--- a/keyboards/evyd13/gud70/gud70.c
+++ b/keyboards/evyd13/gud70/gud70.c
@@ -19,4 +19,6 @@ void keyboard_pre_init_kb(void) {
19 // Enable top LED 19 // Enable top LED
20 gpio_set_pin_output(B3); 20 gpio_set_pin_output(B3);
21 gpio_write_pin_low(B3); 21 gpio_write_pin_low(B3);
22
23 keyboard_pre_init_user();
22} 24}
diff --git a/keyboards/handwired/aek64/aek64.c b/keyboards/handwired/aek64/aek64.c
index 130d014616..21589b6910 100644
--- a/keyboards/handwired/aek64/aek64.c
+++ b/keyboards/handwired/aek64/aek64.c
@@ -16,21 +16,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17#include "quantum.h" 17#include "quantum.h"
18 18
19/* 19void keyboard_pre_init_kb(void) {
20 * Hardware function pre initialisation.
21 * See https://docs.qmk.fm/#/custom_quantum_functions?id=example-keyboard_pre_init_user-implementation
22 */
23void keyboard_pre_init_user(void) {
24 // Call the keyboard pre init code.
25
26 // Set our LED pins as output 20 // Set our LED pins as output
27 gpio_set_pin_output(C3); 21 gpio_set_pin_output(C3);
22
23 keyboard_pre_init_user();
28} 24}
29 25
30void matrix_init_kb(void) { 26void matrix_init_kb(void) {
31
32 // Flash the led 1 sec on startup. 27 // Flash the led 1 sec on startup.
33 gpio_write_pin_high(C3); 28 gpio_write_pin_high(C3);
34 wait_ms(1000); 29 wait_ms(1000);
35 gpio_write_pin_low(C3); 30 gpio_write_pin_low(C3);
31
32 matrix_init_user();
36} 33}
diff --git a/keyboards/handwired/battleship_gamepad/battleship_gamepad.c b/keyboards/handwired/battleship_gamepad/battleship_gamepad.c
index 7b5e65a990..6bfcb17fd4 100644
--- a/keyboards/handwired/battleship_gamepad/battleship_gamepad.c
+++ b/keyboards/handwired/battleship_gamepad/battleship_gamepad.c
@@ -19,4 +19,6 @@
19/* joystick button code (thumbstick pressed) */ 19/* joystick button code (thumbstick pressed) */
20void keyboard_pre_init_kb(void) { 20void keyboard_pre_init_kb(void) {
21 gpio_set_pin_input_high(F6); 21 gpio_set_pin_input_high(F6);
22
23 keyboard_pre_init_user();
22} 24}
diff --git a/keyboards/ibm/model_m/mschwingen/mschwingen.c b/keyboards/ibm/model_m/mschwingen/mschwingen.c
index 7112ab63a5..11407d1206 100644
--- a/keyboards/ibm/model_m/mschwingen/mschwingen.c
+++ b/keyboards/ibm/model_m/mschwingen/mschwingen.c
@@ -114,6 +114,8 @@ void keyboard_pre_init_kb(void) {
114 gpio_set_pin_output(SR_CLK_PIN); 114 gpio_set_pin_output(SR_CLK_PIN);
115 gpio_set_pin_output(SR_DOUT_PIN); // MOSI - unused 115 gpio_set_pin_output(SR_DOUT_PIN); // MOSI - unused
116 gpio_write_pin_low(SR_CLK_PIN); 116 gpio_write_pin_low(SR_CLK_PIN);
117
118 keyboard_pre_init_user();
117} 119}
118 120
119#ifdef KEYBOARD_ibm_model_m_mschwingen_led_ws2812 121#ifdef KEYBOARD_ibm_model_m_mschwingen_led_ws2812
diff --git a/keyboards/idb/idb_60/idb_60.c b/keyboards/idb/idb_60/idb_60.c
index 77485a4273..183892f363 100644
--- a/keyboards/idb/idb_60/idb_60.c
+++ b/keyboards/idb/idb_60/idb_60.c
@@ -3,6 +3,8 @@
3void keyboard_pre_init_kb(void) { 3void keyboard_pre_init_kb(void) {
4 gpio_set_pin_output(C4); 4 gpio_set_pin_output(C4);
5 gpio_set_pin_output(C5); 5 gpio_set_pin_output(C5);
6
7 keyboard_pre_init_user();
6} 8}
7 9
8inline void _idb_60_caps_led_on(void) { 10inline void _idb_60_caps_led_on(void) {
diff --git a/keyboards/kbdfans/phaseone/phaseone.c b/keyboards/kbdfans/phaseone/phaseone.c
index a44e501109..97cc7d2d2a 100644
--- a/keyboards/kbdfans/phaseone/phaseone.c
+++ b/keyboards/kbdfans/phaseone/phaseone.c
@@ -18,4 +18,6 @@
18 18
19void keyboard_pre_init_kb(void) { 19void keyboard_pre_init_kb(void) {
20 gpio_set_pin_output(D4); 20 gpio_set_pin_output(D4);
21
22 keyboard_pre_init_user();
21} 23}
diff --git a/keyboards/matrix/falcon/falcon.c b/keyboards/matrix/falcon/falcon.c
index 74677ab0d1..bfc878a79c 100644
--- a/keyboards/matrix/falcon/falcon.c
+++ b/keyboards/matrix/falcon/falcon.c
@@ -25,4 +25,5 @@ void matrix_init_kb(void)
25 gpio_set_pin_output(LED_POWER_PIN); 25 gpio_set_pin_output(LED_POWER_PIN);
26 gpio_write_pin_high(LED_POWER_PIN); 26 gpio_write_pin_high(LED_POWER_PIN);
27 27
28 matrix_init_user();
28} 29}
diff --git a/keyboards/mechlovin/zed1800/zed1800.c b/keyboards/mechlovin/zed1800/zed1800.c
index e86b4d5a5a..a7b526b7a6 100644
--- a/keyboards/mechlovin/zed1800/zed1800.c
+++ b/keyboards/mechlovin/zed1800/zed1800.c
@@ -27,9 +27,13 @@ RGBLIGHT_LAYERS_LIST(
27 my_numlock_layer, 27 my_numlock_layer,
28 my_scroll_layer 28 my_scroll_layer
29 ); 29 );
30
30void keyboard_post_init_kb(void) { 31void keyboard_post_init_kb(void) {
31 rgblight_layers = my_rgb_layers; 32 rgblight_layers = my_rgb_layers;
33
34 keyboard_post_init_user();
32} 35}
36
33// Activate rgb layer for caps when capslock is enabled 37// Activate rgb layer for caps when capslock is enabled
34bool led_update_kb(led_t led_state) { 38bool led_update_kb(led_t led_state) {
35 rgblight_set_layer_state(0, led_state.caps_lock); 39 rgblight_set_layer_state(0, led_state.caps_lock);
diff --git a/keyboards/monsgeek/m3/m3.c b/keyboards/monsgeek/m3/m3.c
index 04a9f0ca96..1752ddc3b3 100644
--- a/keyboards/monsgeek/m3/m3.c
+++ b/keyboards/monsgeek/m3/m3.c
@@ -140,6 +140,8 @@ void matrix_init_kb(void) {
140 gpio_write_pin_low(LED_MAC_OS_PIN); 140 gpio_write_pin_low(LED_MAC_OS_PIN);
141 gpio_set_pin_output(LED_WIN_LOCK_PIN); // LED3 Win Lock 141 gpio_set_pin_output(LED_WIN_LOCK_PIN); // LED3 Win Lock
142 gpio_write_pin_low(LED_WIN_LOCK_PIN); 142 gpio_write_pin_low(LED_WIN_LOCK_PIN);
143
144 matrix_init_user();
143} 145}
144 146
145void housekeeping_task_kb(void){ 147void housekeeping_task_kb(void){
diff --git a/keyboards/system76/launch_1/launch_1.c b/keyboards/system76/launch_1/launch_1.c
index 7a5000d9ba..630305194e 100644
--- a/keyboards/system76/launch_1/launch_1.c
+++ b/keyboards/system76/launch_1/launch_1.c
@@ -139,6 +139,8 @@ void matrix_init_kb(void) {
139 } 139 }
140 140
141 system76_ec_rgb_layer(layer_state); 141 system76_ec_rgb_layer(layer_state);
142
143 matrix_init_user();
142} 144}
143 145
144void matrix_scan_kb(void) { 146void matrix_scan_kb(void) {
@@ -238,9 +240,11 @@ layer_state_t layer_state_set_kb(layer_state_t layer_state) {
238} 240}
239 241
240#ifdef CONSOLE_ENABLE 242#ifdef CONSOLE_ENABLE
241void keyboard_post_init_user(void) { 243void keyboard_post_init_kb(void) {
242 debug_enable = true; 244 debug_enable = true;
243 debug_matrix = false; 245 debug_matrix = false;
244 debug_keyboard = false; 246 debug_keyboard = false;
247
248 keyboard_post_init_user();
245} 249}
246#endif // CONSOLE_ENABLE 250#endif // CONSOLE_ENABLE
diff --git a/keyboards/unicomp/spacesaver_m_post_2013/overnumpad_1xb/overnumpad_1xb.c b/keyboards/unicomp/spacesaver_m_post_2013/overnumpad_1xb/overnumpad_1xb.c
index f441285c9a..488ace3f91 100644
--- a/keyboards/unicomp/spacesaver_m_post_2013/overnumpad_1xb/overnumpad_1xb.c
+++ b/keyboards/unicomp/spacesaver_m_post_2013/overnumpad_1xb/overnumpad_1xb.c
@@ -23,6 +23,8 @@ void keyboard_post_init_kb(void)
23 gpio_set_pin_output(C11); // middle led, always off on Spacesaver M 23 gpio_set_pin_output(C11); // middle led, always off on Spacesaver M
24 gpio_write_pin(C11, 0); 24 gpio_write_pin(C11, 0);
25 gpio_set_pin_output(C10); // right-most led, normally Scroll Lock, but on Spacesaver M indicates function layer 25 gpio_set_pin_output(C10); // right-most led, normally Scroll Lock, but on Spacesaver M indicates function layer
26
27 keyboard_post_init_user();
26} 28}
27 29
28 30
diff --git a/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/overnumpad_1xb.c b/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/overnumpad_1xb.c
index bad0c76e43..9f5f592ff6 100644
--- a/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/overnumpad_1xb.c
+++ b/keyboards/unicomp/spacesaver_m_pre_2013/overnumpad_1xb/overnumpad_1xb.c
@@ -23,6 +23,8 @@ void keyboard_post_init_kb(void)
23 gpio_set_pin_output(C11); // middle led, always off on Spacesaver M 23 gpio_set_pin_output(C11); // middle led, always off on Spacesaver M
24 gpio_write_pin(C11, 0); 24 gpio_write_pin(C11, 0);
25 gpio_set_pin_output(C10); // right-most led, normally Scroll Lock, but on Spacesaver M indicates function layer 25 gpio_set_pin_output(C10); // right-most led, normally Scroll Lock, but on Spacesaver M indicates function layer
26
27 keyboard_post_init_user();
26} 28}
27 29
28layer_state_t layer_state_set_kb(layer_state_t state) { 30layer_state_t layer_state_set_kb(layer_state_t state) {
diff --git a/keyboards/wilba_tech/wt70_jb/wt70_jb.c b/keyboards/wilba_tech/wt70_jb/wt70_jb.c
index ad480ece22..e4d0efc5e4 100644
--- a/keyboards/wilba_tech/wt70_jb/wt70_jb.c
+++ b/keyboards/wilba_tech/wt70_jb/wt70_jb.c
@@ -42,6 +42,8 @@ void keyboard_post_init_kb(void) {
42 if ( g_first_execution ) { 42 if ( g_first_execution ) {
43 rgblight_mode(RGBLIGHT_MODE_RGB_TEST); 43 rgblight_mode(RGBLIGHT_MODE_RGB_TEST);
44 } 44 }
45
46 keyboard_post_init_user();
45} 47}
46 48
47#endif // VIA_ENABLE 49#endif // VIA_ENABLE
diff --git a/keyboards/yandrstudio/nz64/nz64.c b/keyboards/yandrstudio/nz64/nz64.c
index b5a53273df..66ba9fb6ee 100644
--- a/keyboards/yandrstudio/nz64/nz64.c
+++ b/keyboards/yandrstudio/nz64/nz64.c
@@ -84,10 +84,14 @@ bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
84void eeconfig_init_kb(void) { 84void eeconfig_init_kb(void) {
85 kb_cums.raw = 0; 85 kb_cums.raw = 0;
86 eeconfig_update_kb(kb_cums.raw); 86 eeconfig_update_kb(kb_cums.raw);
87
88 eeconfig_init_user();
87} 89}
88 90
89void keyboard_post_init_kb(void) { 91void keyboard_post_init_kb(void) {
90 kb_cums.underground_rgb_sw = eeconfig_read_kb(); 92 kb_cums.underground_rgb_sw = eeconfig_read_kb();
93
94 keyboard_post_init_user();
91} 95}
92 96
93#endif 97#endif
diff --git a/keyboards/yandrstudio/nz67v2/nz67v2.c b/keyboards/yandrstudio/nz67v2/nz67v2.c
index 346556c25e..c3162dd961 100644
--- a/keyboards/yandrstudio/nz67v2/nz67v2.c
+++ b/keyboards/yandrstudio/nz67v2/nz67v2.c
@@ -85,10 +85,14 @@ bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
85void eeconfig_init_kb(void) { 85void eeconfig_init_kb(void) {
86 kb_cums.raw = 0; 86 kb_cums.raw = 0;
87 eeconfig_update_kb(kb_cums.raw); 87 eeconfig_update_kb(kb_cums.raw);
88
89 eeconfig_init_user();
88} 90}
89 91
90void keyboard_post_init_kb(void) { 92void keyboard_post_init_kb(void) {
91 kb_cums.underground_rgb_sw = eeconfig_read_kb(); 93 kb_cums.underground_rgb_sw = eeconfig_read_kb();
94
95 keyboard_post_init_user();
92} 96}
93 97
94#endif 98#endif