Browse Source

wip

refactor_process_record_kb_user
skullY 4 years ago
parent
commit
256fabca9e
155 changed files with 80 additions and 2196 deletions
  1. +0
    -20
      keyboards/1upkeyboards/1up60hse/1up60hse.c
  2. +0
    -20
      keyboards/1upkeyboards/super16/super16.c
  3. +0
    -20
      keyboards/40percentclub/25/25.c
  4. +0
    -23
      keyboards/40percentclub/4pack/4pack.c
  5. +0
    -20
      keyboards/40percentclub/4x4/4x4.c
  6. +0
    -20
      keyboards/40percentclub/5x5/5x5.c
  7. +0
    -20
      keyboards/40percentclub/6lit/6lit.c
  8. +0
    -20
      keyboards/40percentclub/foobar/foobar.c
  9. +0
    -20
      keyboards/40percentclub/half_n_half/half_n_half.c
  10. +0
    -20
      keyboards/40percentclub/i75/i75.c
  11. +0
    -7
      keyboards/40percentclub/mf68/mf68.c
  12. +0
    -4
      keyboards/40percentclub/nano/nano.c
  13. +0
    -20
      keyboards/40percentclub/nori/nori.c
  14. +0
    -25
      keyboards/40percentclub/ut47/ut47.c
  15. +0
    -4
      keyboards/6ball/6ball.c
  16. +0
    -4
      keyboards/9key/9key.c
  17. +0
    -20
      keyboards/abstract/ellipse/rev1/rev1.c
  18. +0
    -28
      keyboards/acheron/shark/shark.c
  19. +0
    -13
      keyboards/acr60/acr60.c
  20. +0
    -2
      keyboards/adkb96/rev1/rev1.c
  21. +0
    -9
      keyboards/ai03/orbit/matrix.c
  22. +0
    -10
      keyboards/ai03/orbit/orbit.c
  23. +0
    -28
      keyboards/ai03/quasar/quasar.c
  24. +0
    -20
      keyboards/ai03/soyuz/soyuz.c
  25. +0
    -20
      keyboards/akb/eb46/eb46.c
  26. +0
    -16
      keyboards/alf/dc60/dc60.c
  27. +0
    -10
      keyboards/alf/x11/x11.c
  28. +0
    -7
      keyboards/amj40/amj40.c
  29. +0
    -7
      keyboards/amj60/amj60.c
  30. +0
    -20
      keyboards/amj96/amj96.c
  31. +0
    -20
      keyboards/amjkeyboard/amj66/amj66.c
  32. +0
    -7
      keyboards/amjpad/amjpad.c
  33. +0
    -28
      keyboards/angel17/alpha/alpha.c
  34. +0
    -28
      keyboards/angel17/rev1/rev1.c
  35. +0
    -28
      keyboards/angel64/alpha/alpha.c
  36. +0
    -4
      keyboards/angel64/alpha/matrix.c
  37. +0
    -2
      keyboards/angel64/rev1/matrix.c
  38. +0
    -28
      keyboards/angel64/rev1/rev1.c
  39. +0
    -2
      keyboards/atomic/atomic.c
  40. +0
    -15
      keyboards/baguette/baguette.c
  41. +0
    -20
      keyboards/bm16a/bm16a.c
  42. +0
    -28
      keyboards/bm43a/bm43a.c
  43. +0
    -20
      keyboards/bm60rgb/bm60rgb.c
  44. +1
    -3
      keyboards/boston_meetup/2019/2019.c
  45. +0
    -33
      keyboards/bpiphany/frosty_flake/frosty_flake.c
  46. +0
    -2
      keyboards/bpiphany/frosty_flake/matrix.c
  47. +0
    -23
      keyboards/bpiphany/kitten_paw/kitten_paw.c
  48. +0
    -2
      keyboards/bpiphany/kitten_paw/matrix.c
  49. +0
    -34
      keyboards/bpiphany/pegasushoof/2013/2013.c
  50. +0
    -2
      keyboards/bpiphany/pegasushoof/2013/matrix.c
  51. +0
    -33
      keyboards/bpiphany/pegasushoof/2015/2015.c
  52. +0
    -20
      keyboards/bpiphany/sixshooter/sixshooter.c
  53. +0
    -2
      keyboards/bpiphany/tiger_lily/matrix.c
  54. +0
    -33
      keyboards/bpiphany/tiger_lily/tiger_lily.c
  55. +0
    -2
      keyboards/bpiphany/unloved_bastard/matrix.c
  56. +0
    -10
      keyboards/bpiphany/unloved_bastard/unloved_bastard.c
  57. +0
    -20
      keyboards/bthlabs/geekpad/geekpad.c
  58. +0
    -28
      keyboards/business_card/alpha/alpha.c
  59. +0
    -7
      keyboards/kbdfans/kbd66/kbd66.c
  60. +0
    -7
      keyboards/kbdfans/kbd67/hotswap/hotswap.c
  61. +0
    -7
      keyboards/kbdfans/kbd67/mkii_soldered/mkii_soldered.c
  62. +0
    -3
      keyboards/kbdfans/kbd67/mkiirgb/mkiirgb.c
  63. +0
    -7
      keyboards/kbdfans/kbd67/rev1/rev1.c
  64. +0
    -7
      keyboards/kbdfans/kbd67/rev2/rev2.c
  65. +1
    -8
      keyboards/kbdfans/kbd6x/kbd6x.c
  66. +0
    -7
      keyboards/kbdfans/kbd8x/kbd8x.c
  67. +0
    -7
      keyboards/kbdfans/kbd8x_mk2/kbd8x_mk2.c
  68. +0
    -3
      keyboards/kbdfans/kbdmini/kbdmini.c
  69. +0
    -7
      keyboards/kbdfans/kbdpad_mk2/kbdpad_mk2.c
  70. +0
    -7
      keyboards/keebio/ergodicity/ergodicity.c
  71. +0
    -7
      keyboards/keyhive/maypad/maypad.c
  72. +0
    -7
      keyboards/kinesis/alvicstep/alvicstep.c
  73. +0
    -7
      keyboards/kinesis/stapelberg/stapelberg.c
  74. +0
    -7
      keyboards/kira75/kira75.c
  75. +0
    -7
      keyboards/kmac/kmac.c
  76. +0
    -7
      keyboards/kmini/kmini.c
  77. +1
    -8
      keyboards/knops/mini/mini.c
  78. +0
    -7
      keyboards/kona_classic/kona_classic.c
  79. +6
    -1
      keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c
  80. +6
    -1
      keyboards/lfkeyboards/lfk78/lfk78.c
  81. +6
    -1
      keyboards/lfkeyboards/lfk87/lfk87.c
  82. +6
    -1
      keyboards/lfkeyboards/lfkpad/lfkpad.c
  83. +6
    -1
      keyboards/lfkeyboards/mini1800/mini1800.c
  84. +6
    -1
      keyboards/lfkeyboards/smk65/smk65.c
  85. +8
    -3
      keyboards/lily58/lily58.c
  86. +1
    -8
      keyboards/m0lly/m0lly.c
  87. +0
    -7
      keyboards/mechkeys/mk60/mk60.c
  88. +6
    -1
      keyboards/meira/meira.c
  89. +0
    -7
      keyboards/meishi/meishi.c
  90. +0
    -7
      keyboards/meishi2/meishi2.c
  91. +0
    -7
      keyboards/meme/meme.c
  92. +0
    -7
      keyboards/meson/meson.c
  93. +0
    -7
      keyboards/miniaxe/miniaxe.c
  94. +0
    -7
      keyboards/miuni32/miuni32.c
  95. +0
    -7
      keyboards/moon/moon.c
  96. +2
    -2
      keyboards/mt980/keymaps/walker/keymap.c
  97. +3
    -32
      keyboards/mt980/mt980.c
  98. +1
    -1
      keyboards/mxss/mxss.c
  99. +0
    -7
      keyboards/namecard2x4/namecard2x4.c
  100. +0
    -7
      keyboards/nek_type_a/nek_type_a.c

+ 0
- 20
keyboards/1upkeyboards/1up60hse/1up60hse.c View File

@ -14,23 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "1up60hse.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 20
keyboards/1upkeyboards/super16/super16.c View File

@ -14,23 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "super16.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 20
keyboards/40percentclub/25/25.c View File

@ -15,26 +15,6 @@
*/
#include "25.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}
#ifdef SWAP_HANDS_ENABLE
__attribute__ ((weak))
const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {


+ 0
- 23
keyboards/40percentclub/4pack/4pack.c View File

@ -15,33 +15,10 @@
*/
#include "4pack.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
setPinOutput(F4); // cathodes
setPinOutput(F5); // cathodes
// Do the rest
matrix_init_user();
}
/*
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}
*/

+ 0
- 20
keyboards/40percentclub/4x4/4x4.c View File

@ -1,22 +1,2 @@
#include "4x4.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 20
keyboards/40percentclub/5x5/5x5.c View File

@ -1,22 +1,2 @@
#include "5x5.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 20
keyboards/40percentclub/6lit/6lit.c View File

@ -15,26 +15,6 @@
*/
#include "6lit.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}
#ifdef SWAP_HANDS_ENABLE
__attribute__ ((weak))
const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {


+ 0
- 20
keyboards/40percentclub/foobar/foobar.c View File

@ -15,26 +15,6 @@
*/
#include "foobar.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}
#ifdef SWAP_HANDS_ENABLE
__attribute__ ((weak))
const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {


+ 0
- 20
keyboards/40percentclub/half_n_half/half_n_half.c View File

@ -14,23 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "half_n_half.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 20
keyboards/40percentclub/i75/i75.c View File

@ -14,23 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "i75.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 7
keyboards/40percentclub/mf68/mf68.c View File

@ -1,8 +1 @@
#include "mf68.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}

+ 0
- 4
keyboards/40percentclub/nano/nano.c View File

@ -1,5 +1 @@
#include "nano.h"
void matrix_init_kb(void) {
matrix_init_user();
}

+ 0
- 20
keyboards/40percentclub/nori/nori.c View File

@ -14,23 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "nori.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 25
keyboards/40percentclub/ut47/ut47.c View File

@ -18,28 +18,9 @@
#include "protocol/serial.h"
#endif
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
/* FIXME(skullydazed):
* Originally this code always ran no matter what process_record_user() did.
* With this PR it will only run if process_record_user() returns true. We
* should think through the implications here.
*/
if (record->event.pressed) {
#ifdef LED_ENABLE
serial_send((record->event.key.row*16)+record->event.key.col);
@ -47,9 +28,3 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
}
return true;
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 4
keyboards/6ball/6ball.c View File

@ -1,5 +1 @@
#include "6ball.h"
void matrix_init_kb(void) {
matrix_init_user();
}

+ 0
- 4
keyboards/9key/9key.c View File

@ -1,5 +1 @@
#include "9key.h"
void matrix_init_kb(void) {
matrix_init_user();
}

+ 0
- 20
keyboards/abstract/ellipse/rev1/rev1.c View File

@ -14,23 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "rev1.h"
/*void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}*/

+ 0
- 28
keyboards/acheron/shark/shark.c View File

@ -14,31 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "shark.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
/*
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}
*/

+ 0
- 13
keyboards/acr60/acr60.c View File

@ -4,25 +4,12 @@
void matrix_init_kb(void) {
// Keyboard start-up code goes here
// Runs once when the firmware starts up
matrix_init_user();
led_init_ports();
};
void matrix_scan_kb(void) {
// Looping keyboard code goes here
// This runs every cycle (a lot)
matrix_scan_user();
};
void led_init_ports(void) {
// Set caps lock LED pin as output
DDRB |= (1 << 2);
// Default to off
PORTB |= (1 << 2);
}
void led_set_kb(uint8_t usb_led) {
// Code for caps lock LED as reported by the OS
// Set this per keymap, instead of globally
led_set_user(usb_led);
}

+ 0
- 2
keyboards/adkb96/rev1/rev1.c View File

@ -9,7 +9,5 @@ void matrix_init_kb(void) {
// // orange led on
// DDRB |= (1<<0);
// PORTB &= ~(1<<0);
matrix_init_user();
};

+ 0
- 9
keyboards/ai03/orbit/matrix.c View File

@ -66,15 +66,6 @@ static matrix_row_t raw_matrix[ROWS_PER_HAND];
uint8_t thisHand, thatHand;
// user-defined overridable functions
__attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); }
__attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); }
__attribute__((weak)) void matrix_init_user(void) {}
__attribute__((weak)) void matrix_scan_user(void) {}
__attribute__((weak)) void matrix_slave_scan_user(void) {}
// helper functions


