Skip to content

Commit bd66ba4

Browse files
committed
chore: add nrf5340-app to ci build
1 parent deb9c13 commit bd66ba4

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

Cargo.ci.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ members = [
77
"nrf52833-hal",
88
"nrf52840-hal",
99
"nrf52840-hal-tests",
10+
"nrf5340-app-hal",
1011
"nrf9160-hal",
1112
"examples/*",
1213
]

nrf5340-app-hal/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nrf5340-app-hal"
3-
version = "0.0.1"
3+
version = "0.14.0"
44
description = "HAL for nRF5340 app SoC"
55
readme = "../README.md"
66

nrf5340-app-hal/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![no_std]
2+
#![doc(html_root_url = "https://docs.rs/nrf5340-app-hal/0.14.0")]
23

34
use embedded_hal as hal;
45
pub use nrf_hal_common::*;

xtask/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use std::{fs, process::Command};
33
pub static HALS: &[(&str, &str)] = &[
44
("nrf51-hal", "thumbv6m-none-eabi"),
55
("nrf9160-hal", "thumbv8m.main-none-eabihf"),
6+
("nrf5340-app-hal", "thumbv8m.main-none-eabihf"),
67
("nrf52810-hal", "thumbv7em-none-eabi"),
78
("nrf52811-hal", "thumbv7em-none-eabi"),
89
("nrf52832-hal", "thumbv7em-none-eabihf"),
@@ -47,7 +48,7 @@ pub fn feature_to_target(feat: &str) -> &str {
4748
match feat {
4849
"51" => "thumbv6m-none-eabi",
4950
"52810" | "52811" => "thumbv7em-none-eabi",
50-
"9160" => "thumbv8m.main-none-eabihf",
51+
"9160" | "5340-app" => "thumbv8m.main-none-eabihf",
5152
_ if feat.starts_with("52") => "thumbv7em-none-eabihf",
5253
_ => panic!("unknown Cargo feature `{}`", feat),
5354
}

0 commit comments

Comments
 (0)