|
@@ -61,21 +61,7 @@ enum DebugFlags {
|
61
|
61
|
};
|
62
|
62
|
#endif
|
63
|
63
|
|
64
|
|
-//todo: HAL: breaks encapsulation
|
65
|
|
-// For AVR only, define a serial interface based on configuration
|
66
|
|
-#ifdef __AVR__
|
67
|
|
- #ifdef USBCON
|
68
|
|
- #include <HardwareSerial.h>
|
69
|
|
- #if ENABLED(BLUETOOTH)
|
70
|
|
- #define MYSERIAL0 bluetoothSerial
|
71
|
|
- #else
|
72
|
|
- #define MYSERIAL0 Serial
|
73
|
|
- #endif // BLUETOOTH
|
74
|
|
- #else
|
75
|
|
- #include "../HAL/HAL_AVR/MarlinSerial.h"
|
76
|
|
- #define MYSERIAL0 customizedSerial
|
77
|
|
- #endif
|
78
|
|
-#elif defined(ARDUINO_ARCH_SAM)
|
|
64
|
+#ifdef ARDUINO_ARCH_SAM
|
79
|
65
|
// To pull the Serial port definitions and overrides
|
80
|
66
|
#include "../HAL/HAL_DUE/MarlinSerial_Due.h"
|
81
|
67
|
#endif
|