mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Finalize with Teensy platform
This commit is contained in:
@ -1,10 +1,9 @@
|
|||||||
{
|
{
|
||||||
"teensy2": {
|
"teensy20": {
|
||||||
"build": {
|
"build": {
|
||||||
"core": "teensy",
|
"core": "teensy",
|
||||||
"f_cpu": "16000000L",
|
"f_cpu": "16000000L",
|
||||||
"mcu": "atmega32u4",
|
"mcu": "atmega32u4"
|
||||||
"variant": "teensy2"
|
|
||||||
},
|
},
|
||||||
"name": "Teensy 2.0",
|
"name": "Teensy 2.0",
|
||||||
"platform": "teensy",
|
"platform": "teensy",
|
||||||
@ -14,14 +13,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"teensypp2": {
|
"teensy20pp": {
|
||||||
"build": {
|
"build": {
|
||||||
"core": "teensy",
|
"core": "teensy",
|
||||||
"f_cpu": "16000000L",
|
"f_cpu": "16000000L",
|
||||||
"mcu": "at90usb1286",
|
"mcu": "at90usb1286"
|
||||||
"variant": "teensypp2"
|
|
||||||
},
|
},
|
||||||
"name": "Teensy 2.0",
|
"name": "Teensy++ 2.0",
|
||||||
"platform": "teensy",
|
"platform": "teensy",
|
||||||
"upload": {
|
"upload": {
|
||||||
"maximum_ram_size": 8192,
|
"maximum_ram_size": 8192,
|
||||||
@ -35,8 +33,7 @@
|
|||||||
"extra_flags": "-D__MK20DX128__",
|
"extra_flags": "-D__MK20DX128__",
|
||||||
"f_cpu": "48000000L",
|
"f_cpu": "48000000L",
|
||||||
"ldscript": "mk20dx128.ld",
|
"ldscript": "mk20dx128.ld",
|
||||||
"mcu": "mk20dx128",
|
"mcu": "mk20dx128"
|
||||||
"variant": "teensy30"
|
|
||||||
},
|
},
|
||||||
"name": "Teensy 3.0",
|
"name": "Teensy 3.0",
|
||||||
"platform": "teensy",
|
"platform": "teensy",
|
||||||
@ -52,8 +49,7 @@
|
|||||||
"extra_flags": "-D__MK20DX256__",
|
"extra_flags": "-D__MK20DX256__",
|
||||||
"f_cpu": "72000000L",
|
"f_cpu": "72000000L",
|
||||||
"ldscript": "mk20dx256.ld",
|
"ldscript": "mk20dx256.ld",
|
||||||
"mcu": "mk20dx256",
|
"mcu": "mk20dx256"
|
||||||
"variant": "teensy31"
|
|
||||||
},
|
},
|
||||||
"name": "Teensy 3.1",
|
"name": "Teensy 3.1",
|
||||||
"platform": "teensy",
|
"platform": "teensy",
|
||||||
@ -62,4 +58,4 @@
|
|||||||
"maximum_size": 262144
|
"maximum_size": 262144
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# See LICENSE for details.
|
# See LICENSE for details.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Build script for Android Framework (based on Wiring).
|
Build script for Arduino Framework (based on Wiring).
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from os import listdir
|
from os import listdir
|
||||||
|
@ -5,7 +5,9 @@
|
|||||||
Builder for Teensy boards
|
Builder for Teensy boards
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import time
|
||||||
from os.path import isfile, join
|
from os.path import isfile, join
|
||||||
|
from random import randint
|
||||||
|
|
||||||
from SCons.Script import (COMMAND_LINE_TARGETS, AlwaysBuild, Builder, Default,
|
from SCons.Script import (COMMAND_LINE_TARGETS, AlwaysBuild, Builder, Default,
|
||||||
DefaultEnvironment)
|
DefaultEnvironment)
|
||||||
@ -32,7 +34,7 @@ if env.get("BOARD_OPTIONS", {}).get("build", {}).get("core") == "teensy":
|
|||||||
],
|
],
|
||||||
|
|
||||||
CPPDEFINES=[
|
CPPDEFINES=[
|
||||||
"SERIALNUM=-1164905212" # ?????
|
"SERIALNUM=-%d" % randint(1000000000, 2000000000)
|
||||||
],
|
],
|
||||||
|
|
||||||
LINKFLAGS=[
|
LINKFLAGS=[
|
||||||
@ -71,7 +73,7 @@ elif env.get("BOARD_OPTIONS", {}).get("build", {}).get("core") == "teensy3":
|
|||||||
],
|
],
|
||||||
|
|
||||||
CPPDEFINES=[
|
CPPDEFINES=[
|
||||||
"TIME_T=1423046159" # @TODO
|
"TIME_T=%d" % time.time()
|
||||||
],
|
],
|
||||||
|
|
||||||
LINKFLAGS=[
|
LINKFLAGS=[
|
||||||
|
Reference in New Issue
Block a user