[2.0.x] Teensy 3.1 and 3.2 support (#11460)
This commit is contained in:
committed by
Scott Lahteine
parent
409a0632af
commit
7ecb8b4af5
@ -84,6 +84,17 @@
|
||||
#define END_FLASH_ADDR 0x08100000
|
||||
#endif
|
||||
|
||||
#ifdef __MK20DX256__
|
||||
// For MK20DX256 in TEENSY 3.1 or TEENSY 3.2
|
||||
// SRAM (0x1FFF8000 - 0x20008000) (64kb)
|
||||
// FLASH (0x00000000 - 0x00040000) (256kb)
|
||||
//
|
||||
#define START_SRAM_ADDR 0x1FFF8000
|
||||
#define END_SRAM_ADDR 0x20008000
|
||||
#define START_FLASH_ADDR 0x00000000
|
||||
#define END_FLASH_ADDR 0x00040000
|
||||
#endif
|
||||
|
||||
#ifdef __MK64FX512__
|
||||
// For MK64FX512 in TEENSY 3.5
|
||||
// SRAM (0x1FFF0000 - 0x20020000) (192kb)
|
||||
|
@ -66,12 +66,12 @@
|
||||
* With DEACTIVATE_SERVOS_AFTER_MOVE wait SERVO_DELAY and detach.
|
||||
*/
|
||||
|
||||
#ifndef SERVO_H
|
||||
#define SERVO_H
|
||||
|
||||
#if IS_32BIT_TEENSY
|
||||
#include "../HAL_TEENSY35_36/HAL_Servo_Teensy.h" // Teensy HAL uses an inherited library
|
||||
#pragma once
|
||||
|
||||
#if IS_TEENSY32
|
||||
#include "../HAL_TEENSY31_32/HAL_Servo_Teensy.h"
|
||||
#elif IS_TEENSY35 || IS_TEENSY36
|
||||
#include "../HAL_TEENSY35_36/HAL_Servo_Teensy.h"
|
||||
#elif defined(TARGET_LPC1768)
|
||||
#include "../HAL_LPC1768/LPC1768_Servo.h"
|
||||
#elif defined(STM32F1) || defined(STM32F1xx)
|
||||
@ -111,5 +111,3 @@
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif // SERVO_H
|
||||
|
Reference in New Issue
Block a user