diff options
author | Joel Challis <git@zvecr.com> | 2021-08-03 18:34:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-03 18:34:32 +0100 |
commit | 3f419dc872d3ab61d129c644e114f62fd738e9d6 (patch) | |
tree | 51beaff9f09d19130ca4f504bef512f776512f03 /keyboards/knops/mini/keymaps | |
parent | 2bc7511b9e045c56e611c8c4f091ce00bc799772 (diff) |
Unconditionally call led_init_ports (#12116)
* Unconditionally call led_init_ports
* Another call to led_init_ports
Diffstat (limited to 'keyboards/knops/mini/keymaps')
4 files changed, 8 insertions, 8 deletions
diff --git a/keyboards/knops/mini/keymaps/default-gsm-newbs/keymap.c b/keyboards/knops/mini/keymaps/default-gsm-newbs/keymap.c index 68c96fc192..4ac904dc75 100644 --- a/keyboards/knops/mini/keymaps/default-gsm-newbs/keymap.c +++ b/keyboards/knops/mini/keymaps/default-gsm-newbs/keymap.c @@ -204,7 +204,7 @@ void set_layer_led(int layerId) { } void matrix_init_user(void) { - led_init_ports(); + led_init_ports_user(); PORTB |= (1 << 7); DDRB &= ~(1<<7); @@ -223,7 +223,7 @@ void matrix_init_user(void) { void matrix_scan_user(void) { } -void led_init_ports() { +void led_init_ports_user() { // led voor switch #1 DDRD |= (1<<7); PORTD &= ~(1<<7); diff --git a/keyboards/knops/mini/keymaps/default/keymap.c b/keyboards/knops/mini/keymaps/default/keymap.c index 859f07aa07..d916aa9d13 100644 --- a/keyboards/knops/mini/keymaps/default/keymap.c +++ b/keyboards/knops/mini/keymaps/default/keymap.c @@ -130,7 +130,7 @@ void set_layer_led(int layerId) { } void matrix_init_user(void) { - led_init_ports(); + led_init_ports_user(); PORTB |= (1 << 7); DDRB &= ~(1<<7); @@ -149,7 +149,7 @@ void matrix_init_user(void) { void matrix_scan_user(void) { } -void led_init_ports() { +void led_init_ports_user() { // led voor switch #1 DDRD |= (1<<7); PORTD &= ~(1<<7); diff --git a/keyboards/knops/mini/keymaps/knops/keymap.c b/keyboards/knops/mini/keymaps/knops/keymap.c index 7bc7fbe43d..52360d6a8f 100644 --- a/keyboards/knops/mini/keymaps/knops/keymap.c +++ b/keyboards/knops/mini/keymaps/knops/keymap.c @@ -82,7 +82,7 @@ void set_led_state(int ledId, bool state) { } } -void led_init_ports() { +void led_init_ports_user() { PORTB |= (1 << 7); DDRB &= ~(1<<7); @@ -106,7 +106,7 @@ void led_set_layer(int layer) { } void matrix_init_user(void) { - led_init_ports(); + led_init_ports_user(); led_set_layer(1); diff --git a/keyboards/knops/mini/keymaps/mverteuil/keymap.c b/keyboards/knops/mini/keymaps/mverteuil/keymap.c index 5ecba0d5a1..bd172e7aa8 100644 --- a/keyboards/knops/mini/keymaps/mverteuil/keymap.c +++ b/keyboards/knops/mini/keymaps/mverteuil/keymap.c @@ -270,7 +270,7 @@ void led_set_layer(int layer) { /* * Prepare all LED ports for output */ -void led_init_ports() { +void led_init_ports_user() { setPinOutput(D7); // Switch 1 LED setPinOutput(C6); // Switch 2 LED Pin1 setPinOutput(C7); // Switch 2 LED Pin2 @@ -291,7 +291,7 @@ layer_state_t layer_state_set_user(layer_state_t state) { } void matrix_init_user(void) { - led_init_ports(); + led_init_ports_user(); led_init_animation(); } |