|
@ -20,13 +20,15 @@ |
|
|
#include "../config.h" |
|
|
#include "../config.h" |
|
|
|
|
|
|
|
|
#ifdef __MARLIN_FIRMWARE__ |
|
|
#ifdef __MARLIN_FIRMWARE__ |
|
|
// Marlin will define the I/O functions for us
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Marlin will define the I/O functions for us
|
|
|
#if ENABLED(LULZBOT_TOUCH_UI) |
|
|
#if ENABLED(LULZBOT_TOUCH_UI) |
|
|
#define FTDI_BASIC |
|
|
#define FTDI_BASIC |
|
|
#define FTDI_EXTENDED |
|
|
#define FTDI_EXTENDED |
|
|
#endif |
|
|
#endif |
|
|
#else |
|
|
|
|
|
|
|
|
#else // !__MARLIN_FIRMWARE__
|
|
|
|
|
|
|
|
|
#include "Arduino.h" |
|
|
#include "Arduino.h" |
|
|
|
|
|
|
|
|
#if !defined(CLCD_USE_SOFT_SPI) |
|
|
#if !defined(CLCD_USE_SOFT_SPI) |
|
@ -200,6 +202,14 @@ |
|
|
|
|
|
|
|
|
#define safe_delay delay |
|
|
#define safe_delay delay |
|
|
|
|
|
|
|
|
|
|
|
// Define macros for compatibility
|
|
|
|
|
|
|
|
|
|
|
|
#define _CAT(a, ...) a ## __VA_ARGS__ |
|
|
|
|
|
#define SWITCH_ENABLED_ 1 |
|
|
|
|
|
#define ENABLED(b) _CAT(SWITCH_ENABLED_, b) |
|
|
|
|
|
#define DISABLED(b) !ENABLED(b) |
|
|
|
|
|
#define ANY(A,B) ENABLED(A) || ENABLED(B) |
|
|
|
|
|
|
|
|
// Remove compiler warning on an unused variable
|
|
|
// Remove compiler warning on an unused variable
|
|
|
#ifndef UNUSED |
|
|
#ifndef UNUSED |
|
|
#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) |
|
|
#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) |
|
@ -208,4 +218,5 @@ |
|
|
#define UNUSED(x) ((void)(x)) |
|
|
#define UNUSED(x) ((void)(x)) |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
#endif //!defined(__MARLIN_FIRMWARE__)
|
|
|
|
|
|
|
|
|
#endif // !__MARLIN_FIRMWARE__
|
|
|