Skip to content

Commit 527d565

Browse files
committed
Use updated chiptool
1 parent f2529db commit 527d565

File tree

16 files changed

+202
-121
lines changed

16 files changed

+202
-121
lines changed

rust-toolchain.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
[toolchain]
22
channel = "nightly-2024-11-04"
3-
components = [ "rust-src", "rustfmt" ]
3+
components = ["rust-src", "rustfmt"]
44
targets = [
55
"thumbv6m-none-eabi",
66
"thumbv7em-none-eabihf",
77
"thumbv8m.main-none-eabihf",
8+
9+
# Tier 3 target, so it cannot be installed with rustup
10+
# "riscv32emc-unknown-none-elf"
811
]

src/chips/nrf51/pac.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc = "Peripheral access API (generated using chiptool v0.1.0 (e09c27d 2025-01-02))"]
1+
#![doc = "Peripheral access API (generated using chiptool v0.1.0 ( ))"]
22
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
33
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
44
pub enum Interrupt {
@@ -54,6 +54,7 @@ pub enum Interrupt {
5454
SWI5 = 25,
5555
}
5656
unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
57+
#[doc = r" Returns the number of the interrupt"]
5758
#[inline(always)]
5859
fn number(self) -> u16 {
5960
self as u16

src/chips/nrf52805/pac.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc = "Peripheral access API (generated using chiptool v0.1.0 (e09c27d 2025-01-02))"]
1+
#![doc = "Peripheral access API (generated using chiptool v0.1.0 ( ))"]
22
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
33
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
44
pub enum Interrupt {
@@ -52,6 +52,7 @@ pub enum Interrupt {
5252
SWI5 = 25,
5353
}
5454
unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
55+
#[doc = r" Returns the number of the interrupt"]
5556
#[inline(always)]
5657
fn number(self) -> u16 {
5758
self as u16

src/chips/nrf52810/pac.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc = "Peripheral access API (generated using chiptool v0.1.0 (e09c27d 2025-01-02))"]
1+
#![doc = "Peripheral access API (generated using chiptool v0.1.0 ( ))"]
22
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
33
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
44
pub enum Interrupt {
@@ -58,6 +58,7 @@ pub enum Interrupt {
5858
PDM = 29,
5959
}
6060
unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
61+
#[doc = r" Returns the number of the interrupt"]
6162
#[inline(always)]
6263
fn number(self) -> u16 {
6364
self as u16

src/chips/nrf52811/pac.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc = "Peripheral access API (generated using chiptool v0.1.0 (e09c27d 2025-01-02))"]
1+
#![doc = "Peripheral access API (generated using chiptool v0.1.0 ( ))"]
22
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
33
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
44
pub enum Interrupt {
@@ -58,6 +58,7 @@ pub enum Interrupt {
5858
PDM = 29,
5959
}
6060
unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
61+
#[doc = r" Returns the number of the interrupt"]
6162
#[inline(always)]
6263
fn number(self) -> u16 {
6364
self as u16

src/chips/nrf52820/pac.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc = "Peripheral access API (generated using chiptool v0.1.0 (e09c27d 2025-01-02))"]
1+
#![doc = "Peripheral access API (generated using chiptool v0.1.0 ( ))"]
22
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
33
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
44
pub enum Interrupt {
@@ -56,6 +56,7 @@ pub enum Interrupt {
5656
USBD = 39,
5757
}
5858
unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
59+
#[doc = r" Returns the number of the interrupt"]
5960
#[inline(always)]
6061
fn number(self) -> u16 {
6162
self as u16

src/chips/nrf52832/pac.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc = "Peripheral access API (generated using chiptool v0.1.0 (e09c27d 2025-01-02))"]
1+
#![doc = "Peripheral access API (generated using chiptool v0.1.0 ( ))"]
22
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
33
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
44
pub enum Interrupt {
@@ -78,6 +78,7 @@ pub enum Interrupt {
7878
FPU = 38,
7979
}
8080
unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
81+
#[doc = r" Returns the number of the interrupt"]
8182
#[inline(always)]
8283
fn number(self) -> u16 {
8384
self as u16

src/chips/nrf52833/pac.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc = "Peripheral access API (generated using chiptool v0.1.0 (e09c27d 2025-01-02))"]
1+
#![doc = "Peripheral access API (generated using chiptool v0.1.0 ( ))"]
22
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
33
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
44
pub enum Interrupt {
@@ -86,6 +86,7 @@ pub enum Interrupt {
8686
SPIM3 = 47,
8787
}
8888
unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
89+
#[doc = r" Returns the number of the interrupt"]
8990
#[inline(always)]
9091
fn number(self) -> u16 {
9192
self as u16

src/chips/nrf52840/pac.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc = "Peripheral access API (generated using chiptool v0.1.0 (e09c27d 2025-01-02))"]
1+
#![doc = "Peripheral access API (generated using chiptool v0.1.0 ( ))"]
22
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
33
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
44
pub enum Interrupt {
@@ -90,6 +90,7 @@ pub enum Interrupt {
9090
SPIM3 = 47,
9191
}
9292
unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
93+
#[doc = r" Returns the number of the interrupt"]
9394
#[inline(always)]
9495
fn number(self) -> u16 {
9596
self as u16

src/chips/nrf5340-app/pac.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc = "Peripheral access API (generated using chiptool v0.1.0 (e09c27d 2025-01-02))"]
1+
#![doc = "Peripheral access API (generated using chiptool v0.1.0 ( ))"]
22
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
33
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
44
pub enum Interrupt {
@@ -86,6 +86,7 @@ pub enum Interrupt {
8686
CRYPTOCELL = 68,
8787
}
8888
unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
89+
#[doc = r" Returns the number of the interrupt"]
8990
#[inline(always)]
9091
fn number(self) -> u16 {
9192
self as u16

0 commit comments

Comments
 (0)