diff options
author | David Crocker <dcrocker@eschertech.com> | 2018-07-15 01:14:45 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2018-07-15 01:14:45 +0300 |
commit | 1758dc9812585ff1b4a055fb4f4b5038a5dabc50 (patch) | |
tree | f54471d1ed16d10dc72e77e611f56a95cae6de30 /src/Pins.h | |
parent | 035701a2f2025a8afd261dc3358d19254f7e0c77 (diff) |
Added PCCB configuration
Added support for PCCB
Moves stepper driver support into a separate folder
Diffstat (limited to 'src/Pins.h')
-rw-r--r-- | src/Pins.h | 27 |
1 files changed, 24 insertions, 3 deletions
@@ -16,8 +16,10 @@ # define PLATFORM DuetNG # elif defined(__SAME70Q21__) # define PLATFORM SAME70_TEST -# elif defined(__SAM4S8C__) +# elif defined(DUET_M) # define PLATFORM DuetM +# elif defined(PCCB) +# define PLATFORM Pccb # else # error Unknown platform # endif @@ -30,8 +32,10 @@ # define P_XSTR(x) P_STR(x) # define P_INCLUDE_FILE P_XSTR(P_CONCAT(PLATFORM,P_CONCAT(/Pins_,P_CONCAT(PLATFORM,.h)))) #endif + #include P_INCLUDE_FILE +// Apply default values to anything not configured #ifndef SUPPORT_NONLINEAR_EXTRUSION # define SUPPORT_NONLINEAR_EXTRUSION 1 // for now this is always enabled #endif @@ -41,11 +45,28 @@ #endif #ifndef SUPPORT_12864_LCD -# define SUPPORT_12864_LCD 0 +# define SUPPORT_12864_LCD 0 #endif #ifndef USE_CACHE -# define USE_CACHE 0 +# define USE_CACHE 0 +#endif + +#ifndef SUPPORT_TMC2660 +# define SUPPORT_TMC2660 0 +#endif + +#ifndef SUPPORT_TMC22xx +# define SUPPORT_TMC22xx 0 +#endif + +#define HAS_SMART_DRIVERS (SUPPORT_TMC2660 || SUPPORT_TMC22xx) +#define HAS_STALL_DETECT SUPPORT_TMC2660 + +#define HAS_UNIFIED_NETWORKING (HAS_LWIP_NETWORKING || HAS_WIFI_NETWORKING || HAS_W5500_NETWORKING) + +#if SUPPORT_DHT_SENSOR && !defined(RTOS) +# error DHT sensor support requires RTOS #endif #endif // PINS_H__ |