Skip to content

Commit

Permalink
Merge pull request #154 from card-io-ecg/v6
Browse files Browse the repository at this point in the history
V6 hardware support
  • Loading branch information
bugadani authored Dec 9, 2023
2 parents 685dbbd + bee85c5 commit 5772cf5
Show file tree
Hide file tree
Showing 31 changed files with 71,469 additions and 536 deletions.
18 changes: 6 additions & 12 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,13 @@ rustflags = [
"-C", "link-arg=-nostartfiles",
"-C", "link-arg=-Wl,-Tlinkall.x",
"-C", "link-arg=-Trom_functions.x",
]

# tell the core library have atomics even though it's not specified in the target definition
"--cfg", "target_has_atomic_load_store",
"--cfg", 'target_has_atomic_load_store="8"',
"--cfg", 'target_has_atomic_load_store="16"',
"--cfg", 'target_has_atomic_load_store="32"',
"--cfg", 'target_has_atomic_load_store="ptr"',
# enable cas
"--cfg", "target_has_atomic",
"--cfg", 'target_has_atomic="8"',
"--cfg", 'target_has_atomic="16"',
"--cfg", 'target_has_atomic="32"',
"--cfg", 'target_has_atomic="ptr"',
[target.riscv32imac-unknown-none-elf]
rustflags = [
"-C", "force-frame-pointers",
"-C", "link-arg=-Tlinkall.x",
"-C", "link-arg=-Trom_functions.x",
]

[alias]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
build-fw:
strategy:
matrix:
version: ["v4"]
version: ["v4", "v6c6", "v6s3"]

runs-on: ubuntu-latest

Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

jobs:
test:
check:
strategy:
matrix:
version: ["v4", "v6c6", "v6s3"]

runs-on: ubuntu-latest

steps:
Expand All @@ -31,7 +35,18 @@ jobs:
run: cargo fmt --check

- name: check
run: cargo xcheck
run: cargo xcheck ${{ matrix.version }}

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: esp-rs/[email protected]
with:
default: true
buildtargets: esp32s3
ldproxy: false
- uses: Swatinem/rust-cache@v2

- name: test
run: cargo xtask test
25 changes: 19 additions & 6 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
test:
build:
strategy:
matrix:
version: ["v4", "v6c6", "v6s3"]

runs-on: ubuntu-latest

steps:
Expand All @@ -24,11 +28,20 @@ jobs:
- name: setup espflash
run: cargo binstall --no-confirm --force cargo-espflash

- name: check
run: cargo xcheck
- name: build
run: cargo xbuild ${{ matrix.version }}

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: esp-rs/[email protected]
with:
default: true
buildtargets: esp32s3
ldproxy: false
- uses: Swatinem/rust-cache@v2

- name: test
run: cargo xtask test

- name: build
run: cargo xbuild

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Cargo.lock
.vscode/esp32s3.base.svd
.vscode/launch.json
.vscode/.cortex-debug.peripherals.state.json
cfg.toml
Loading

0 comments on commit 5772cf5

Please sign in to comment.