Browse Source

Adjust HAL platform defines, comments

Scott Lahteine 3 years ago
parent
commit
4e8eea8e78
45 changed files with 108 additions and 80 deletions
  1. 1
    3
      Marlin/src/HAL/DUE/HAL.cpp
  2. 1
    3
      Marlin/src/HAL/DUE/HAL.h
  3. 1
    1
      Marlin/src/HAL/DUE/HAL_SPI.cpp
  4. 1
    3
      Marlin/src/HAL/DUE/timers.cpp
  5. 1
    3
      Marlin/src/HAL/DUE/timers.h
  6. 1
    1
      Marlin/src/HAL/ESP32/HAL.h
  7. 1
    2
      Marlin/src/HAL/TEENSY31_32/HAL.cpp
  8. 4
    3
      Marlin/src/HAL/TEENSY31_32/HAL.h
  9. 0
    1
      Marlin/src/HAL/TEENSY31_32/Servo.cpp
  10. 1
    2
      Marlin/src/HAL/TEENSY31_32/eeprom.cpp
  11. 1
    1
      Marlin/src/HAL/TEENSY31_32/timers.cpp
  12. 1
    2
      Marlin/src/HAL/TEENSY31_32/timers.h
  13. 1
    1
      Marlin/src/HAL/TEENSY35_36/HAL.cpp
  14. 5
    6
      Marlin/src/HAL/TEENSY35_36/HAL.h
  15. 5
    0
      Marlin/src/HAL/TEENSY35_36/HAL_SPI.cpp
  16. 5
    1
      Marlin/src/HAL/TEENSY35_36/Servo.cpp
  17. 4
    0
      Marlin/src/HAL/TEENSY35_36/Servo.h
  18. 4
    5
      Marlin/src/HAL/TEENSY35_36/eeprom.cpp
  19. 1
    1
      Marlin/src/HAL/TEENSY35_36/endstop_interrupts.h
  20. 4
    0
      Marlin/src/HAL/TEENSY35_36/pinsDebug.h
  21. 4
    0
      Marlin/src/HAL/TEENSY35_36/spi_pins.h
  22. 1
    2
      Marlin/src/HAL/TEENSY35_36/timers.cpp
  23. 1
    3
      Marlin/src/HAL/TEENSY35_36/timers.h
  24. 1
    1
      Marlin/src/HAL/TEENSY40_41/HAL.cpp
  25. 4
    3
      Marlin/src/HAL/TEENSY40_41/HAL.h
  26. 5
    0
      Marlin/src/HAL/TEENSY40_41/HAL_SPI.cpp
  27. 5
    1
      Marlin/src/HAL/TEENSY40_41/Servo.cpp
  28. 4
    0
      Marlin/src/HAL/TEENSY40_41/Servo.h
  29. 1
    2
      Marlin/src/HAL/TEENSY40_41/eeprom.cpp
  30. 1
    1
      Marlin/src/HAL/TEENSY40_41/endstop_interrupts.h
  31. 1
    1
      Marlin/src/HAL/TEENSY40_41/fastio.h
  32. 4
    0
      Marlin/src/HAL/TEENSY40_41/pinsDebug.h
  33. 4
    0
      Marlin/src/HAL/TEENSY40_41/spi_pins.h
  34. 1
    1
      Marlin/src/HAL/TEENSY40_41/timers.cpp
  35. 1
    2
      Marlin/src/HAL/TEENSY40_41/timers.h
  36. 5
    1
      Marlin/src/HAL/TEENSY40_41/watchdog.cpp
  37. 1
    1
      Marlin/src/HAL/TEENSY40_41/watchdog.h
  38. 1
    1
      Marlin/src/gcode/calibrate/M100.cpp
  39. 1
    1
      Marlin/src/pins/teensy3/pins_TEENSY31_32.h
  40. 1
    1
      Marlin/src/pins/teensy3/pins_TEENSY35_36.h
  41. 3
    3
      Marlin/src/pins/teensy4/pins_T41U5XBB.h
  42. 3
    3
      Marlin/src/pins/teensy4/pins_TEENSY41.h
  43. 3
    5
      Marlin/src/sd/Sd2Card.h
  44. 7
    6
      Marlin/src/sd/usb_flashdrive/Sd2Card_FlashDrive.h
  45. 2
    2
      README.md

