kbd: use macros
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
#include "paracomm.h"
|
#include "paracomm.h"
|
||||||
#include "parallel.h"
|
#include "parallel.h"
|
||||||
|
|
||||||
|
#ifndef NOKBD
|
||||||
|
#define NOKBD 1
|
||||||
|
#endif // NOKBD
|
||||||
|
|
||||||
ParaComms pc;
|
ParaComms pc;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
@@ -37,7 +41,10 @@ void loop() {
|
|||||||
}
|
}
|
||||||
led_counter += 1;
|
led_counter += 1;
|
||||||
|
|
||||||
// checkKbdReset();
|
#if NOKBD
|
||||||
|
#else // NOKBD
|
||||||
|
checkKbdReset();
|
||||||
|
#endif // NOKBD
|
||||||
|
|
||||||
uint8_t mosib;
|
uint8_t mosib;
|
||||||
if (strobeOccurred(mosib)) {
|
if (strobeOccurred(mosib)) {
|
||||||
@@ -48,9 +55,9 @@ void loop() {
|
|||||||
|
|
||||||
if (Serial.available() > 0) {
|
if (Serial.available() > 0) {
|
||||||
int c = Serial.read();
|
int c = Serial.read();
|
||||||
#if 1
|
#if NOKBD
|
||||||
pc.SendByte(c);
|
pc.SendByte(c);
|
||||||
#else
|
#else // NOKBD
|
||||||
if (c == 2) {
|
if (c == 2) {
|
||||||
mode = 0;
|
mode = 0;
|
||||||
} else if (c == 3) {
|
} else if (c == 3) {
|
||||||
@@ -62,6 +69,6 @@ void loop() {
|
|||||||
pc.SendByte(c);
|
pc.SendByte(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif // NOKBD
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user