Skip to content

Commit 8bcc486

Browse files
committed
Merge branch 'release/v5.0.0'
2 parents fac2173 + 53137d2 commit 8bcc486

41 files changed

Lines changed: 1143 additions & 9 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ env:
1010
- PLATFORMIO_PROJECT_DIR=examples/mbed-rtos-ethernet
1111
- PLATFORMIO_PROJECT_DIR=examples/mbed-rtos-tls-client
1212
- PLATFORMIO_PROJECT_DIR=examples/mbed-serial
13+
- PLATFORMIO_PROJECT_DIR=examples/zephyr-blink
14+
- PLATFORMIO_PROJECT_DIR=examples/zephyr-net-telnet
15+
# - PLATFORMIO_PROJECT_DIR=examples/zephyr-sensor-sx9500
16+
17+
# Zephyr framework doesn't support python 2
18+
jobs:
19+
exclude:
20+
- python: "2.7"
21+
env: PLATFORMIO_PROJECT_DIR=examples/zephyr-blink
22+
- python: "2.7"
23+
env: PLATFORMIO_PROJECT_DIR=examples/zephyr-net-telnet
24+
- python: "2.7"
25+
env: PLATFORMIO_PROJECT_DIR=examples/zephyr-sensor-sx9500
1326

1427
install:
1528
- pip install -U https://github.com/platformio/platformio/archive/develop.zip

appveyor.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ environment:
88
- PLATFORMIO_PROJECT_DIR: "examples/mbed-rtos-ethernet"
99
- PLATFORMIO_PROJECT_DIR: "examples/mbed-rtos-tls-client"
1010
- PLATFORMIO_PROJECT_DIR: "examples/mbed-serial"
11+
- PLATFORMIO_PROJECT_DIR: "examples/zephyr-blink"
12+
- PLATFORMIO_PROJECT_DIR: "examples/zephyr-net-telnet"
13+
# - PLATFORMIO_PROJECT_DIR: "examples/zephyr-sensor-sx9500"
1114

1215
install:
1316
- cmd: git submodule update --init --recursive
14-
- cmd: SET PATH=%PATH%;C:\Python36\Scripts
17+
- cmd: SET PATH=C:\Python36\Scripts;%PATH%
1518
- cmd: pip3 install -U https://github.com/platformio/platformio/archive/develop.zip
1619
- cmd: platformio platform install file://.
1720

boards/frdm_k64f.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"svd_path": "MK64F12.svd"
1414
},
1515
"frameworks": [
16-
"mbed"
16+
"mbed",
17+
"zephyr"
1718
],
1819
"name": "Freescale Kinetis FRDM-K64F",
1920
"upload": {

boards/frdm_kl25z.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"svd_path": "MKL25Z4.svd"
1111
},
1212
"frameworks": [
13-
"mbed"
13+
"mbed",
14+
"zephyr"
1415
],
1516
"name": "Freescale Kinetis FRDM-KL25Z",
1617
"upload": {

boards/frdm_kw24d.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22
"build": {
33
"cpu": "cortex-m4",
44
"f_cpu": "50000000L",
5-
"mcu": "mkw24d512"
5+
"mcu": "mkw24d512",
6+
"zephyr": {
7+
"variant": "usb_kw24d512"
8+
}
69
},
710
"debug": {
811
"jlink_device": "MKW24D512xxx5"
912
},
1013
"frameworks": [
11-
"mbed"
14+
"mbed",
15+
"zephyr"
1216
],
1317
"name": "Freescale Kinetis FRDM-KW24D512",
1418
"upload": {

boards/frdm_kw41z.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"svd_path": "MKW41Z4.svd"
1414
},
1515
"frameworks": [
16-
"mbed"
16+
"mbed",
17+
"zephyr"
1718
],
1819
"name": "Freescale Kinetis FRDM-KW41Z",
1920
"upload": {

boards/hexiwear.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
"build": {
33
"cpu": "cortex-m4",
44
"f_cpu": "120000000L",
5-
"mcu": "mk64fn1m0vdc12"
5+
"mcu": "mk64fn1m0vdc12",
6+
"zephyr": {
7+
"variant": "hexiwear_k64"
8+
}
69
},
710
"connectivity": [
811
"bluetooth",
@@ -28,7 +31,8 @@
2831
}
2932
},
3033
"frameworks": [
31-
"mbed"
34+
"mbed",
35+
"zephyr"
3236
],
3337
"name": "Hexiwear",
3438
"upload": {

builder/frameworks/zephyr.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2019-present PlatformIO <contact@platformio.org>
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
"""
15+
The Zephyr Project is a scalable real-time operating system (RTOS) supporting multiple
16+
hardware architectures, optimized for resource constrained devices, and built with
17+
safety and security in mind.
18+
19+
https://github.com/zephyrproject-rtos/zephyr
20+
"""
21+
22+
from os.path import join
23+
24+
from SCons.Script import Import, SConscript
25+
26+
Import("env")
27+
28+
SConscript(
29+
join(env.PioPlatform().get_package_dir("framework-zephyr"), "scripts",
30+
"platformio", "platformio-build.py"), exports="env")

builder/main.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@
8181
# Target: Build executable and linkable firmware
8282
#
8383

84+
if "zephyr" in env.get("PIOFRAMEWORK", []):
85+
env.SConscript(
86+
join(platform.get_package_dir(
87+
"framework-zephyr"), "scripts", "platformio", "platformio-build-pre.py"),
88+
exports={"env": env}
89+
)
90+
8491
target_elf = None
8592
if "nobuild" in COMMAND_LINE_TARGETS:
8693
target_elf = join("$BUILD_DIR", "${PROGNAME}.elf")

examples/zephyr-blink/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.pio

0 commit comments

Comments
 (0)