+ 1
- 3
Marlin/src/HAL/DUE/HAL.cpp View File

@@ -19,9 +19,7 @@
19 19
  */
20 20
 
21 21
 /**
22
- * Description: HAL for Arduino Due and compatible (SAM3X8E)
23
- *
24
- * For ARDUINO_ARCH_SAM
22
+ * HAL for Arduino Due and compatible (SAM3X8E)
25 23
  */
26 24
 
27 25
 #ifdef ARDUINO_ARCH_SAM

+ 1
- 3
Marlin/src/HAL/DUE/HAL.h View File

@@ -22,9 +22,7 @@
22 22
 #pragma once
23 23
 
24 24
 /**
25
- * Description: HAL for Arduino Due and compatible (SAM3X8E)
26
- *
27
- * For ARDUINO_ARCH_SAM
25
+ * HAL for Arduino Due and compatible (SAM3X8E)
28 26
  */
29 27
 
30 28
 #define CPU_32_BIT

+ 1
- 1
Marlin/src/HAL/DUE/HAL_SPI.cpp View File

@@ -30,7 +30,7 @@
30 30
  */
31 31
 
32 32
 /**
33
- * Description: HAL for Arduino Due and compatible (SAM3X8E)
33
+ * HAL for Arduino Due and compatible (SAM3X8E)
34 34
  *
35 35
  * For ARDUINO_ARCH_SAM
36 36
  */

+ 1
- 3
Marlin/src/HAL/DUE/timers.cpp View File

@@ -21,9 +21,7 @@
21 21
  */
22 22
 
23 23
 /**
24
- * Description: HAL for Arduino Due and compatible (SAM3X8E)
25
- *
26
- * For ARDUINO_ARCH_SAM
24
+ * HAL Timers for Arduino Due and compatible (SAM3X8E)
27 25
  */
28 26
 
29 27
 #ifdef ARDUINO_ARCH_SAM

+ 1
- 3
Marlin/src/HAL/DUE/timers.h View File

@@ -21,9 +21,7 @@
21 21
 #pragma once
22 22
 
23 23
 /**
24
- * HAL for Arduino Due and compatible (SAM3X8E)
25
- *
26
- * For ARDUINO_ARCH_SAM
24
+ * HAL Timers for Arduino Due and compatible (SAM3X8E)
27 25
  */
28 26
 
29 27
 #include <stdint.h>

+ 1
- 1
Marlin/src/HAL/ESP32/HAL.h View File

@@ -20,7 +20,7 @@
20 20
 #pragma once
21 21
 
22 22
 /**
23
- * Description: HAL for Espressif ESP32 WiFi
23
+ * HAL for Espressif ESP32 WiFi
24 24
  */
25 25
 
26 26
 #define CPU_32_BIT

+ 1
- 2
Marlin/src/HAL/TEENSY31_32/HAL.cpp View File

@@ -20,9 +20,8 @@
20 20
  *
21 21
  */
22 22
 
23
-
24 23
 /**
25
- * Description: HAL for Teensy32 (MK20DX256)
24
+ * HAL for Teensy 3.2 (MK20DX256)
26 25
  */
27 26
 
28 27
 #ifdef __MK20DX256__

+ 4
- 3
Marlin/src/HAL/TEENSY31_32/HAL.h View File

@@ -22,7 +22,7 @@
22 22
 #pragma once
23 23
 
24 24
 /**
25
- * Description: HAL for Teensy 3.5 and Teensy 3.6
25
+ * HAL for Teensy 3.2 (MK20DX256)
26 26
  */
27 27
 
28 28
 #define CPU_32_BIT
@@ -44,8 +44,9 @@
44 44
 //#undef MOTHERBOARD
45 45
 //#define MOTHERBOARD BOARD_TEENSY31_32
46 46
 
47
-#ifdef __MK20DX256__
48
-  #define IS_32BIT_TEENSY 1
47
+#define IS_32BIT_TEENSY 1
48
+#define IS_TEENSY_31_32 1
49
+#ifndef IS_TEENSY31
49 50
   #define IS_TEENSY32 1
50 51
 #endif
51 52
 

