Skip to content

Commit

Permalink
Merge branch 'release/v5.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed Feb 27, 2024
2 parents da3eeb1 + d0094d4 commit 30fe0f9
Show file tree
Hide file tree
Showing 35 changed files with 18 additions and 776 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ jobs:
- "examples/arduino-blink"
- "examples/arduino-hid-usb-mouse"
- "examples/arduino-internal-libs"
- "examples/mbed-blink"
- "examples/mbed-dsp"
- "examples/mbed-serial"
- "examples/zephyr-blink"
- "examples/zephyr-synchronization"
runs-on: ${{ matrix.os }}
Expand Down
3 changes: 1 addition & 2 deletions boards/teensy31.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"svd_path": "MK20D5.svd"
},
"frameworks": [
"arduino",
"mbed"
"arduino"
],
"name": "Teensy 3.1 / 3.2",
"upload": {
Expand Down
2 changes: 1 addition & 1 deletion builder/frameworks/arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"-fno-exceptions",
"-felide-constructors",
"-fno-rtti",
"-std=gnu++14",
"-std=gnu++17",
"-Wno-error=narrowing",
"-fpermissive"
],
Expand Down
37 changes: 0 additions & 37 deletions builder/frameworks/mbed.py

This file was deleted.

15 changes: 14 additions & 1 deletion builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@

import sys
from platform import system
from os import makedirs
from os import makedirs, environ
from os.path import isdir, isfile, join

from SCons.Script import (COMMAND_LINE_TARGETS, AlwaysBuild, Builder, Default,
DefaultEnvironment)

from platformio.proc import exec_command

env = DefaultEnvironment()
platform = env.PioPlatform()
board_config = env.BoardConfig()
Expand Down Expand Up @@ -137,12 +139,23 @@

# Disable memory calculation and print output from custom "teensy_size" tool
if "arduino" in env.subst("$PIOFRAMEWORK") and build_core == "teensy4":
def teensy_check_upload_size(_, target, source, env):
print('Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"')
sysenv = environ.copy()
sysenv["PATH"] = str(env["ENV"]["PATH"])
result = exec_command(["teensy_size", str(source[0])], env=sysenv)
if result["returncode"] != 0:
sys.stderr.write(result["err"])
env.Exit(1)

env.AddMethod(teensy_check_upload_size, "CheckUploadSize")
env.Replace(
SIZETOOL=None,
SIZECHECKCMD=None,
SIZEPRINTCMD="teensy_size $SOURCES",
)


#
# Target: Build executable and linkable firmware
#
Expand Down
1 change: 0 additions & 1 deletion examples/mbed-blink/.gitignore

This file was deleted.

21 changes: 0 additions & 21 deletions examples/mbed-blink/README.md

This file was deleted.

39 changes: 0 additions & 39 deletions examples/mbed-blink/include/README

This file was deleted.

46 changes: 0 additions & 46 deletions examples/mbed-blink/lib/README

This file was deleted.

13 changes: 0 additions & 13 deletions examples/mbed-blink/platformio.ini

This file was deleted.

12 changes: 0 additions & 12 deletions examples/mbed-blink/src/main.cpp

This file was deleted.

11 changes: 0 additions & 11 deletions examples/mbed-blink/test/README

This file was deleted.

1 change: 0 additions & 1 deletion examples/mbed-dsp/.gitignore

This file was deleted.

21 changes: 0 additions & 21 deletions examples/mbed-dsp/README.md

This file was deleted.

39 changes: 0 additions & 39 deletions examples/mbed-dsp/include/README

This file was deleted.

46 changes: 0 additions & 46 deletions examples/mbed-dsp/lib/README

This file was deleted.

13 changes: 0 additions & 13 deletions examples/mbed-dsp/platformio.ini

This file was deleted.

Loading

0 comments on commit 30fe0f9

Please sign in to comment.