Browse Source
Merge pull request #6 from stapelberg/teensy36
add definitions for the Teensy 3.6
pull/15/head
Fernando Trias
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
10 additions and
3 deletions
-
extras/teensy_debug
-
src/TeensyDebug.h
|
|
@ -213,7 +213,7 @@ def createFiles(AVR): |
|
|
|
print("Create %s" % (board)) |
|
|
|
with open(board, mode) as f: |
|
|
|
f.write("menu.gdb=GDB\n") |
|
|
|
for ver in ('41','40','31'): |
|
|
|
for ver in ('41','40','31','36'): |
|
|
|
f.write(""" |
|
|
|
teensy%s.menu.gdb.serial=Take over Serial |
|
|
|
teensy%s.menu.gdb.serial.build.gdb=2 |
|
|
|
|
|
@ -12,9 +12,9 @@ |
|
|
|
#ifndef TEENSY_DEBUG_H |
|
|
|
#define TEENSY_DEBUG_H |
|
|
|
|
|
|
|
// is this a Teensy 3.2? If so, we can support hardware interrupts
|
|
|
|
// is this a Teensy 3.2 or Teensy 3.6? If so, we can support hardware interrupts
|
|
|
|
// and should hijack setup() to set that up.
|
|
|
|
#ifdef __MK20DX256__ |
|
|
|
#if defined(__MK20DX256__) || defined(__MK66FX1M0__) |
|
|
|
#define HAS_FP_MAP |
|
|
|
#endif |
|
|
|
|
|
|
@ -30,6 +30,13 @@ |
|
|
|
#define RAM_END ((void*)0x2FFFFFFF) |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef __MK66FX1M0__ |
|
|
|
#define FLASH_START ((void*)0x0) |
|
|
|
#define FLASH_END ((void*)0x000FFFFF) |
|
|
|
#define RAM_START ((void*)0x1FFF0000) |
|
|
|
#define RAM_END ((void*)0x2002FFFF) |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef __IMXRT1062__ |
|
|
|
#define FLASH_START ((void*)0x60000000) |
|
|
|
#define FLASH_END ((void*)0x601f0000) |
|
|
|