+ 0
- 10
keyboards/ai03/orbit/orbit.c View File

@ -168,15 +168,6 @@ void matrix_init_kb(void) {
}
set_layer_indicators(0);
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
@ -194,7 +185,6 @@ void led_set_kb(uint8_t usb_led) {
}
led_set_user(usb_led);
}
uint32_t layer_state_set_kb(uint32_t state) {


+ 0
- 28
keyboards/ai03/quasar/quasar.c View File

@ -14,31 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quasar.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
/*
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}
*/

+ 0
- 20
keyboards/ai03/soyuz/soyuz.c View File

@ -14,23 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "soyuz.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 20
keyboards/akb/eb46/eb46.c View File

@ -14,23 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "eb46.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 16
keyboards/alf/dc60/dc60.c View File

@ -15,20 +15,6 @@
*/
#include "dc60.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
DDRB |= (1 << 7);
@ -37,6 +23,4 @@ void led_set_kb(uint8_t usb_led) {
DDRB &= ~(1 << 7);
PORTB &= ~(1 << 7);
}
led_set_user(usb_led);
}

+ 0
- 10
keyboards/alf/x11/x11.c View File

@ -22,14 +22,6 @@ void matrix_init_kb(void) {
setPinOutput(C6);
setPinOutput(E6);
setPinOutput(C7);
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
@ -52,6 +44,4 @@ void led_set_kb(uint8_t usb_led) {
} else {
writePinHigh(C7);
}
led_set_user(usb_led);
}

