Reorganize to allow compiling and running AVR firmware
This commit is contained in:
15
src/board/system76/galp3-c/kbscan.c
Normal file
15
src/board/system76/galp3-c/kbscan.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "include/kbscan.h"
|
||||
|
||||
void kbscan_init(void) {
|
||||
KSOCTRL = 0x05;
|
||||
KSICTRLR = 0x04;
|
||||
|
||||
// Set all outputs to GPIO mode and high
|
||||
KSOH2 = 0xFF;
|
||||
KSOH1 = 0xFF;
|
||||
KSOL = 0xFF;
|
||||
KSOHGCTRL = 0xFF;
|
||||
KSOHGOEN = 0xFF;
|
||||
KSOLGCTRL = 0xFF;
|
||||
KSOLGOEN = 0xFF;
|
||||
}
|
Reference in New Issue
Block a user