Unconditionally call led_init_ports (#12116)
* Unconditionally call led_init_ports * Another call to led_init_ports
This commit is contained in:
parent
2bc7511b9e
commit
3f419dc872
30 changed files with 20 additions and 215 deletions
|
@ -1,19 +1,6 @@
|
|||
#include "rev2.h"
|
||||
#include "led.h"
|
||||
|
||||
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<<5);
|
||||
|
|
|
@ -1,19 +1,6 @@
|
|||
#include "rev3.h"
|
||||
#include "led.h"
|
||||
|
||||
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
|
||||
DDRE |= (1 << 6);
|
||||
|
|
|
@ -15,14 +15,6 @@
|
|||
*/
|
||||
#include "gh80_3700.h"
|
||||
|
||||
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 led_init_ports(void) {
|
||||
setPinOutput(E6);
|
||||
setPinOutput(B1);
|
||||
|
|
|
@ -15,12 +15,6 @@
|
|||
*/
|
||||
#include "pockettype.h"
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
led_init_ports();
|
||||
|
||||
matrix_init_user();
|
||||
};
|
||||
|
||||
void led_init_ports(void) {
|
||||
// * Enable LED anodes (Vbus pin is replaced by B0 on some boards)
|
||||
setPinOutput(B0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue