Browse Source

Hopefully also support chips with a single UART in MarlinSerial now.

daid303 12 years ago
parent
commit
d3ebc34958
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      Marlin/MarlinSerial.h

+ 4
- 0
Marlin/MarlinSerial.h View File

@@ -35,7 +35,11 @@
35 35
 // These are macros to build serial port register names for the selected SERIAL_PORT (C preprocessor
36 36
 // requires two levels of indirection to expand macro values properly)
37 37
 #define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)
38
+#if defined(UBRRH)
39
+#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##suffix
40
+#else
38 41
 #define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix
42
+#endif
39 43
 
40 44
 // Registers used by MarlinSerial class (these are expanded 
41 45
 // depending on selected serial port

Loading…
Cancel
Save