-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
6,342 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Build | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.experimental || false }} | ||
strategy: | ||
matrix: | ||
# All code should be running on stable now | ||
rust: [nightly, stable] | ||
include: | ||
# Nightly is only for reference and allowed to fail | ||
- rust: nightly | ||
experimental: true | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
target: thumbv6m-none-eabi | ||
|
||
- name: Build Code | ||
run: cargo build --release --verbose | ||
|
||
- name: Get Branch Name | ||
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/') | ||
id: branch_name | ||
run: | | ||
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/} | ||
- name: Create Release | ||
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/') | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ steps.branch_name.outputs.SOURCE_TAG }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload files to Release | ||
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/') | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
target/thumbv6m-none-eabi/release/neotron-pico | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Clippy | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
clippy-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: clippy | ||
target: thumbv6m-none-eabi | ||
|
||
- name: Run Clippy | ||
uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --all-features --target=thumbv6m-none-eabi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,37 @@ | ||
[package] | ||
authors = ["Jonathan 'theJPster' Pallant <[email protected]>"] | ||
edition = "2018" | ||
resolver = "2" | ||
readme = "README.md" | ||
license = "GPL-3.0-or-later" | ||
name = "neotron-pico-bios" | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
|
||
[dependencies] | ||
# Useful Cortex-M specific functions (e.g. SysTick) | ||
cortex-m = "0.7.3" | ||
cortex-m = "0.7" | ||
# The Raspberry Pi Pico HAL | ||
pico = { git = "https://github.com/rp-rs/rp-hal.git" } | ||
rp-pico = "0.3" | ||
# Cortex-M run-time (or start-up) code | ||
cortex-m-rt = "0.6.14" | ||
# The BIOS API we export to the OS | ||
neotron-common-bios = { git = "https://github.com/Neotron-Compute/Neotron-Common-BIOS.git" } | ||
cortex-m-rt = "0.7" | ||
# The BIOS to OS API | ||
neotron-common-bios = "0.1.0" | ||
# For time keeping/handling | ||
embedded-time = "0.12" | ||
# For the RP2040 bootloader | ||
rp2040-boot2 = "0.1" | ||
rp2040-boot2 = "0.2" | ||
# For hardware abstraction traits | ||
embedded-hal ="0.2" | ||
# Gives us formatted PC-side logging | ||
defmt = "0.2" | ||
defmt = "0.3" | ||
# Sends defmt logs to the SWD debugger | ||
defmt-rtt = "0.2" | ||
defmt-rtt = "0.3" | ||
# Send panics to the debugger | ||
panic-probe = "0.2" | ||
# Fetches the BIOS version from git | ||
git-version = "0.3" | ||
# RP2040 PIO assembler | ||
pio = "0.2" | ||
# Macros for RP2040 PIO assembler | ||
pio-proc = "0.2" | ||
|
||
[features] | ||
default = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.