mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
Add more to the nrf pio environment
This commit is contained in:
parent
f3eec64928
commit
5348e29e14
2 changed files with 19 additions and 5 deletions
|
@ -146,6 +146,9 @@
|
|||
#define USE_SOCKET_IMPL_BSD_SOCKETS
|
||||
#endif
|
||||
|
||||
#ifdef USE_NRF52
|
||||
#endif
|
||||
|
||||
// Disabled feature flags
|
||||
// #define USE_BSEC // Requires a library with proprietary license.
|
||||
|
||||
|
|
|
@ -181,6 +181,18 @@ build_flags =
|
|||
-DUSE_LIBRETINY
|
||||
build_src_flags = -include Arduino.h
|
||||
|
||||
; This is the common settings for the nRF52 using Zephyr.
|
||||
[common:nrf52-zephyr]
|
||||
extends = common
|
||||
platform = platformio/nordicnrf52@10.3.0
|
||||
platform_packages =
|
||||
platformio/framework-zephyr @ https://github.com/tomaszduda23/framework-sdk-nrf
|
||||
platformio/toolchain-gccarmnoneeabi@https://github.com/tomaszduda23/toolchain-sdk-ng
|
||||
build_flags =
|
||||
${common.build_flags}
|
||||
-DUSE_ZEPHYR
|
||||
-DUSE_NRF52
|
||||
|
||||
; All the actual environments are defined below.
|
||||
|
||||
;;;;;;;; ESP8266 ;;;;;;;;
|
||||
|
@ -393,9 +405,8 @@ build_flags =
|
|||
-std=c++17
|
||||
|
||||
[env:nrf52]
|
||||
extends = common
|
||||
platform = platformio/nordicnrf52@10.3.0
|
||||
platform_packages =
|
||||
platformio/framework-zephyr @ https://github.com/tomaszduda23/framework-sdk-nrf
|
||||
platformio/toolchain-gccarmnoneeabi@https://github.com/tomaszduda23/toolchain-sdk-ng
|
||||
extends = common:nrf52-zephyr
|
||||
board = adafruit_feather_nrf52840
|
||||
build_flags =
|
||||
${common:nrf52-zephyr.build_flags}
|
||||
${flags:runtime.build_flags}
|
||||
|
|
Loading…
Reference in a new issue