+ 0
- 7
keyboards/amj40/amj40.c View File

@ -4,16 +4,9 @@
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
};
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
};
void led_init_ports(void) {
// * Set our LED pins as output
DDRB |= (1<<2);


+ 0
- 7
keyboards/amj60/amj60.c View File

@ -4,16 +4,9 @@
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
};
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
};
void led_init_ports(void) {
// * Set our LED pins as output
DDRB |= (1<<2);


+ 0
- 20
keyboards/amj96/amj96.c View File

@ -14,23 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "amj96.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 20
keyboards/amjkeyboard/amj66/amj66.c View File

@ -14,23 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "amj66.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 7
keyboards/amjpad/amjpad.c View File

@ -4,16 +4,9 @@
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
led_init_ports();
};
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
};
void led_init_ports(void) {
// * Set our LED pins as output
DDRD |= (1<<6);


+ 0
- 28
keyboards/angel17/alpha/alpha.c View File

@ -14,31 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "alpha.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
/*
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}
*/

+ 0
- 28
keyboards/angel17/rev1/rev1.c View File

@ -14,31 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "rev1.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
/*
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}
*/

+ 0
- 28
keyboards/angel64/alpha/alpha.c View File

@ -14,31 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "alpha.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
/*
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}
*/

+ 0
- 4
keyboards/angel64/alpha/matrix.c View File

@ -54,22 +54,18 @@ static matrix_row_t matrix[MATRIX_ROWS]; //debounced values
__attribute__ ((weak))
void matrix_init_quantum(void) {
matrix_init_kb();
}
__attribute__ ((weak))
void matrix_scan_quantum(void) {
matrix_scan_kb();
}
__attribute__ ((weak))
void matrix_init_kb(void) {
matrix_init_user();
}
__attribute__ ((weak))
void matrix_scan_kb(void) {
matrix_scan_user();
}
__attribute__ ((weak))


+ 0
- 2
keyboards/angel64/rev1/matrix.c View File

@ -64,12 +64,10 @@ void matrix_scan_quantum(void) {
__attribute__ ((weak))
void matrix_init_kb(void) {
matrix_init_user();
}
__attribute__ ((weak))
void matrix_scan_kb(void) {
matrix_scan_user();
}
__attribute__ ((weak))


+ 0
- 28
keyboards/angel64/rev1/rev1.c View File

@ -14,31 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "rev1.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
/*
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}
*/

+ 0
- 2
keyboards/atomic/atomic.c View File

@ -7,6 +7,4 @@ void matrix_init_kb(void) {
// Turn status LED on
DDRE |= (1<<6);
PORTE |= (1<<6);
matrix_init_user();
}

+ 0
- 15
keyboards/baguette/baguette.c View File

@ -46,19 +46,4 @@ void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
bootmagic_lite();
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 20
keyboards/bm16a/bm16a.c View File

@ -14,23 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "bm16a.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 28
keyboards/bm43a/bm43a.c View File

@ -14,31 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "bm43a.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
/*
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}
*/

+ 0
- 20
keyboards/bm60rgb/bm60rgb.c View File

@ -15,26 +15,6 @@
*/
#include "bm60rgb.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}
led_config_t g_led_config = { {
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 },
{ 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 },


+ 1
- 3
keyboards/boston_meetup/2019/2019.c View File

@ -152,7 +152,7 @@ void draw_ui(void) {
send_buffer();
}
void led_set_user(uint8_t usb_led) {
void led_set_kb(uint8_t usb_led) {
if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
if (led_numlock == false){led_numlock = true;}
} else {
@ -186,7 +186,6 @@ void encoder_update_kb(uint8_t index, bool clockwise) {
void matrix_init_kb(void) {
queue_for_send = true;
matrix_init_user();
}
void matrix_scan_kb(void) {
@ -206,5 +205,4 @@ if (queue_for_send) {
}
counterst = (counterst + 1) % 1024;
//rgblight_task();
matrix_scan_user();
}

+ 0
- 33
keyboards/bpiphany/frosty_flake/frosty_flake.c View File

@ -1,19 +1,5 @@
#include "frosty_flake.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
DDRB |= (1<<7);
DDRC |= (1<<5) | (1<<6);
@ -34,23 +20,4 @@ void led_set_kb(uint8_t usb_led) {
PORTC &= ~(1<<6);
else
PORTC |= (1<<6);
led_set_user(usb_led);
}
__attribute__ ((weak))
void matrix_init_user(void) {
}
__attribute__ ((weak))
void matrix_scan_user(void) {
}
__attribute__ ((weak))
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}
__attribute__ ((weak))
void led_set_user(uint8_t usb_led) {
}

+ 0
- 2
keyboards/bpiphany/frosty_flake/matrix.c View File

@ -34,12 +34,10 @@ static matrix_row_t matrix_debouncing[MATRIX_ROWS];
__attribute__ ((weak))
void matrix_init_kb(void) {
matrix_init_user();
}
__attribute__ ((weak))
void matrix_scan_kb(void) {
matrix_scan_user();
}
__attribute__ ((weak))


+ 0
- 23
keyboards/bpiphany/kitten_paw/kitten_paw.c View File

@ -1,27 +1,5 @@
#include "kitten_paw.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
__attribute__ ((weak))
void matrix_init_user(void) {
}
__attribute__ ((weak))
void matrix_scan_user(void) {
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
CONFIG_LED_IO;
@ -40,5 +18,4 @@ void led_set_kb(uint8_t usb_led) {
USB_LED_SCROLL_LOCK_ON;
else
USB_LED_SCROLL_LOCK_OFF;
led_set_user(usb_led);
}

+ 0
- 2
keyboards/bpiphany/kitten_paw/matrix.c View File

@ -37,12 +37,10 @@ static void select_col(uint8_t col);
__attribute__ ((weak))
void matrix_init_kb(void) {
matrix_init_user();
}
__attribute__ ((weak))
void matrix_scan_kb(void) {
matrix_scan_user();
}
__attribute__ ((weak))


+ 0
- 34
keyboards/bpiphany/pegasushoof/2013/2013.c View File

@ -23,37 +23,3 @@ extern inline void ph_caps_led_off(void);
extern inline void ph_sclk_led_on(void);
extern inline void ph_sclk_led_off(void);
__attribute__ ((weak))
void matrix_init_user(void) {
};
__attribute__ ((weak))
void matrix_scan_user(void) {
}
__attribute__ ((weak))
bool process_action_user(keyrecord_t *record) {
return true;
}
__attribute__ ((weak))
void led_set_user(uint8_t usb_led) {
}
void matrix_init_kb(void) {
matrix_init_user();
}
void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_action_kb(keyrecord_t *record) {
return process_action_user(record);
}
void led_set_kb(uint8_t usb_led) {
led_set_user(usb_led);
}

+ 0
- 2
keyboards/bpiphany/pegasushoof/2013/matrix.c View File

@ -35,12 +35,10 @@ static void select_row(uint8_t col);
__attribute__ ((weak))
void matrix_init_kb(void) {
matrix_init_user();
}
__attribute__ ((weak))
void matrix_scan_kb(void) {
matrix_scan_user();
}
__attribute__ ((weak))


+ 0
- 33
keyboards/bpiphany/pegasushoof/2015/2015.c View File

@ -23,36 +23,3 @@ extern inline void ph_caps_led_off(void);
extern inline void ph_sclk_led_on(void);
extern inline void ph_sclk_led_off(void);
__attribute__ ((weak))
void matrix_init_user(void) {
};
__attribute__ ((weak))
void matrix_scan_user(void) {
}
__attribute__ ((weak))
bool process_action_user(keyrecord_t *record) {
return true;
}
__attribute__ ((weak))
void led_set_user(uint8_t usb_led) {
}
void matrix_init_kb(void) {
matrix_init_user();
}
void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_action_kb(keyrecord_t *record) {
return process_action_user(record);
}
void led_set_kb(uint8_t usb_led) {
led_set_user(usb_led);
}

+ 0
- 20
keyboards/bpiphany/sixshooter/sixshooter.c View File

@ -16,23 +16,3 @@ extern inline void sixshooter_led_5_off(void);
extern inline void sixshooter_led_all_on(void);
extern inline void sixshooter_led_all_off(void);
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 2
keyboards/bpiphany/tiger_lily/matrix.c View File

@ -34,12 +34,10 @@ static matrix_row_t matrix_debouncing[MATRIX_ROWS];
__attribute__ ((weak))
void matrix_init_kb(void) {
matrix_init_user();
}
__attribute__ ((weak))
void matrix_scan_kb(void) {
matrix_scan_user();
}
__attribute__ ((weak))


+ 0
- 33
keyboards/bpiphany/tiger_lily/tiger_lily.c View File

@ -1,19 +1,5 @@
#include "tiger_lily.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
DDRB |= (1<<7);
DDRC |= (1<<5) | (1<<6);
@ -34,23 +20,4 @@ void led_set_kb(uint8_t usb_led) {
PORTC &= ~(1<<6);
else
PORTC |= (1<<6);
led_set_user(usb_led);
}
__attribute__ ((weak))
void matrix_init_user(void) {
}
__attribute__ ((weak))
void matrix_scan_user(void) {
}
__attribute__ ((weak))
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}
__attribute__ ((weak))
void led_set_user(uint8_t usb_led) {
}

+ 0
- 2
keyboards/bpiphany/unloved_bastard/matrix.c View File

@ -27,12 +27,10 @@
__attribute__ ((weak))
void matrix_init_kb(void) {
matrix_init_user();
}
__attribute__ ((weak))
void matrix_scan_kb(void) {
matrix_scan_user();
}
__attribute__ ((weak))


+ 0
- 10
keyboards/bpiphany/unloved_bastard/unloved_bastard.c View File

@ -19,14 +19,6 @@ void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
led_init_ports();
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
// C5 left
@ -59,6 +51,4 @@ void led_set_kb(uint8_t usb_led) {
PORTC &= ~(1<<6);
else
PORTC |= (1<<6);
led_set_user(usb_led);
}

+ 0
- 20
keyboards/bthlabs/geekpad/geekpad.c View File

@ -14,23 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "geekpad.h"
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}

+ 0
- 28
keyboards/business_card/alpha/alpha.c View File

@ -14,31 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "alpha.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
/*
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}
*/

+ 0
- 7
keyboards/kbdfans/kbd66/kbd66.c View File

@ -29,13 +29,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/kbdfans/kbd67/hotswap/hotswap.c View File

@ -29,13 +29,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/kbdfans/kbd67/mkii_soldered/mkii_soldered.c View File

@ -38,11 +38,4 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
*/

+ 0
- 3
keyboards/kbdfans/kbd67/mkiirgb/mkiirgb.c View File

@ -103,9 +103,6 @@ void matrix_init_kb(void) {
void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
return process_record_user(keycode, record);
}
void suspend_power_down_kb(void)
{
rgb_matrix_set_suspend_state(true);


+ 0
- 7
keyboards/kbdfans/kbd67/rev1/rev1.c View File

@ -29,13 +29,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/kbdfans/kbd67/rev2/rev2.c View File

@ -29,13 +29,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);


+ 1
- 8
keyboards/kbdfans/kbd6x/kbd6x.c View File

@ -29,13 +29,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
DDRB |= (1 << 6);
@ -46,4 +39,4 @@ void led_set_kb(uint8_t usb_led) {
}
led_set_user(usb_led);
}
}

+ 0
- 7
keyboards/kbdfans/kbd8x/kbd8x.c View File

@ -37,13 +37,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/kbdfans/kbd8x_mk2/kbd8x_mk2.c View File

@ -61,11 +61,4 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
*/

+ 0
- 3
keyboards/kbdfans/kbdmini/kbdmini.c View File

@ -80,9 +80,6 @@ void matrix_init_kb(void) {
void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
return process_record_user(keycode, record);
}
void suspend_power_down_kb(void)
{
rgb_matrix_set_suspend_state(true);


+ 0
- 7
keyboards/kbdfans/kbdpad_mk2/kbdpad_mk2.c View File

@ -51,11 +51,4 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
*/

+ 0
- 7
keyboards/keebio/ergodicity/ergodicity.c View File

@ -35,13 +35,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/keyhive/maypad/maypad.c View File

@ -35,13 +35,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/kinesis/alvicstep/alvicstep.c View File

@ -78,13 +78,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/kinesis/stapelberg/stapelberg.c View File

@ -19,13 +19,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_init_ports() {
// * Set our LED pins as output
DDRF |= (1<<0); // Keypad LED


+ 0
- 7
keyboards/kira75/kira75.c View File

@ -29,13 +29,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/kmac/kmac.c View File

@ -42,13 +42,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
*/
/* LED pin configuration


+ 0
- 7
keyboards/kmini/kmini.c View File

@ -29,13 +29,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_init_ports(void) {
DDRB |= (1<<1); // OUT
DDRB |= (1<<2); // OUT


+ 1
- 8
keyboards/knops/mini/mini.c View File

@ -29,16 +29,9 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
led_set_user(usb_led);
}
*/
*/

+ 0
- 7
keyboards/kona_classic/kona_classic.c View File

@ -29,13 +29,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_init_ports(void) {
// DDRB |= (1<<6) | (1<<7); // OUT
}


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

@ -17,11 +17,16 @@ void matrix_scan_kb(void)
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
{
/* FIXME(skullydazed):
* Originally this code always ran no matter what process_record_user() did.
* With this PR it will only run if process_record_user() returns true. We
* should think through the implications here.
*/
if (keycode == RESET) {
reset_keyboard_kb();
} else {
}
return process_record_user(keycode, record);
return true;
}
void reset_keyboard_kb(){


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

@ -119,6 +119,11 @@ void click(uint16_t freq, uint16_t duration){
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
{
/* FIXME(skullydazed):
* Originally this code always ran no matter what process_record_user() did.
* With this PR it will only run if process_record_user() returns true. We
* should think through the implications here.
*/
if (click_toggle && record->event.pressed){
click(click_hz, click_time);
}
@ -126,7 +131,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record)
reset_keyboard_kb();
} else {
}
return process_record_user(keycode, record);
return true;
}
void action_function(keyrecord_t *event, uint8_t id, uint8_t opt)


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

@ -106,6 +106,11 @@ void click(uint16_t freq, uint16_t duration){
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
{
/* FIXME(skullydazed):
* Originally this code always ran no matter what process_record_user() did.
* With this PR it will only run if process_record_user() returns true. We
* should think through the implications here.
*/
if (click_toggle && record->event.pressed){
click(click_hz, click_time);
}
@ -113,7 +118,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record)
reset_keyboard_kb();
} else {
}
return process_record_user(keycode, record);
return true;
}
void action_function(keyrecord_t *event, uint8_t id, uint8_t opt)


+ 6
- 1
keyboards/lfkeyboards/lfkpad/lfkpad.c View File

@ -83,6 +83,11 @@ void click(uint16_t freq, uint16_t duration) {
}
bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
/* FIXME(skullydazed):
* Originally this code always ran no matter what process_record_user() did.
* With this PR it will only run if process_record_user() returns true. We
* should think through the implications here.
*/
if (click_toggle && record->event.pressed) {
click(click_hz, click_time);
}
@ -91,7 +96,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
reset_keyboard_kb();
}
return process_record_user(keycode, record);
return true;
}
void action_function(keyrecord_t *event, uint8_t id, uint8_t opt) {


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

@ -112,6 +112,11 @@ void click(uint16_t freq, uint16_t duration){
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
{
/* FIXME(skullydazed):
* Originally this code always ran no matter what process_record_user() did.
* With this PR it will only run if process_record_user() returns true. We
* should think through the implications here.
*/
if (click_toggle && record->event.pressed){
click(click_hz, click_time);
}
@ -119,7 +124,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record)
reset_keyboard_kb();
} else {
}
return process_record_user(keycode, record);
return true;
}
void action_function(keyrecord_t *event, uint8_t id, uint8_t opt)


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

@ -55,6 +55,11 @@ void click(uint16_t freq, uint16_t duration){
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
{
/* FIXME(skullydazed):
* Originally this code always ran no matter what process_record_user() did.
* With this PR it will only run if process_record_user() returns true. We
* should think through the implications here.
*/
// Test code that turns on the switch led for the key that is pressed
// set_backlight_by_keymap(record->event.key.col, record->event.key.row);
if (click_toggle && record->event.pressed){
@ -64,7 +69,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record)
reset_keyboard_kb();
} else {
}
return process_record_user(keycode, record);
return true;
}
void action_function(keyrecord_t *event, uint8_t id, uint8_t opt)


+ 8
- 3
keyboards/lily58/lily58.c View File

@ -2,9 +2,14 @@
#include "ssd1306.h"
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
/* FIXME(skullydazed):
* Originally this code always ran no matter what process_record_user() did.
* With this PR it will only run if process_record_user() returns true. We
* should think through the implications here.
*/
#ifdef SSD1306OLED
return process_record_gfx(keycode,record) && process_record_user(keycode, record);
return process_record_gfx(keycode,record);
#else
return process_record_user(keycode, record);
return true;
#endif
}
}

