Reorganize to allow compiling and running AVR firmware

This commit is contained in:
Jeremy Soller
2019-09-29 17:13:31 -06:00
parent 608326af30
commit b04352cb63
38 changed files with 198 additions and 3 deletions

View 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;
}