Adjust HAL platform defines, comments
This commit is contained in:
parent
d83baf8925
commit
4e8eea8e78
@ -19,9 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: HAL for Arduino Due and compatible (SAM3X8E)
|
* HAL for Arduino Due and compatible (SAM3X8E)
|
||||||
*
|
|
||||||
* For ARDUINO_ARCH_SAM
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef ARDUINO_ARCH_SAM
|
#ifdef ARDUINO_ARCH_SAM
|
||||||
|
@ -22,9 +22,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: HAL for Arduino Due and compatible (SAM3X8E)
|
* HAL for Arduino Due and compatible (SAM3X8E)
|
||||||
*
|
|
||||||
* For ARDUINO_ARCH_SAM
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define CPU_32_BIT
|
#define CPU_32_BIT
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: HAL for Arduino Due and compatible (SAM3X8E)
|
* HAL for Arduino Due and compatible (SAM3X8E)
|
||||||
*
|
*
|
||||||
* For ARDUINO_ARCH_SAM
|
* For ARDUINO_ARCH_SAM
|
||||||
*/
|
*/
|
||||||
|
@ -21,9 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: HAL for Arduino Due and compatible (SAM3X8E)
|
* HAL Timers for Arduino Due and compatible (SAM3X8E)
|
||||||
*
|
|
||||||
* For ARDUINO_ARCH_SAM
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef ARDUINO_ARCH_SAM
|
#ifdef ARDUINO_ARCH_SAM
|
||||||
|
@ -21,9 +21,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* HAL for Arduino Due and compatible (SAM3X8E)
|
* HAL Timers for Arduino Due and compatible (SAM3X8E)
|
||||||
*
|
|
||||||
* For ARDUINO_ARCH_SAM
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: HAL for Espressif ESP32 WiFi
|
* HAL for Espressif ESP32 WiFi
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define CPU_32_BIT
|
#define CPU_32_BIT
|
||||||
|
@ -20,9 +20,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: HAL for Teensy32 (MK20DX256)
|
* HAL for Teensy 3.2 (MK20DX256)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __MK20DX256__
|
#ifdef __MK20DX256__
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: HAL for Teensy 3.5 and Teensy 3.6
|
* HAL for Teensy 3.2 (MK20DX256)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define CPU_32_BIT
|
#define CPU_32_BIT
|
||||||
@ -44,8 +44,9 @@
|
|||||||
//#undef MOTHERBOARD
|
//#undef MOTHERBOARD
|
||||||
//#define MOTHERBOARD BOARD_TEENSY31_32
|
//#define MOTHERBOARD BOARD_TEENSY31_32
|
||||||
|
|
||||||
#ifdef __MK20DX256__
|
#define IS_32BIT_TEENSY 1
|
||||||
#define IS_32BIT_TEENSY 1
|
#define IS_TEENSY_31_32 1
|
||||||
|
#ifndef IS_TEENSY31
|
||||||
#define IS_TEENSY32 1
|
#define IS_TEENSY32 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -51,5 +51,4 @@ void libServo::move(const int value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // HAS_SERVOS
|
#endif // HAS_SERVOS
|
||||||
|
|
||||||
#endif // __MK20DX256__
|
#endif // __MK20DX256__
|
||||||
|
@ -23,8 +23,7 @@
|
|||||||
#if USE_WIRED_EEPROM
|
#if USE_WIRED_EEPROM
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PersistentStore for Arduino-style EEPROM interface
|
* HAL PersistentStore for Teensy 3.2 (MK20DX256)
|
||||||
* with implementations supplied by the framework.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../shared/eeprom_api.h"
|
#include "../shared/eeprom_api.h"
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Teensy3.2 __MK20DX256__
|
* HAL Timers for Teensy 3.2 (MK20DX256)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __MK20DX256__
|
#ifdef __MK20DX256__
|
||||||
|
@ -22,8 +22,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: HAL for
|
* HAL Timers for Teensy 3.2 (MK20DX256)
|
||||||
* Teensy3.2 (__MK20DX256__)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: HAL for Teensy35 (MK64FX512)
|
* HAL for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
#if defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: HAL for Teensy 3.5 and Teensy 3.6
|
* HAL for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define CPU_32_BIT
|
#define CPU_32_BIT
|
||||||
@ -45,13 +45,12 @@
|
|||||||
// Defines
|
// Defines
|
||||||
// ------------------------
|
// ------------------------
|
||||||
|
|
||||||
#ifdef __MK64FX512__
|
#define IS_32BIT_TEENSY 1
|
||||||
#define IS_32BIT_TEENSY 1
|
#define IS_TEENSY_35_36 1
|
||||||
#define IS_TEENSY35 1
|
|
||||||
#endif
|
|
||||||
#ifdef __MK66FX1M0__
|
#ifdef __MK66FX1M0__
|
||||||
#define IS_32BIT_TEENSY 1
|
|
||||||
#define IS_TEENSY36 1
|
#define IS_TEENSY36 1
|
||||||
|
#else // __MK64FX512__
|
||||||
|
#define IS_TEENSY35 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _MSERIAL(X) Serial##X
|
#define _MSERIAL(X) Serial##X
|
||||||
|
@ -19,6 +19,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HAL SPI for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
|
||||||
|
*/
|
||||||
|
|
||||||
#if defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
#if defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
||||||
|
|
||||||
#include "HAL.h"
|
#include "HAL.h"
|
||||||
|
@ -19,6 +19,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HAL Servo for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
|
||||||
|
*/
|
||||||
|
|
||||||
#if defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
#if defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
||||||
|
|
||||||
#include "../../inc/MarlinConfig.h"
|
#include "../../inc/MarlinConfig.h"
|
||||||
@ -51,5 +56,4 @@ void libServo::move(const int value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // HAS_SERVOS
|
#endif // HAS_SERVOS
|
||||||
|
|
||||||
#endif // __MK64FX512__ || __MK66FX1M0__
|
#endif // __MK64FX512__ || __MK66FX1M0__
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HAL Servo for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
|
||||||
|
*/
|
||||||
|
|
||||||
#include <Servo.h>
|
#include <Servo.h>
|
||||||
|
|
||||||
// Inherit and expand on core Servo library
|
// Inherit and expand on core Servo library
|
||||||
|
@ -22,15 +22,14 @@
|
|||||||
*/
|
*/
|
||||||
#if defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
#if defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HAL PersistentStore for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
|
||||||
|
*/
|
||||||
|
|
||||||
#include "../../inc/MarlinConfig.h"
|
#include "../../inc/MarlinConfig.h"
|
||||||
|
|
||||||
#if USE_WIRED_EEPROM
|
#if USE_WIRED_EEPROM
|
||||||
|
|
||||||
/**
|
|
||||||
* PersistentStore for Arduino-style EEPROM interface
|
|
||||||
* with implementations supplied by the framework.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "../shared/eeprom_api.h"
|
#include "../shared/eeprom_api.h"
|
||||||
#include <avr/eeprom.h>
|
#include <avr/eeprom.h>
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Endstop Interrupts
|
* HAL Endstop Interrupts for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
|
||||||
*
|
*
|
||||||
* Without endstop interrupts the endstop pins must be polled continually in
|
* Without endstop interrupts the endstop pins must be polled continually in
|
||||||
* the temperature-ISR via endstops.update(), most of the time finding no change.
|
* the temperature-ISR via endstops.update(), most of the time finding no change.
|
||||||
|
@ -18,6 +18,10 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HAL Pins Debugging for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
|
||||||
|
*/
|
||||||
|
|
||||||
#define NUMBER_PINS_TOTAL NUM_DIGITAL_PINS
|
#define NUMBER_PINS_TOTAL NUM_DIGITAL_PINS
|
||||||
#define MULTI_NAME_PAD 16 // space needed to be pretty if not first name assigned to a pin
|
#define MULTI_NAME_PAD 16 // space needed to be pretty if not first name assigned to a pin
|
||||||
|
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HAL SPI Pins for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
|
||||||
|
*/
|
||||||
|
|
||||||
#define SCK_PIN 13
|
#define SCK_PIN 13
|
||||||
#define MISO_PIN 12
|
#define MISO_PIN 12
|
||||||
#define MOSI_PIN 11
|
#define MOSI_PIN 11
|
||||||
|
@ -21,8 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Teensy3.5 __MK64FX512__
|
* HAL Timers for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
|
||||||
* Teensy3.6 __MK66FX1M0__
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
#if defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
||||||
|
@ -21,9 +21,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: HAL for
|
* HAL Timers for Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0)
|
||||||
* Teensy3.5 (__MK64FX512__)
|
|
||||||
* Teensy3.6 (__MK66FX1M0__)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: HAL for Teensy40 (IMXRT1062)
|
* HAL for Teensy 4.0 / 4.1 (IMXRT1062)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __IMXRT1062__
|
#ifdef __IMXRT1062__
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: HAL for Teensy 4.0 and Teensy 4.1
|
* HAL for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define CPU_32_BIT
|
#define CPU_32_BIT
|
||||||
@ -45,8 +45,9 @@
|
|||||||
// Defines
|
// Defines
|
||||||
// ------------------------
|
// ------------------------
|
||||||
|
|
||||||
#ifdef __IMXRT1062__
|
#define IS_32BIT_TEENSY 1
|
||||||
#define IS_32BIT_TEENSY 1
|
#define IS_TEENSY_40_41 1
|
||||||
|
#ifndef IS_TEENSY40
|
||||||
#define IS_TEENSY41 1
|
#define IS_TEENSY41 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -19,6 +19,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HAL SPI for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef __IMXRT1062__
|
#ifdef __IMXRT1062__
|
||||||
|
|
||||||
#include "HAL.h"
|
#include "HAL.h"
|
||||||
|
@ -19,6 +19,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HAL Servo for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef __IMXRT1062__
|
#ifdef __IMXRT1062__
|
||||||
|
|
||||||
#include "../../inc/MarlinConfig.h"
|
#include "../../inc/MarlinConfig.h"
|
||||||
@ -53,5 +58,4 @@ void libServo::detach() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // HAS_SERVOS
|
#endif // HAS_SERVOS
|
||||||
|
|
||||||
#endif // __IMXRT1062__
|
#endif // __IMXRT1062__
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HAL Servo for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
|
||||||
|
*/
|
||||||
|
|
||||||
#include <PWMServo.h>
|
#include <PWMServo.h>
|
||||||
|
|
||||||
// Inherit and expand on core Servo library
|
// Inherit and expand on core Servo library
|
||||||
|
@ -27,8 +27,7 @@
|
|||||||
#if USE_WIRED_EEPROM
|
#if USE_WIRED_EEPROM
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PersistentStore for Arduino-style EEPROM interface
|
* HAL PersistentStore for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
|
||||||
* with implementations supplied by the framework.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../shared/eeprom_api.h"
|
#include "../shared/eeprom_api.h"
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Endstop Interrupts
|
* HAL Endstop Interrupts for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
|
||||||
*
|
*
|
||||||
* Without endstop interrupts the endstop pins must be polled continually in
|
* Without endstop interrupts the endstop pins must be polled continually in
|
||||||
* the temperature-ISR via endstops.update(), most of the time finding no change.
|
* the temperature-ISR via endstops.update(), most of the time finding no change.
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fast I/O interfaces for Teensy 4
|
* Fast I/O interfaces for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
|
||||||
* These use GPIO functions instead of Direct Port Manipulation, as on AVR.
|
* These use GPIO functions instead of Direct Port Manipulation, as on AVR.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -18,6 +18,10 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HAL Pins Debugging for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
|
||||||
|
*/
|
||||||
|
|
||||||
#warning "PINS_DEBUGGING is not fully supported for Teensy 4.0 / 4.1 so 'M43' may cause hangs."
|
#warning "PINS_DEBUGGING is not fully supported for Teensy 4.0 / 4.1 so 'M43' may cause hangs."
|
||||||
|
|
||||||
#define NUMBER_PINS_TOTAL NUM_DIGITAL_PINS
|
#define NUMBER_PINS_TOTAL NUM_DIGITAL_PINS
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HAL SPI Pins for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
|
||||||
|
*/
|
||||||
|
|
||||||
#define SCK_PIN 13
|
#define SCK_PIN 13
|
||||||
#define MISO_PIN 12
|
#define MISO_PIN 12
|
||||||
#define MOSI_PIN 11
|
#define MOSI_PIN 11
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Teensy4.0/4.1 (__IMXRT1062__)
|
* HAL Timers for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __IMXRT1062__
|
#ifdef __IMXRT1062__
|
||||||
|
@ -21,8 +21,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: HAL for
|
* HAL Timers for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
|
||||||
* Teensy4.0/4.1 (__IMXRT1062__)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -19,6 +19,11 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HAL Watchdog for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef __IMXRT1062__
|
#ifdef __IMXRT1062__
|
||||||
|
|
||||||
#include "../../inc/MarlinConfig.h"
|
#include "../../inc/MarlinConfig.h"
|
||||||
@ -48,5 +53,4 @@ void HAL_watchdog_refresh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // USE_WATCHDOG
|
#endif // USE_WATCHDOG
|
||||||
|
|
||||||
#endif // __IMXRT1062__
|
#endif // __IMXRT1062__
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Watchdog for Teensy4.0/4.1 (__IMXRT1062__)
|
* HAL Watchdog for Teensy 4.0 (IMXRT1062DVL6A) / 4.1 (IMXRT1062DVJ6A)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void watchdog_init();
|
void watchdog_init();
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
#define TEST_BYTE ((char) 0xE5)
|
#define TEST_BYTE ((char) 0xE5)
|
||||||
|
|
||||||
#if defined(__AVR__) || IS_32BIT_TEENSY
|
#if EITHER(__AVR__, IS_32BIT_TEENSY)
|
||||||
|
|
||||||
extern char __bss_end;
|
extern char __bss_end;
|
||||||
char *end_bss = &__bss_end,
|
char *end_bss = &__bss_end,
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
* https://www.pjrc.com/teensy/teensyduino.html
|
* https://www.pjrc.com/teensy/teensyduino.html
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if NOT_TARGET(IS_32BIT_TEENSY)
|
#if NOT_TARGET(IS_TEENSY_31_32)
|
||||||
#error "Oops! Select 'Teensy 3.1' or 'Teensy 3.2' in 'Tools > Board.'"
|
#error "Oops! Select 'Teensy 3.1' or 'Teensy 3.2' in 'Tools > Board.'"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
* https://www.pjrc.com/teensy/teensyduino.html
|
* https://www.pjrc.com/teensy/teensyduino.html
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
|
|
||||||
#if NOT_TARGET(IS_32BIT_TEENSY)
|
#if NOT_TARGET(IS_TEENSY_35_36)
|
||||||
#error "Oops! Select 'Teensy 3.5' or 'Teensy 3.6' in 'Tools > Board.'"
|
#error "Oops! Select 'Teensy 3.5' or 'Teensy 3.6' in 'Tools > Board.'"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -27,12 +27,12 @@
|
|||||||
* https://www.pjrc.com/teensy/teensyduino.html
|
* https://www.pjrc.com/teensy/teensyduino.html
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
|
|
||||||
#if NOT_TARGET(IS_32BIT_TEENSY) || NOT_TARGET(IS_TEENSY41)
|
#if NOT_TARGET(IS_TEENSY41)
|
||||||
#error "Oops! Select 'Teensy 4.1' in 'Tools > Board.'"
|
#error "Oops! Select 'Teensy 4.1' in 'Tools > Board.'"
|
||||||
#else
|
|
||||||
#define BOARD_INFO_NAME "Teensy4.1"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define BOARD_INFO_NAME "Teensy4.1"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plan for Teensy 4.0 and Teensy 4.1:
|
* Plan for Teensy 4.0 and Teensy 4.1:
|
||||||
* USB
|
* USB
|
||||||
|
@ -27,12 +27,12 @@
|
|||||||
* https://www.pjrc.com/teensy/teensyduino.html
|
* https://www.pjrc.com/teensy/teensyduino.html
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
|
|
||||||
#if NOT_TARGET(IS_32BIT_TEENSY) || NOT_TARGET(IS_TEENSY41)
|
#if NOT_TARGET(IS_TEENSY41)
|
||||||
#error "Oops! Select 'Teensy 4.1' in 'Tools > Board.'"
|
#error "Oops! Select 'Teensy 4.1' in 'Tools > Board.'"
|
||||||
#else
|
|
||||||
#define BOARD_INFO_NAME "Teensy4.1"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define BOARD_INFO_NAME "Teensy4.1"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plan for Teensy 4.0 and Teensy 4.1:
|
* Plan for Teensy 4.0 and Teensy 4.1:
|
||||||
* USB
|
* USB
|
||||||
|
@ -78,13 +78,11 @@ uint8_t const SD_CARD_TYPE_SD1 = 1, // Standard capacity V1
|
|||||||
SD_CARD_TYPE_SDHC = 3; // High Capacity SD card
|
SD_CARD_TYPE_SDHC = 3; // High Capacity SD card
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* define SOFTWARE_SPI to use bit-bang SPI
|
* Define SOFTWARE_SPI to use bit-bang SPI
|
||||||
*/
|
*/
|
||||||
#if MEGA_SOFT_SPI
|
#if EITHER(MEGA_SOFT_SPI, USE_SOFTWARE_SPI)
|
||||||
#define SOFTWARE_SPI
|
#define SOFTWARE_SPI
|
||||||
#elif USE_SOFTWARE_SPI
|
#endif
|
||||||
#define SOFTWARE_SPI
|
|
||||||
#endif // MEGA_SOFT_SPI
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class Sd2Card
|
* \class Sd2Card
|
||||||
|
@ -30,19 +30,20 @@
|
|||||||
#include "../SdInfo.h"
|
#include "../SdInfo.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* define SOFTWARE_SPI to use bit-bang SPI
|
* Define SOFTWARE_SPI to use bit-bang SPI
|
||||||
*/
|
*/
|
||||||
#if MEGA_SOFT_SPI || USE_SOFTWARE_SPI
|
#if EITHER(MEGA_SOFT_SPI, USE_SOFTWARE_SPI)
|
||||||
#define SOFTWARE_SPI
|
#define SOFTWARE_SPI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// SPI pin definitions - do not edit here - change in SdFatConfig.h
|
// SPI pin definitions - do not edit here - change in SdFatConfig.h
|
||||||
#if DISABLED(SOFTWARE_SPI)
|
#if ENABLED(SOFTWARE_SPI)
|
||||||
|
#warning "Auto-assigning '10' as the SD_CHIP_SELECT_PIN."
|
||||||
|
#define SD_CHIP_SELECT_PIN 10 // Software SPI chip select pin for the SD
|
||||||
|
#else
|
||||||
// hardware pin defs
|
// hardware pin defs
|
||||||
#define SD_CHIP_SELECT_PIN SS_PIN // The default chip select pin for the SD card is SS.
|
#define SD_CHIP_SELECT_PIN SS_PIN // The default chip select pin for the SD card is SS.
|
||||||
#else // SOFTWARE_SPI
|
#endif
|
||||||
#define SD_CHIP_SELECT_PIN 10 // Software SPI chip select pin for the SD
|
|
||||||
#endif // SOFTWARE_SPI
|
|
||||||
|
|
||||||
class Sd2Card {
|
class Sd2Card {
|
||||||
private:
|
private:
|
||||||
|
@ -100,8 +100,8 @@ Marlin 2.0 introduces a layer of abstraction so that all the existing high-level
|
|||||||
|
|
||||||
boards|processor|speed|flash|sram|logic|fpu
|
boards|processor|speed|flash|sram|logic|fpu
|
||||||
----|---------|-----|-----|----|-----|---
|
----|---------|-----|-----|----|-----|---
|
||||||
[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
|
[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
|
||||||
[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
|
[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
|
||||||
|
|
||||||
## Submitting Patches
|
## Submitting Patches
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user