Skip to content

Commit

Permalink
Merge branch 'release/v4.8.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed Mar 5, 2020
2 parents 94733f0 + 7d7d67a commit 192478f
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion boards/teensy2.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "teensy",
"extra_flags": "-DARDUINO_ARCH_AVR -DTEENSY2",
"extra_flags": "-DARDUINO_ARCH_AVR -DARDUINO_TEENSY2",
"f_cpu": "16000000L",
"mcu": "atmega32u4"
},
Expand Down
2 changes: 1 addition & 1 deletion boards/teensy2pp.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"core": "teensy",
"extra_flags": "-DTEENSY2PP",
"extra_flags": "-DARDUINO_TEENSY2PP",
"f_cpu": "16000000L",
"mcu": "at90usb1286"
},
Expand Down
2 changes: 1 addition & 1 deletion boards/teensy30.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"core": "teensy3",
"cpu": "cortex-m4",
"extra_flags": "-D__MK20DX128__ -DTEENSY30",
"extra_flags": "-D__MK20DX128__ -DARDUINO_TEENSY30",
"f_cpu": "48000000L",
"mcu": "mk20dx128"
},
Expand Down
2 changes: 1 addition & 1 deletion boards/teensy31.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"core": "teensy3",
"cpu": "cortex-m4",
"extra_flags": "-D__MK20DX256__ -DTEENSY31",
"extra_flags": "-D__MK20DX256__ -DARDUINO_TEENSY31",
"f_cpu": "72000000L",
"mcu": "mk20dx256"
},
Expand Down
2 changes: 1 addition & 1 deletion boards/teensy35.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"core": "teensy3",
"cpu": "cortex-m4",
"extra_flags": "-D__MK64FX512__ -DTEENSY35",
"extra_flags": "-D__MK64FX512__ -DARDUINO_TEENSY35",
"f_cpu": "120000000L",
"mcu": "mk64fx512"
},
Expand Down
2 changes: 1 addition & 1 deletion boards/teensy36.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"core": "teensy3",
"cpu": "cortex-m4",
"extra_flags": "-D__MK66FX1M0__ -DTEENSY36",
"extra_flags": "-D__MK66FX1M0__ -DARDUINO_TEENSY36",
"f_cpu": "180000000L",
"mcu": "mk66fx1m0"
},
Expand Down
2 changes: 1 addition & 1 deletion boards/teensy40.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"core": "teensy4",
"cpu": "cortex-m7",
"extra_flags": "-D__IMXRT1062__ -DTEENSY40",
"extra_flags": "-D__IMXRT1062__ -DARDUINO_TEENSY40",
"f_cpu": "600000000",
"mcu": "imxrt1062"
},
Expand Down
2 changes: 1 addition & 1 deletion boards/teensylc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"core": "teensy3",
"cpu": "cortex-m0plus",
"extra_flags": "-D__MKL26Z64__ -DTEENSYLC",
"extra_flags": "-D__MKL26Z64__ -DARDUINO_TEENSYLC",
"f_cpu": "48000000L",
"mcu": "mkl26z64"
},
Expand Down
26 changes: 13 additions & 13 deletions builder/frameworks/arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,19 +264,19 @@
ASFLAGS=env.get("CCFLAGS", [])[:]
)

# if "cortex-m" in env.BoardConfig().get("build.cpu", ""):
# board = env.subst("$BOARD")
# math_lib = "arm_cortex%s_math"
# if board in ("teensy35", "teensy36"):
# math_lib = math_lib % "M4lf"
# elif board in ("teensy30", "teensy31"):
# math_lib = math_lib % "M4l"
# elif board == "teensy40":
# math_lib = math_lib % "M7lfsp"
# else:
# math_lib = math_lib % "M0l"

# env.Prepend(LIBS=[math_lib])
if "cortex-m" in env.BoardConfig().get("build.cpu", ""):
board = env.subst("$BOARD")
math_lib = "arm_cortex%s_math"
if board in ("teensy35", "teensy36"):
math_lib = math_lib % "M4lf"
elif board in ("teensy30", "teensy31"):
math_lib = math_lib % "M4l"
elif board == "teensy40":
math_lib = math_lib % "M7lfsp"
else:
math_lib = math_lib % "M0l"

env.Prepend(LIBS=[math_lib])

# Teensy 2.x Core
if BUILD_CORE == "teensy":
Expand Down
4 changes: 2 additions & 2 deletions platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "git",
"url": "https://github.com/platformio/platform-teensy.git"
},
"version": "4.7.1",
"version": "4.8.0",
"packageRepositories": [
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
"http://dl.platformio.org/packages/manifest.json"
Expand Down Expand Up @@ -41,7 +41,7 @@
"framework-arduinoteensy": {
"type": "framework",
"optional": true,
"version": "~1.149.0"
"version": "~1.151.0"
},
"framework-mbed": {
"type": "framework",
Expand Down

0 comments on commit 192478f

Please sign in to comment.