|
@@ -331,6 +331,7 @@ typedef union {
|
|
|
#define UART 0
|
|
|
#endif
|
|
|
|
|
|
+#ifndef SOFT_UART
|
|
|
#ifdef SINGLESPEED
|
|
|
|
|
|
#define BAUD_SETTING (( (F_CPU + BAUD_RATE * 8L) / ((BAUD_RATE * 16L))) - 1 )
|
|
@@ -364,6 +365,7 @@ typedef union {
|
|
|
#error Unachievable baud rate (too fast) BAUD_RATE
|
|
|
#endif
|
|
|
#endif
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
#define WATCHDOG_OFF (0)
|
|
@@ -982,6 +984,13 @@ uint8_t getch(void) {
|
|
|
#if UART_B_VALUE > 255
|
|
|
#error Baud rate too slow for soft UART
|
|
|
#endif
|
|
|
+#if UART_B_VALUE < 6
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+#error Baud rate too high for soft UART
|
|
|
+#endif
|
|
|
+
|
|
|
|
|
|
void uartDelay() {
|
|
|
__asm__ __volatile__ (
|