Add support for Teensy LC board // Resolve #155

This commit is contained in:
Valeriy Koval
2015-04-06 20:22:03 +03:00
parent 22e2cec102
commit b23a8a7075
3 changed files with 34 additions and 1 deletions

View File

@ -40,3 +40,9 @@ platform = teensy
framework = arduino
board = teensy31
build_flags = -DTEENSY31
[env:teensylc]
platform = teensy
framework = arduino
board = teensylc
build_flags = -DTEENSYLC

View File

@ -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"
}
}

View File

@ -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(