+ 0
- 1
Marlin/src/HAL/TEENSY31_32/Servo.cpp View File

@@ -51,5 +51,4 @@ void libServo::move(const int value) {
51 51
 }
52 52
 
53 53
 #endif // HAS_SERVOS
54
-
55 54
 #endif // __MK20DX256__

+ 1
- 2
Marlin/src/HAL/TEENSY31_32/eeprom.cpp View File

@@ -23,8 +23,7 @@
23 23
 #if USE_WIRED_EEPROM
24 24
 
25 25
 /**
26
- * PersistentStore for Arduino-style EEPROM interface
27
- * with implementations supplied by the framework.
26
+ * HAL PersistentStore for Teensy 3.2 (MK20DX256)
28 27
  */
29 28
 
30 29
 #include "../shared/eeprom_api.h"

+ 1
- 1
Marlin/src/HAL/TEENSY31_32/timers.cpp View File

@@ -21,7 +21,7 @@
21 21
  */
22 22
 
23 23
 /**
24
- * Teensy3.2 __MK20DX256__
24
+ * HAL Timers for Teensy 3.2 (MK20DX256)
25 25
  */
26 26
 
27 27
 #ifdef __MK20DX256__

+ 1
- 2
Marlin/src/HAL/TEENSY31_32/timers.h View File

@@ -22,8 +22,7 @@
22 22
 #pragma once
23 23
 
24 24
 /**
25
- * Description: HAL for
26
- * Teensy3.2 (__MK20DX256__)
25
+ * HAL Timers for Teensy 3.2 (MK20DX256)
27 26
  */
28 27
 
29 28
 #include <stdint.h>

+ 1
- 1
Marlin/src/HAL/TEENSY35_36/HAL.cpp View File

@@ -21,7 +21,7 @@
21 21
  */
22 22
 
23 23
 /**
24
- * Description: HAL for Teensy35 (MK64FX512)
24
+ * HAL for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
25 25
  */
26 26
 
27 27
 #if defined(__MK64FX512__) || defined(__MK66FX1M0__)

+ 5
- 6
Marlin/src/HAL/TEENSY35_36/HAL.h View File

@@ -22,7 +22,7 @@
22 22
 #pragma once
23 23
 
24 24
 /**
25
- * Description: HAL for Teensy 3.5 and Teensy 3.6
25
+ * HAL for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
26 26
  */
27 27
 
28 28
 #define CPU_32_BIT
@@ -45,13 +45,12 @@
45 45
 // Defines
46 46
 // ------------------------
47 47
 
48
-#ifdef __MK64FX512__
49
-  #define IS_32BIT_TEENSY 1
50
-  #define IS_TEENSY35 1
51
-#endif
48
+#define IS_32BIT_TEENSY 1
49
+#define IS_TEENSY_35_36 1
52 50
 #ifdef __MK66FX1M0__
53
-  #define IS_32BIT_TEENSY 1
54 51
   #define IS_TEENSY36 1
52
+#else // __MK64FX512__
53
+  #define IS_TEENSY35 1
55 54
 #endif
56 55
 
57 56
 #define _MSERIAL(X) Serial##X

+ 5
- 0
Marlin/src/HAL/TEENSY35_36/HAL_SPI.cpp View File

@@ -19,6 +19,11 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+
23
+/**
24
+ * HAL SPI for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
25
+ */
26
+
22 27
 #if defined(__MK64FX512__) || defined(__MK66FX1M0__)
23 28
 
24 29
 #include "HAL.h"

+ 5
- 1
Marlin/src/HAL/TEENSY35_36/Servo.cpp View File

@@ -19,6 +19,11 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+
23
+/**
24
+ * HAL Servo for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
25
+ */
26
+
22 27
 #if defined(__MK64FX512__) || defined(__MK66FX1M0__)
23 28
 
24 29
 #include "../../inc/MarlinConfig.h"
@@ -51,5 +56,4 @@ void libServo::move(const int value) {
51 56
 }
52 57
 
53 58
 #endif // HAS_SERVOS
54
-
55 59
 #endif // __MK64FX512__ || __MK66FX1M0__

+ 4
- 0
Marlin/src/HAL/TEENSY35_36/Servo.h View File

