diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-01-13 15:15:19 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-01-13 15:15:19 +0300 |
commit | 36a72fd1cbc274a6f932294f184133e08d681858 (patch) | |
tree | b6a8c1dd2f05d3f54710de9e20960c3a16932e5b /src/Pccb | |
parent | 13084f6566c536df08430cce6c584f5e5c06b5a8 (diff) |
More work on object model
Changed all object model names to use camelCase
Added # operator to return the number of elements in an array or the
length of a string
Replaced M408 P1 by M409 and added flags parameter
Added rr_model to do the same as M409 directly via http
Removed default fan and Z probe assignments in Duet 2 builds
Diffstat (limited to 'src/Pccb')
-rw-r--r-- | src/Pccb/Pins_Pccb.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Pccb/Pins_Pccb.h b/src/Pccb/Pins_Pccb.h index 5afe4a1d..4c9f32e2 100644 --- a/src/Pccb/Pins_Pccb.h +++ b/src/Pccb/Pins_Pccb.h @@ -69,8 +69,6 @@ constexpr uint32_t IAP_IMAGE_END = 0x0047FFFF; // we allow a full 64K on the SA #define SUPPORT_DOTSTAR_LED 1 // set nonzero to support DotStar LED strips #define ALLOCATE_DEFAULT_PORTS 1 -#define NO_EXTRUDER_ENDSTOPS 1 // Temporary!!! - // The physical capabilities of the machine #if defined(PCCB_10) @@ -343,6 +341,8 @@ constexpr unsigned int NumNamedPins = ARRAY_SIZE(PinTable); // Function to look up a pin name pass back the corresponding index into the pin table bool LookupPinName(const char *pn, LogicalPin& lpin, bool& hardwareInverted) noexcept; +#if ALLOCATE_DEFAULT_PORTS + // Default pin allocations constexpr const char *DefaultEndstopPinNames[] = { "stop1", "nil", "stop0" }; // stop0 is the default Z endstop, stop1 is the X endstop constexpr const char *DefaultZProbePinNames = "nil"; @@ -357,6 +357,8 @@ constexpr const char *DefaultFanPinNames[] = { "fan0", "fan1", "fan2", "!fan3+fa constexpr PwmFrequency DefaultFanPwmFrequencies[] = { DefaultFanPwmFreq, DefaultFanPwmFreq, DefaultFanPwmFreq, 25000 }; #endif +#endif + // Timer allocation // TC0 channel 0 is used for step pulse generation and software timers (lower 16 bits) // TC0 channel 1 is currently unused |