mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Add support for Teensy LC board // Resolve #155
This commit is contained in:
@ -40,3 +40,9 @@ platform = teensy
|
||||
framework = arduino
|
||||
board = teensy31
|
||||
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",
|
||||
"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=[
|
||||
"-std=gnu++0x",
|
||||
"-felide-constructors"
|
||||
]
|
||||
],
|
||||
|
||||
LINKFLAGS=[
|
||||
"-Wl,--gc-sections,--relax,--defsym=__rtc_localtime=$UNIX_TIME",
|
||||
"--specs=nano.specs"
|
||||
],
|
||||
|
||||
LIBS=["m"]
|
||||
)
|
||||
|
||||
if isfile(env.subst(join(
|
||||
|
Reference in New Issue
Block a user