@@ -21,6 +21,10 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
+/**
25
+ * HAL Servo for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
26
+ */
27
+
24 28
 #include <Servo.h>
25 29
 
26 30
 // Inherit and expand on core Servo library

+ 4
- 5
Marlin/src/HAL/TEENSY35_36/eeprom.cpp View File

@@ -22,15 +22,14 @@
22 22
  */
23 23
 #if defined(__MK64FX512__) || defined(__MK66FX1M0__)
24 24
 
25
+/**
26
+ * HAL PersistentStore for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
27
+ */
28
+
25 29
 #include "../../inc/MarlinConfig.h"
26 30
 
27 31
 #if USE_WIRED_EEPROM
28 32
 
29
-/**
30
- * PersistentStore for Arduino-style EEPROM interface
31
- * with implementations supplied by the framework.
32
- */
33
-
34 33
 #include "../shared/eeprom_api.h"
35 34
 #include <avr/eeprom.h>
36 35
 

+ 1
- 1
Marlin/src/HAL/TEENSY35_36/endstop_interrupts.h View File

@@ -22,7 +22,7 @@
22 22
 #pragma once
23 23
 
24 24
 /**
25
- * Endstop Interrupts
25
+ * HAL Endstop Interrupts for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
26 26
  *
27 27
  * Without endstop interrupts the endstop pins must be polled continually in
28 28
  * the temperature-ISR via endstops.update(), most of the time finding no change.

+ 4
- 0
Marlin/src/HAL/TEENSY35_36/pinsDebug.h View File

@@ -18,6 +18,10 @@
18 18
  */
19 19
 #pragma once
20 20
 
21
+/**
22
+ * HAL Pins Debugging for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
23
+ */
24
+
21 25
 #define NUMBER_PINS_TOTAL NUM_DIGITAL_PINS
22 26
 #define MULTI_NAME_PAD 16 // space needed to be pretty if not first name assigned to a pin
23 27
 

+ 4
- 0
Marlin/src/HAL/TEENSY35_36/spi_pins.h View File

@@ -21,6 +21,10 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
+/**
25
+ * HAL SPI Pins for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
26
+ */
27
+
24 28
 #define SCK_PIN   13
25 29
 #define MISO_PIN  12
26 30
 #define MOSI_PIN  11

+ 1
- 2
Marlin/src/HAL/TEENSY35_36/timers.cpp View File

@@ -21,8 +21,7 @@
21 21
  */
22 22
 
23 23
 /**
24
- * Teensy3.5 __MK64FX512__
25
- * Teensy3.6 __MK66FX1M0__
24
+ * HAL Timers for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
26 25
  */
27 26
 
28 27
 #if defined(__MK64FX512__) || defined(__MK66FX1M0__)

+ 1
- 3
Marlin/src/HAL/TEENSY35_36/timers.h View File

@@ -21,9 +21,7 @@
21 21
 #pragma once
22 22
 
23 23
 /**
24
- * Description: HAL for
25
- * Teensy3.5 (__MK64FX512__)
26
- * Teensy3.6 (__MK66FX1M0__)
24
+ * HAL Timers for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
27 25
  */
28 26
 
29 27
 #include <stdint.h>

+ 1
- 1
Marlin/src/HAL/TEENSY40_41/HAL.cpp View File

@@ -21,7 +21,7 @@
21 21
  */
22 22
 
23 23
 /**
24
- * Description: HAL for Teensy40 (IMXRT1062)
24
+ * HAL for Teensy 4.0 / 4.1 (IMXRT1062)
25 25
  */
26 26
 
27 27
 #ifdef __IMXRT1062__

+ 4
- 3
Marlin/src/HAL/TEENSY40_41/HAL.h View File

@@ -22,7 +22,7 @@
22 22
 #pragma once
23 23
 
24 24
 /**
25
- * Description: HAL for Teensy 4.0 and Teensy 4.1
25
+ * HAL for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
26 26
  */
27 27
 
28 28
 #define CPU_32_BIT
@@ -45,8 +45,9 @@
45 45
 // Defines
46 46
 // ------------------------
47 47
 
48
-#ifdef __IMXRT1062__
49
-  #define IS_32BIT_TEENSY 1
48
+#define IS_32BIT_TEENSY 1
49
+#define IS_TEENSY_40_41 1
50
+#ifndef IS_TEENSY40
50 51
   #define IS_TEENSY41 1
