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 committed Apr 8, 2024
1 parent 1aaa458 commit 7d4e404
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
11 changes: 11 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
13 changes: 13 additions & 0 deletions src/riot-rs-boards/particle-xenon/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[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-rt.workspace = true

nrf52 = { path = "../nrf52", features = [ "nrf52840" ] }
10 changes: 10 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,10 @@
#![no_std]

use nrf52;

use riot_rs_rt::debug::println;

pub fn init() {
println!("particle_xenon::init()");
nrf52::init();
}

0 comments on commit 7d4e404

Please sign in to comment.