Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/v1.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed May 31, 2022
2 parents 8ef971e + 78396d7 commit 7b23d50
Show file tree
Hide file tree
Showing 31 changed files with 47 additions and 524 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, windows-latest, macos-latest]
python-version: [3.7]
os: [ubuntu-latest, windows-latest, macos-latest]
example:
- "examples/arduino-adc"
- "examples/arduino-blink"
Expand All @@ -19,18 +18,17 @@ jobs:
- "examples/LoRa/LoRaWAN/LoRaWAN_Interrupt"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U https://github.com/platformio/platformio/archive/develop.zip
platformio platform install file://.
pio pkg install --global --platform symlink://.
- name: Build examples
run: |
platformio run -d ${{ matrix.example }}
pio run -d ${{ matrix.example }}
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# ASR Microelectronics ASR605x (ASR6501, ASR6502): development platform for [PlatformIO](http://platformio.org)
# ASR Microelectronics ASR605x (ASR6501, ASR6502): development platform for [PlatformIO](https://platformio.org)

[![Build Status](https://github.com/HelTecAutomation/platform-asrmicro650x/workflows/Examples/badge.svg)](https://github.com/HelTecAutomation/platform-asrmicro650x/actions)

ASR Microelectronics ASR605x series is highly integrated and ultra low power SoC based on the PSoC 4000 series MCU (ARM Cortex M0+ Core) and Semtech SX1262 transceiver.

* [Home](http://platformio.org/platforms/asrmicro650x) (home page in PlatformIO Platform Registry)
* [Documentation](http://docs.platformio.org/page/platforms/asrmicro650x.html) (advanced usage, packages, boards, frameworks, etc.)
* [Home](https://registry.platformio.org/platforms/heltecautomation/asrmicro650x) (home page in the PlatformIO Registry)
* [Documentation](https://docs.platformio.org/page/platforms/asrmicro650x.html) (advanced usage, packages, boards, frameworks, etc.)

# Usage

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

## Stable version

Expand All @@ -32,4 +32,4 @@ board = ...

# Configuration

Please navigate to [documentation](http://docs.platformio.org/page/platforms/asrmicro650x.html).
Please navigate to [documentation](https://docs.platformio.org/page/platforms/asrmicro650x.html).
24 changes: 14 additions & 10 deletions builder/frameworks/arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,19 @@
CORE_DIR = os.path.join(FRAMEWORK_DIR, "cores", core)
assert os.path.isdir(FRAMEWORK_DIR)

machine_flags = [
"-mcpu=%s" % board.get("build.cpu"),
"-mthumb",
"-mthumb-interwork",
"-mapcs-frame",
]

env.Append(
ASFLAGS=machine_flags,
ASPPFLAGS=[
"-x", "assembler-with-cpp",
],

CPPDEFINES=[
("ARDUINO", 10815),
"ARDUINO_ARCH_%s" % arch.upper(),
Expand All @@ -53,14 +65,10 @@
("F_CPU", "$BOARD_F_CPU"),
"SOFT_SE",
],
CCFLAGS=[
CCFLAGS=machine_flags + [
"-w",
"-Wall",
"-Os",
"-mcpu=%s" % board.get("build.cpu"),
"-mthumb",
"-mthumb-interwork",
"-mapcs-frame",
"-ffunction-sections",
"-fdata-sections",
"-ffat-lto-objects",
Expand All @@ -75,16 +83,13 @@
"-fno-exceptions",
"-fno-rtti",
],
LINKFLAGS=[
LINKFLAGS=machine_flags + [
"-Os",
"-Wl,--gc-sections",
"-mcpu=%s" % board.get("build.cpu"),
"-Wl,--wrap=printf",
"-Wl,--wrap=fflush",
"-Wl,--wrap=sprintf",
"-Wl,--wrap=snprintf",
"-mthumb",
"-mthumb-interwork",
"-specs=nano.specs",
"-specs=nosys.specs",
"-ffat-lto-objects",
Expand All @@ -94,7 +99,6 @@
)

env.Prepend(
ASFLAGS=env.get("CCFLAGS", [])[:],
_LIBFLAGS='"%s" '
% (
os.path.join(CORE_DIR, "asr6601.a")
Expand Down
1 change: 1 addition & 0 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
join("$BUILD_DIR", "${PROGNAME}"), [target_elf, target_hex]
)
)
env.Depends(target_firm, "checkprogsize")

AlwaysBuild(env.Alias("nobuild", target_firm))
target_buildprog = env.Alias("buildprog", target_firm, target_firm)
Expand Down
3 changes: 0 additions & 3 deletions examples/LoRa/LoRaBasic/PingPong/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
.pio
pio.map
.vscode
.piolibdeps
67 changes: 0 additions & 67 deletions examples/LoRa/LoRaBasic/PingPong/.travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/LoRa/LoRaBasic/PingPong/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
How to build PlatformIO based project
=====================================

1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html)
2. Download [development platform with examples](https://github.com/platformio/platform-asrmicro650x/archive/develop.zip)
3. Extract ZIP archive
4. Run these commands:
Expand Down
3 changes: 1 addition & 2 deletions examples/LoRa/LoRaWAN/LoRaWAN/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.pioenvs
.piolibdeps
.pio
67 changes: 0 additions & 67 deletions examples/LoRa/LoRaWAN/LoRaWAN/.travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/LoRa/LoRaWAN/LoRaWAN/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
How to build PlatformIO based project
=====================================

1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html)
2. Download [development platform with examples](https://github.com/platformio/platform-asrmicro650x/archive/develop.zip)
3. Extract ZIP archive
4. Run these commands:
Expand Down
2 changes: 1 addition & 1 deletion examples/LoRa/LoRaWAN/LoRaWAN/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
; Library options: dependencies, extra library storages
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html
; https://docs.platformio.org/page/projectconf.html

[env:cubecell_board]
platform = asrmicro650x
Expand Down
3 changes: 0 additions & 3 deletions examples/LoRa/LoRaWAN/LoRaWAN_Interrupt/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
.pio
pio.map
.vscode
.piolibdeps
67 changes: 0 additions & 67 deletions examples/LoRa/LoRaWAN/LoRaWAN_Interrupt/.travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion examples/LoRa/LoRaWAN/LoRaWAN_Interrupt/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
How to build PlatformIO based project
=====================================

1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html)
2. Download [development platform with examples](https://github.com/platformio/platform-asrmicro650x/archive/develop.zip)
3. Extract ZIP archive
4. Run these commands:
Expand Down
3 changes: 1 addition & 2 deletions examples/arduino-adc/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.pioenvs
.piolibdeps
.pio
Loading

0 comments on commit 7b23d50

Please sign in to comment.