51 52
 #endif
52 53
 

+ 5
- 0
Marlin/src/HAL/TEENSY40_41/HAL_SPI.cpp View File

@@ -19,6 +19,11 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+
23
+/**
24
+ * HAL SPI for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
25
+ */
26
+
22 27
 #ifdef __IMXRT1062__
23 28
 
24 29
 #include "HAL.h"

+ 5
- 1
Marlin/src/HAL/TEENSY40_41/Servo.cpp View File

@@ -19,6 +19,11 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+
23
+/**
24
+ * HAL Servo for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
25
+ */
26
+
22 27
 #ifdef __IMXRT1062__
23 28
 
24 29
 #include "../../inc/MarlinConfig.h"
@@ -53,5 +58,4 @@ void libServo::detach() {
53 58
 }
54 59
 
55 60
 #endif // HAS_SERVOS
56
-
57 61
 #endif // __IMXRT1062__

+ 4
- 0
Marlin/src/HAL/TEENSY40_41/Servo.h View File

@@ -21,6 +21,10 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
+/**
25
+ * HAL Servo for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
26
+ */
27
+
24 28
 #include <PWMServo.h>
25 29
 
26 30
 // Inherit and expand on core Servo library

+ 1
- 2
Marlin/src/HAL/TEENSY40_41/eeprom.cpp View File

@@ -27,8 +27,7 @@
27 27
 #if USE_WIRED_EEPROM
28 28
 
29 29
 /**
30
- * PersistentStore for Arduino-style EEPROM interface
31
- * with implementations supplied by the framework.
30
+ * HAL PersistentStore for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
32 31
  */
33 32
 
34 33
 #include "../shared/eeprom_api.h"

+ 1
- 1
Marlin/src/HAL/TEENSY40_41/endstop_interrupts.h View File

@@ -22,7 +22,7 @@
22 22
 #pragma once
23 23
 
24 24
 /**
25
- * Endstop Interrupts
25
+ * HAL Endstop Interrupts for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
26 26
  *
27 27
  * Without endstop interrupts the endstop pins must be polled continually in
28 28
  * the temperature-ISR via endstops.update(), most of the time finding no change.

+ 1
- 1
Marlin/src/HAL/TEENSY40_41/fastio.h View File

@@ -23,7 +23,7 @@
23 23
 #pragma once
24 24
 
25 25
 /**
26
- * Fast I/O interfaces for Teensy 4
26
+ * Fast I/O interfaces for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
27 27
  * These use GPIO functions instead of Direct Port Manipulation, as on AVR.
28 28
  */
29 29
 

+ 4
- 0
Marlin/src/HAL/TEENSY40_41/pinsDebug.h View File

@@ -18,6 +18,10 @@
18 18
  */
19 19
 #pragma once
20 20
 
21
+/**
22
+ * HAL Pins Debugging for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
23
+ */
24
+
21 25
 #warning "PINS_DEBUGGING is not fully supported for Teensy 4.0 / 4.1 so 'M43' may cause hangs."
22 26
 
23 27
 #define NUMBER_PINS_TOTAL NUM_DIGITAL_PINS

+ 4
- 0
Marlin/src/HAL/TEENSY40_41/spi_pins.h View File

@@ -21,6 +21,10 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
+/**
25
+ * HAL SPI Pins for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
26
+ */
27
+
24 28
 #define SCK_PIN   13
25 29
 #define MISO_PIN  12
26 30
 #define MOSI_PIN  11

+ 1
- 1
Marlin/src/HAL/TEENSY40_41/timers.cpp View File

@@ -21,7 +21,7 @@
21 21
  */
22 22
 
23 23
 /**
24
- * Teensy4.0/4.1 (__IMXRT1062__)
24
+ * HAL Timers for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
25 25
  */
26 26
 
27 27
 #ifdef __IMXRT1062__

+ 1
- 2
Marlin/src/HAL/TEENSY40_41/timers.h View File

@@ -21,8 +21,7 @@
21 21
 #pragma once
22 22
 
23 23
 /**
24
- * Description: HAL for
25
- * Teensy4.0/4.1 (__IMXRT1062__)
24
+ * HAL Timers for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
26 25
  */
