Skip to content

Commit

Permalink
boards: add particle-xenon support
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn authored and kaspar030 committed Apr 8, 2024
1 parent 3034268 commit 5d8f1ae
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions laze-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ modules:
- nrf52840dk
- rpi-pico
- rpi-pico-w
- particle-xenon
env:
global:
RUSTFLAGS:
Expand Down Expand Up @@ -590,6 +591,9 @@ builders:
- name: microbit-v2
parent: nrf52840

- name: particle-xenon
parent: nrf52840

- name: rpi-pico
parent: rp2040
env:
Expand Down
1 change: 1 addition & 0 deletions src/riot-rs-boards/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ nrf52dk = { optional = true, path = "nrf52dk" }
nrf5340dk = { optional = true, path = "nrf5340dk" }
nucleo-f401re = { optional = true, path = "nucleo-f401re" }
rpi-pico = { optional = true, path = "rpi-pico" }
particle-xenon = { optional = true, path = "particle-xenon" }

[features]
# Allows to have no boards selected, useful to run platform-independent tooling
Expand Down
14 changes: 14 additions & 0 deletions src/riot-rs-boards/particle-xenon/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "particle-xenon"
version = "0.1.0"
authors = ["Christian Amsüss <[email protected]>"]
edition = "2021"

[dependencies]
cortex-m-rt.workspace = true
cortex-m.workspace = true

riot-rs-debug.workspace = true
riot-rs-rt.workspace = true

nrf52 = { path = "../nrf52", features = ["nrf52840"] }
8 changes: 8 additions & 0 deletions src/riot-rs-boards/particle-xenon/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#![no_std]

use riot_rs_debug::println;

pub fn init() {
println!("particle_xenon::init()");
nrf52::init();
}
2 changes: 2 additions & 0 deletions src/riot-rs-boards/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ cfg_if! {
pub use microbit_v2 as board;
} else if #[cfg(feature = "nucleo-f401re")] {
pub use nucleo_f401re as board;
} else if #[cfg(feature = "particle-xenon")] {
pub use particle_xenon as board;
} else if #[cfg(feature = "rpi-pico")] {
pub use rpi_pico as board;
} else if #[cfg(feature = "rpi-pico-w")] {
Expand Down

0 comments on commit 5d8f1ae

Please sign in to comment.