+ 1
- 8
keyboards/m0lly/m0lly.c View File

@ -30,13 +30,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_init_ports(void) {
DDRD |= (1<<2) | (1<<3) | (1<<4); // OUT
DDRB |= (1<<7); // OUT
@ -66,4 +59,4 @@ void led_set_kb(uint8_t usb_led) {
// Turn scrolllock off
PORTD &= ~(1<<4);
}
}
}

+ 0
- 7
keyboards/mechkeys/mk60/mk60.c View File

@ -30,13 +30,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 6
- 1
keyboards/meira/meira.c View File

@ -77,11 +77,16 @@ void matrix_scan_kb(void)
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// Test code that turns on the switch led for the key that is pressed
// set_backlight_by_keymap(record->event.key.col, record->event.key.row);
/* FIXME(skullydazed):
* Originally this code always ran no matter what process_record_user() did.
* With this PR it will only run if process_record_user() returns true. We
* should think through the implications here.
*/
if (keycode == RESET) {
reset_keyboard_kb();
} else {
}
return process_record_user(keycode, record);
return true;
}
void led_set_kb(uint8_t usb_led) {


+ 0
- 7
keyboards/meishi/meishi.c View File

@ -29,13 +29,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/meishi2/meishi2.c View File

@ -35,13 +35,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/meme/meme.c View File

@ -29,13 +29,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/meson/meson.c View File

@ -35,13 +35,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/miniaxe/miniaxe.c View File

@ -29,13 +29,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/miuni32/miuni32.c View File

@ -14,13 +14,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/moon/moon.c View File

@ -41,13 +41,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
*/
void led_set_kb(uint8_t usb_led) {


+ 2
- 2
keyboards/mt980/keymaps/walker/keymap.c View File

@ -89,7 +89,7 @@ qk_tap_dance_action_t tap_dance_actions[] = {
[ALT_L1] = ACTION_TAP_DANCE_FN_ADVANCED(NULL,alt_finished, alt_reset)
};
void led_set_keymap(uint8_t usb_led) {
void led_set_user(uint8_t usb_led) {
if (usb_led & (1<<USB_LED_NUM_LOCK)) {
numlock_on = true;
}
@ -98,7 +98,7 @@ void led_set_keymap(uint8_t usb_led) {
}
}
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case KC_TRNS:


+ 3
- 32
keyboards/mt980/mt980.c View File

@ -1,31 +1,6 @@
#include "mt980.h"
__attribute__ ((weak))
void matrix_init_keymap(void) {}
__attribute__ ((weak))
void matrix_scan_keymap(void) {}
__attribute__ ((weak))
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
return true;
}
__attribute__ ((weak))
uint32_t layer_state_set_keymap (uint32_t state) {
return state;
}
__attribute__ ((weak))
void led_set_keymap(uint8_t usb_led) {}
void matrix_init_user(void) {
matrix_init_keymap();
}
void matrix_scan_user(void) {
matrix_scan_keymap();
}
void keyboard_pre_init_user(void) {
void keyboard_pre_init_kb(void) {
/* Set NUMLOCK indicator pin as output */
setPinOutput(C6);
/* Set CAPSLOCK indicator pin as output */
@ -34,11 +9,7 @@ void keyboard_pre_init_user(void) {
setPinOutput(B5);
}
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return process_record_keymap(keycode, record);
}
void led_set_user(uint8_t usb_led) {
void led_set_kb(uint8_t usb_led) {
if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
writePinLow(C6);
@ -61,5 +32,5 @@ void led_set_user(uint8_t usb_led) {
writePinHigh(B5);
}
led_set_keymap(usb_led);
led_set_user(usb_led);
}

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

@ -49,7 +49,7 @@ void matrix_scan_kb(void) {
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// Handle custom keycodes for front LED operation
process_record_fled(keycode, record);
return process_record_user(keycode, record);
return true;
}
bool led_update_kb(led_t led_state) {


+ 0
- 7
keyboards/namecard2x4/namecard2x4.c View File

@ -29,13 +29,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


+ 0
- 7
keyboards/nek_type_a/nek_type_a.c View File

@ -29,13 +29,6 @@ void matrix_scan_kb(void) {
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
}
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here


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

Loading…
Cancel
Save