We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4674529 commit 0fb4504Copy full SHA for 0fb4504
src/DMXSerial.cpp
@@ -55,10 +55,22 @@ typedef enum {
55
// receiver must accept 88 us break and 8 us MAB
56
#define BREAKSPEED 100000L
57
58
+#if !defined(DMX_USE_PORT1) && defined(USART_RXC_vect)
59
+
60
+// ATMEGA8 requires that URSEL be set to 1 when writing to register UCSRC
61
+// This definition appends the required bit to the serial definition
62
63
+#define BREAKFORMAT (SERIAL_8E2 | (1<<URSEL))
64
+#define DMXFORMAT (SERIAL_8N2 | (1<<URSEL))
65
+#define DMXREADFORMAT (SERIAL_8N1 | (1<<URSEL))
66
67
+#else
68
69
#define BREAKFORMAT SERIAL_8E2
70
#define DMXFORMAT SERIAL_8N2
71
#define DMXREADFORMAT SERIAL_8N1
72
73
+#endif
74
75
// ----- include processor specific definitions and functions.
76
0 commit comments