27 26
 
28 27
 #include <stdint.h>

+ 5
- 1
Marlin/src/HAL/TEENSY40_41/watchdog.cpp View File

@@ -19,6 +19,11 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+
23
+/**
24
+ * HAL Watchdog for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
25
+ */
26
+
22 27
 #ifdef __IMXRT1062__
23 28
 
24 29
 #include "../../inc/MarlinConfig.h"
@@ -48,5 +53,4 @@ void HAL_watchdog_refresh() {
48 53
 }
49 54
 
50 55
 #endif // USE_WATCHDOG
51
-
52 56
 #endif // __IMXRT1062__

+ 1
- 1
Marlin/src/HAL/TEENSY40_41/watchdog.h View File

@@ -22,7 +22,7 @@
22 22
 #pragma once
23 23
 
24 24
 /**
25
- * Watchdog for Teensy4.0/4.1 (__IMXRT1062__)
25
+ * HAL Watchdog for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
26 26
  */
27 27
 
28 28
 void watchdog_init();

+ 1
- 1
Marlin/src/gcode/calibrate/M100.cpp View File

@@ -60,7 +60,7 @@
60 60
 
61 61
 #define TEST_BYTE ((char) 0xE5)
62 62
 
63
-#if defined(__AVR__) || IS_32BIT_TEENSY
63
+#if EITHER(__AVR__, IS_32BIT_TEENSY)
64 64
 
65 65
   extern char __bss_end;
66 66
   char *end_bss = &__bss_end,

+ 1
- 1
Marlin/src/pins/teensy3/pins_TEENSY31_32.h View File

@@ -27,7 +27,7 @@
27 27
  * https://www.pjrc.com/teensy/teensyduino.html
28 28
  */
29 29
 
30
-#if NOT_TARGET(IS_32BIT_TEENSY)
30
+#if NOT_TARGET(IS_TEENSY_31_32)
31 31
   #error "Oops! Select 'Teensy 3.1' or 'Teensy 3.2' in 'Tools > Board.'"
32 32
 #endif
33 33
 

+ 1
- 1
Marlin/src/pins/teensy3/pins_TEENSY35_36.h View File

@@ -27,7 +27,7 @@
27 27
 * https://www.pjrc.com/teensy/teensyduino.html
28 28
 ****************************************************************************************/
29 29
 
30
-#if NOT_TARGET(IS_32BIT_TEENSY)
30
+#if NOT_TARGET(IS_TEENSY_35_36)
31 31
   #error "Oops! Select 'Teensy 3.5' or 'Teensy 3.6' in 'Tools > Board.'"
32 32
 #endif
33 33
 

+ 3
- 3
Marlin/src/pins/teensy4/pins_T41U5XBB.h View File

@@ -27,12 +27,12 @@
27 27
 * https://www.pjrc.com/teensy/teensyduino.html
28 28
 ****************************************************************************************/
29 29
 
30
-#if NOT_TARGET(IS_32BIT_TEENSY) || NOT_TARGET(IS_TEENSY41)
30
+#if NOT_TARGET(IS_TEENSY41)
31 31
   #error "Oops! Select 'Teensy 4.1' in 'Tools > Board.'"
32
-#else
33
-  #define BOARD_INFO_NAME "Teensy4.1"
34 32
 #endif
35 33
 
34
+#define BOARD_INFO_NAME "Teensy4.1"
35
+
36 36
 /**
37 37
  * Plan for Teensy 4.0 and Teensy 4.1:
38 38
  *                                     USB

+ 3
- 3
Marlin/src/pins/teensy4/pins_TEENSY41.h View File

@@ -27,12 +27,12 @@
27 27
 * https://www.pjrc.com/teensy/teensyduino.html
28 28
 ****************************************************************************************/
29 29
 
30
-#if NOT_TARGET(IS_32BIT_TEENSY) || NOT_TARGET(IS_TEENSY41)
30
+#if NOT_TARGET(IS_TEENSY41)
31 31
   #error "Oops! Select 'Teensy 4.1' in 'Tools > Board.'"
32
-#else
33
-  #define BOARD_INFO_NAME "Teensy4.1"
34 32
 #endif
35 33
 
