diff options
Diffstat (limited to 'kbc.c')
-rw-r--r-- | kbc.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -90,6 +90,7 @@ static void usart_dis() (void)UDR0; } +#if 0 static uint8_t dbgtx[64]; static uint8_t dbgpos; @@ -121,6 +122,10 @@ static void dbg_init(void) /* MSB first, cpol = rise,fall, cpha = sample(r),setup(f) */ SPCR = (1 << SPIE) | (1 << SPE); } +#else +#define dbg_init() +#define dbg_wr(x) +#endif static volatile uint8_t statecntr = 0; @@ -332,8 +337,8 @@ static uint8_t cntr = 0; static uint8_t error; #endif -static const EEMEM char passwd[sizeof(PIN) - 1] = PIN; -static char code[sizeof(PIN)]; +static const EEMEM uint8_t passwd[sizeof(PIN) - 1] = PIN; +static uint8_t code[sizeof(PIN)]; static void state_enter(void) { @@ -479,7 +484,7 @@ ISR(SIG_OVERFLOW0) #define ENT 0x0d #define KBC_BASE 0x16 -const PROGMEM char kbc[] = { +const PROGMEM uint8_t kbc[] = { /* 0 1 2 3 4 5 6 7 * 8 9 a b c d e f */ |