summaryrefslogtreecommitdiff
path: root/keyboard/ergodox_ez/ergodox_ez.c
diff options
context:
space:
mode:
authorChristopher Browne <cbbrowne@ca.afilias.info>2016-03-22 17:29:31 -0400
committerChristopher Browne <cbbrowne@ca.afilias.info>2016-03-22 17:29:31 -0400
commita4ff9f256738cf637553e7840d53f778d791fb6f (patch)
tree91d327587401e69843eecb353e97a3119aa9939b /keyboard/ergodox_ez/ergodox_ez.c
parente36a441274e9e494e1d8e38df1901f3acf9def27 (diff)
parent403d756ad56de18488e3d048e849c55e77a20b32 (diff)
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'keyboard/ergodox_ez/ergodox_ez.c')
-rw-r--r--keyboard/ergodox_ez/ergodox_ez.c33
1 files changed, 12 insertions, 21 deletions
diff --git a/keyboard/ergodox_ez/ergodox_ez.c b/keyboard/ergodox_ez/ergodox_ez.c
index d0eaf33923..97e6de1ee3 100644
--- a/keyboard/ergodox_ez/ergodox_ez.c
+++ b/keyboard/ergodox_ez/ergodox_ez.c
@@ -5,16 +5,16 @@ bool i2c_initialized = 0;
uint8_t mcp23018_status = 0x20;
__attribute__ ((weak))
-void * matrix_init_user(void) {
- return NULL;
-};
+void matrix_init_user(void) {
+
+}
__attribute__ ((weak))
-void * matrix_scan_user(void) {
- return NULL;
-};
+void matrix_scan_user(void) {
+
+}
-void * matrix_init_kb(void) {
+void matrix_init_kb(void) {
// keyboard LEDs (see "PWM on ports OC1(A|B|C)" in "teensy-2-0.md")
TCCR1A = 0b10101001; // set and configure fast PWM
TCCR1B = 0b00001001; // set and configure fast PWM
@@ -34,21 +34,12 @@ void * matrix_init_kb(void) {
ergodox_blink_all_leds();
- if (matrix_init_user) {
- (*matrix_init_user)();
- }
-
- return NULL;
-};
-
-void * matrix_scan_kb(void) {
-
- if (matrix_scan_user) {
- (*matrix_scan_user)();
- }
+ matrix_init_user();
+}
- return NULL;
-};
+void matrix_scan_kb(void) {
+ matrix_scan_user();
+}
void ergodox_blink_all_leds(void)