Skip to content

Commit c5f96e8

Browse files
committed
Merge branch 'release/v9.4.0'
2 parents 58ec6d6 + 1d38ed3 commit c5f96e8

22 files changed

Lines changed: 37 additions & 1016 deletions

File tree

.github/workflows/examples.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
os: [ubuntu-18.04, windows-2016, macos-latest]
10+
os: [ubuntu-latest, windows-latest, macos-latest]
1111
example:
1212
- "examples/arduino-blink"
1313
- "examples/arduino-ble-led"
@@ -26,19 +26,18 @@ jobs:
2626
- "examples/zephyr-subsys-nvs"
2727
runs-on: ${{ matrix.os }}
2828
steps:
29-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v3
3030
with:
3131
submodules: "recursive"
3232
- name: Set up Python 3
33-
uses: actions/setup-python@v1
33+
uses: actions/setup-python@v3
3434
with:
3535
python-version: "3.7"
3636
- name: Install dependencies
3737
run: |
38-
python -m pip install --upgrade pip
3938
pip install -U https://github.com/platformio/platformio/archive/develop.zip
4039
pip3 install adafruit-nrfutil
41-
platformio platform install file://.
40+
pio pkg install --global --platform symlink://.
4241
- name: Build examples
4342
run: |
44-
platformio run -d ${{ matrix.example }}
43+
pio run -d ${{ matrix.example }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Nordic nRF52: development platform for [PlatformIO](http://platformio.org)
1+
# Nordic nRF52: development platform for [PlatformIO](https://platformio.org)
22

33
[![Build Status](https://github.com/platformio/platform-nordicnrf52/workflows/Examples/badge.svg)](https://github.com/platformio/platform-nordicnrf52/actions)
44

@@ -9,7 +9,7 @@ The nRF52 Series are built for speed to carry out increasingly complex tasks in
99

1010
# Usage
1111

12-
1. [Install PlatformIO](http://platformio.org)
12+
1. [Install PlatformIO](https://platformio.org)
1313
2. Create PlatformIO project and configure a platform option in [platformio.ini](https://docs.platformio.org/page/projectconf.html) file:
1414

1515
## Stable version

builder/compat.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

builder/frameworks/_bare.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@
2121
env = DefaultEnvironment()
2222

2323
env.Append(
24-
ASFLAGS=["-x", "assembler-with-cpp"],
24+
ASFLAGS=[
25+
"-mthumb",
26+
],
27+
ASPPFLAGS=[
28+
"-x", "assembler-with-cpp",
29+
],
2530

2631
CCFLAGS=[
2732
"-Os", # optimize for size
@@ -54,13 +59,13 @@
5459

5560
if "BOARD" in env:
5661
env.Append(
62+
ASFLAGS=[
63+
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
64+
],
5765
CCFLAGS=[
5866
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
5967
],
6068
LINKFLAGS=[
6169
"-mcpu=%s" % env.BoardConfig().get("build.cpu")
6270
]
6371
)
64-
65-
# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
66-
env.Append(ASFLAGS=env.get("CCFLAGS", [])[:])

builder/frameworks/arduino

builder/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from SCons.Script import (ARGUMENTS, COMMAND_LINE_TARGETS, AlwaysBuild,
2121
Builder, Default, DefaultEnvironment)
2222

23-
from platformio.util import get_serial_ports
23+
from platformio.public import list_serial_ports
2424

2525

2626
def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
@@ -33,7 +33,7 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
3333
if not bool(upload_options.get("disable_flushing", False)):
3434
env.FlushSerialBuffer("$UPLOAD_PORT")
3535

36-
before_ports = get_serial_ports()
36+
before_ports = list_serial_ports()
3737

3838
if bool(upload_options.get("use_1200bps_touch", False)):
3939
env.TouchSerialPort("$UPLOAD_PORT", 1200)
@@ -48,7 +48,6 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
4848

4949

5050
env = DefaultEnvironment()
51-
env.SConscript("compat.py", exports="env")
5251
platform = env.PioPlatform()
5352
board = env.BoardConfig()
5453
variant = board.get("build.variant", "")

examples/arduino-ble-led/.travis.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

examples/arduino-blink/.travis.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

examples/arduino-bluefruit-bleuart/.travis.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)