forked from platformio/platformio-core
Add support for Teensy LC board // Resolve #155
This commit is contained in:
@ -40,3 +40,9 @@ platform = teensy
|
|||||||
framework = arduino
|
framework = arduino
|
||||||
board = teensy31
|
board = teensy31
|
||||||
build_flags = -DTEENSY31
|
build_flags = -DTEENSY31
|
||||||
|
|
||||||
|
[env:teensylc]
|
||||||
|
platform = teensy
|
||||||
|
framework = arduino
|
||||||
|
board = teensylc
|
||||||
|
build_flags = -DTEENSYLC
|
||||||
|
@ -71,5 +71,25 @@
|
|||||||
},
|
},
|
||||||
"url": "https://www.pjrc.com/store/teensy31.html",
|
"url": "https://www.pjrc.com/store/teensy31.html",
|
||||||
"vendor": "Teensy"
|
"vendor": "Teensy"
|
||||||
|
},
|
||||||
|
|
||||||
|
"teensylc": {
|
||||||
|
"build": {
|
||||||
|
"core": "teensy3",
|
||||||
|
"extra_flags": "-D__MKL26Z64__",
|
||||||
|
"f_cpu": "48000000L",
|
||||||
|
"ldscript": "mkl26z64.ld",
|
||||||
|
"mcu": "mkl26z64",
|
||||||
|
"cpu": "cortex-m0plus"
|
||||||
|
},
|
||||||
|
"frameworks": ["arduino"],
|
||||||
|
"name": "Teensy LC",
|
||||||
|
"platform": "teensy",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 8192,
|
||||||
|
"maximum_size": 63488
|
||||||
|
},
|
||||||
|
"url": "http://www.pjrc.com/teensy/teensyLC.html",
|
||||||
|
"vendor": "Teensy"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,14 @@ env.Append(
|
|||||||
CXXFLAGS=[
|
CXXFLAGS=[
|
||||||
"-std=gnu++0x",
|
"-std=gnu++0x",
|
||||||
"-felide-constructors"
|
"-felide-constructors"
|
||||||
]
|
],
|
||||||
|
|
||||||
|
LINKFLAGS=[
|
||||||
|
"-Wl,--gc-sections,--relax,--defsym=__rtc_localtime=$UNIX_TIME",
|
||||||
|
"--specs=nano.specs"
|
||||||
|
],
|
||||||
|
|
||||||
|
LIBS=["m"]
|
||||||
)
|
)
|
||||||
|
|
||||||
if isfile(env.subst(join(
|
if isfile(env.subst(join(
|
||||||
|
Reference in New Issue
Block a user