34
+#define BOARD_INFO_NAME "Teensy4.1"
35
+
36 36
 /**
37 37
  * Plan for Teensy 4.0 and Teensy 4.1:
38 38
  *                                            USB

+ 3
- 5
Marlin/src/sd/Sd2Card.h View File

@@ -78,13 +78,11 @@ uint8_t const SD_CARD_TYPE_SD1  = 1,                    // Standard capacity V1
78 78
               SD_CARD_TYPE_SDHC = 3;                    // High Capacity SD card
79 79
 
80 80
 /**
81
- * define SOFTWARE_SPI to use bit-bang SPI
81
+ * Define SOFTWARE_SPI to use bit-bang SPI
82 82
  */
83
-#if MEGA_SOFT_SPI
83
+#if EITHER(MEGA_SOFT_SPI, USE_SOFTWARE_SPI)
84 84
   #define SOFTWARE_SPI
85
-#elif USE_SOFTWARE_SPI
86
-  #define SOFTWARE_SPI
87
-#endif  // MEGA_SOFT_SPI
85
+#endif
88 86
 
89 87
 /**
90 88
  * \class Sd2Card

+ 7
- 6
Marlin/src/sd/usb_flashdrive/Sd2Card_FlashDrive.h View File

@@ -30,19 +30,20 @@
30 30
 #include "../SdInfo.h"
31 31
 
32 32
 /**
33
- * define SOFTWARE_SPI to use bit-bang SPI
33
+ * Define SOFTWARE_SPI to use bit-bang SPI
34 34
  */
35
-#if MEGA_SOFT_SPI || USE_SOFTWARE_SPI
35
+#if EITHER(MEGA_SOFT_SPI, USE_SOFTWARE_SPI)
36 36
   #define SOFTWARE_SPI
37 37
 #endif
38 38
 
39 39
 // SPI pin definitions - do not edit here - change in SdFatConfig.h
40
-#if DISABLED(SOFTWARE_SPI)
40
+#if ENABLED(SOFTWARE_SPI)
41
+  #warning "Auto-assigning '10' as the SD_CHIP_SELECT_PIN."
42
+  #define SD_CHIP_SELECT_PIN  10                // Software SPI chip select pin for the SD
43
+#else
41 44
   // hardware pin defs
42 45
   #define SD_CHIP_SELECT_PIN  SS_PIN            // The default chip select pin for the SD card is SS.
43
-#else  // SOFTWARE_SPI
44
-  #define SD_CHIP_SELECT_PIN  10                // Software SPI chip select pin for the SD
45
-#endif // SOFTWARE_SPI
46
+#endif
46 47
 
47 48
 class Sd2Card {
48 49
   private:

+ 2
- 2
README.md View File

@@ -100,8 +100,8 @@ Marlin 2.0 introduces a layer of abstraction so that all the existing high-level
100 100
 
101 101
   boards|processor|speed|flash|sram|logic|fpu
102 102
   ----|---------|-----|-----|----|-----|---
103
-  [Teensy 4.0](https://www.pjrc.com/store/teensy40.html)|[IMXRT1062](https://www.mouser.com/new/nxp-semiconductors/nxp-imx-rt1060-crossover-processor/) ARM-Cortex M7|600MHz|1M|2M|3.3V|yes
104
-  [Teensy 4.1](https://www.pjrc.com/store/teensy41.html)|[IMXRT1062](https://www.mouser.com/new/nxp-semiconductors/nxp-imx-rt1060-crossover-processor/) ARM-Cortex M7|600MHz|1M|2M|3.3V|yes
103
+  [Teensy 4.0](https://www.pjrc.com/store/teensy40.html)|[IMXRT1062DVL6A](https://www.mouser.com/new/nxp-semiconductors/nxp-imx-rt1060-crossover-processor/) ARM-Cortex M7|600MHz|1M|2M|3.3V|yes
104
+  [Teensy 4.1](https://www.pjrc.com/store/teensy41.html)|[IMXRT1062DVJ6A](https://www.mouser.com/new/nxp-semiconductors/nxp-imx-rt1060-crossover-processor/) ARM-Cortex M7|600MHz|1M|2M|3.3V|yes
105 105
 
106 106
 ## Submitting Patches
107 107
 

Loading…
Cancel
Save