Update Teensy Arduino Framework to 1.26 // Resolve #434

This commit is contained in:
Ivan Kravets
2016-01-05 00:07:28 +02:00
parent 0751a2cef9
commit 7a7fa845fe
8 changed files with 21 additions and 9 deletions
+10
View File
@@ -78,6 +78,16 @@ env = DefaultEnvironment()
SConscript(env.subst(join("$PIOBUILDER_DIR", "scripts", "baseavr.py")))
env.Append(
CFLAGS=[
"-std=gnu11"
],
CXXFLAGS=[
"-std=gnu++11"
]
)
if "digispark" in env.get(
"BOARD_OPTIONS", {}).get("build", {}).get("core", ""):
env.Replace(
+1 -2
View File
@@ -41,8 +41,7 @@ env.Replace(
"-Wall",
"-mthumb",
"-mcpu=${BOARD_OPTIONS['build']['cpu']}",
"-nostdlib",
"-MMD" # output dependancy info
"-nostdlib"
],
CXXFLAGS=[
-3
View File
@@ -42,10 +42,7 @@ env.Replace(
"-mmcu=$BOARD_MCU"
],
CFLAGS=["-std=gnu11"],
CXXFLAGS=[
"-std=gnu++11",
"-fno-exceptions",
"-fno-threadsafe-statics"
],
+6 -1
View File
@@ -28,7 +28,12 @@ if env.get("BOARD_OPTIONS", {}).get("build", {}).get("core") == "teensy":
elif env.get("BOARD_OPTIONS", {}).get("build", {}).get("core") == "teensy3":
SConscript(env.subst(join("$PIOBUILDER_DIR", "scripts", "basearm.py")))
env.Append(
LINKFLAGS=["-Wl,--defsym=__rtc_localtime=$UNIX_TIME"]
LINKFLAGS=[
"-Wl,--defsym=__rtc_localtime=$UNIX_TIME"
],
CPPFLAGS=[
"-fsingle-precision-constant"
]
)
env.Append(
-1
View File
@@ -44,7 +44,6 @@ env.Replace(
# "-Wall", # show warnings
"-ffunction-sections", # place each function in its own section
"-fdata-sections",
"-MMD", # output dependancy info
"-mmcu=$BOARD_MCU"
],