Skip to content

Commit

Permalink
Merge branch 'release/v1.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Dec 23, 2017
2 parents 153995a + 91b3e1d commit 44295db
Show file tree
Hide file tree
Showing 36 changed files with 364 additions and 31 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ Espressif Systems is a privately held fabless semiconductor company. They provid
# install development version
> platformio platform install https://github.com/platformio/platform-espressif8266.git
```

# Using "Staging" Arduino Core

http://docs.platformio.org/page/platforms/espressif8266.html#using-arduino-framework-with-staging-version
3 changes: 2 additions & 1 deletion boards/d1.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "WEMOS D1 (Retired)",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/d1_mini.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "WEMOS D1 mini",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp01.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"frameworks": [
"arduino",
"simba",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "Espressif Generic ESP8266 ESP-01 512k",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp01_1m.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"frameworks": [
"arduino",
"simba",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "Espressif Generic ESP8266 ESP-01 1M",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp07.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "Espressif Generic ESP8266 ESP-07",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp12e.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"frameworks": [
"arduino",
"simba",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "Espressif ESP8266 ESP-12E",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp210.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "SweetPea ESP-210",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp8285.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "Generic ESP8285 Module",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp_wroom_02.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"frameworks": [
"arduino",
"simba",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "ESP-WROOM-02",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/espduino.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "ESPDuino (ESP-13 Module)",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/espectro.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "ESPectro Core",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/espino.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "ESPino",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/espinotee.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "ThaiEasyElec ESPino",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/espresso_lite_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "ESPresso Lite 1.0",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/espresso_lite_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "ESPresso Lite 2.0",
"upload": {
Expand Down
30 changes: 30 additions & 0 deletions boards/heltec_wifi_kit_8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"build": {
"core": "esp8266",
"extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_HELTEC_WIFI_KIT_8",
"f_cpu": "80000000L",
"f_flash": "40000000L",
"flash_mode": "dio",
"ldscript": "esp8266.flash.4m1m.ld",
"mcu": "esp8266",
"variant": "d1_mini"
},
"connectivity": [
"wifi"
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "Heltec Wifi kit 8",
"upload": {
"maximum_ram_size": 81920,
"maximum_size": 4194304,
"require_upload_port": true,
"resetmethod": "nodemcu",
"speed": 115200
},
"url": "http://www.heltec.cn/project/wifi_kit_8/",
"vendor": "Heltec"
}
3 changes: 2 additions & 1 deletion boards/huzzah.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"frameworks": [
"arduino",
"simba",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "Adafruit HUZZAH ESP8266",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/modwifi.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "Olimex MOD-WIFI-ESP8266(-DEV)",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/nodemcu.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"frameworks": [
"arduino",
"simba",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "NodeMCU 0.9 (ESP-12 Module)",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/nodemcuv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"frameworks": [
"arduino",
"simba",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "NodeMCU 1.0 (ESP-12E Module)",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/phoenix_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "Phoenix 1.0",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/phoenix_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "Phoenix 2.0",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/sparkfunBlynk.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "SparkFun Blynk Board",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/thing.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "SparkFun ESP8266 Thing",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/thingdev.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "SparkFun ESP8266 Thing Dev",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/wifinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk"
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "WifInfo",
"upload": {
Expand Down
30 changes: 30 additions & 0 deletions boards/wio_node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"build": {
"core": "esp8266",
"extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP_WROOM_02",
"f_cpu": "80000000L",
"f_flash": "40000000L",
"flash_mode": "qio",
"ldscript": "esp8266.flash.4m1m.ld",
"mcu": "esp8266",
"variant": "nodemcu"
},
"connectivity": [
"wifi"
],
"frameworks": [
"arduino",
"esp8266-rtos-sdk",
"esp8266-nonos-sdk"
],
"name": "Wio Node",
"upload": {
"maximum_ram_size": 81920,
"maximum_size": 4194304,
"require_upload_port": true,
"resetmethod": "nodemcu",
"speed": 115200
},
"url": "https://www.seeedstudio.com/Wio-Node-p-2637.html",
"vendor": "SeeedStudio"
}
76 changes: 76 additions & 0 deletions builder/frameworks/esp8266-nonos-sdk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Copyright 2014-present PlatformIO <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""
ESP8266 NONOS SDK
ESP8266 SDK C/C++ only
https://github.com/espressif/ESP8266_NONOS_SDK
"""

from os.path import isdir, join

from SCons.Script import DefaultEnvironment

env = DefaultEnvironment()
platform = env.PioPlatform()

FRAMEWORK_DIR = platform.get_package_dir("framework-esp8266-nonos-sdk")
assert isdir(FRAMEWORK_DIR)

env.Prepend(
CPPPATH=[
join(FRAMEWORK_DIR, "include"),
join(FRAMEWORK_DIR, "extra_include"),
join(FRAMEWORK_DIR, "driver_lib", "include"),
join(FRAMEWORK_DIR, "include", "espressif"),
join(FRAMEWORK_DIR, "include", "lwip"),
join(FRAMEWORK_DIR, "include", "lwip", "ipv4"),
join(FRAMEWORK_DIR, "include", "lwip", "ipv6"),
join(FRAMEWORK_DIR, "include", "nopoll"),
join(FRAMEWORK_DIR, "include", "ssl"),
join(FRAMEWORK_DIR, "include", "json"),
join(FRAMEWORK_DIR, "include", "openssl"),
],

LIBPATH=[
join(FRAMEWORK_DIR, "lib")
],

LIBS=[
"airkiss", "at", "c", "crypto", "driver", "espnow", "gcc", "json", "lwip",
"main", "mbedtls", "mesh", "net80211", "phy", "pp", "pwm", "smartconfig",
"ssl", "upgrade", "wpa", "wpa2", "wps"
]
)

env.Replace(
LDSCRIPT_PATH=[join(FRAMEWORK_DIR, "ld", "eagle.app.v6.ld")],
)

#
# Target: Build Driver Library
#

libs = []

envsafe = env.Clone()

libs.append(envsafe.BuildLibrary(
join(FRAMEWORK_DIR, "lib", "driver"),
join(FRAMEWORK_DIR, "driver_lib")
))

env.Prepend(LIBS=libs)
Loading

0 comments on commit 44295db

Please sign in to comment.