Skip to content

Commit 4bdf4e5

Browse files
committed
Reverted manifest hardcopy for imxrt-rom device-driver
1 parent 2448002 commit 4bdf4e5

File tree

3 files changed

+9
-1791
lines changed

3 files changed

+9
-1791
lines changed

.github/workflows/check.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
uses: dtolnay/rust-toolchain@master
6666
with:
6767
toolchain: ${{ matrix.toolchain }}
68-
components: clippy
68+
components: clippy,rustfmt
6969
- name: rustup target add ${{ matrix.target }}
7070
run: rustup target add ${{ matrix.target }}
7171
- name: cargo clippy (libs)
@@ -116,6 +116,7 @@ jobs:
116116
submodules: true
117117
- name: Install nightly
118118
uses: dtolnay/rust-toolchain@nightly
119+
components: rustfmt # required for device-driver
119120
- name: rustup target add ${{ matrix.target }}
120121
run: rustup target add ${{ matrix.target }}
121122
- name: cargo doc (libs)
@@ -145,6 +146,7 @@ jobs:
145146

146147
- name: Install stable
147148
uses: dtolnay/rust-toolchain@stable
149+
components: rustfmt # required for device-driver
148150

149151
- name: rustup target add thumbv8m.main-none-eabihf
150152
run: rustup target add thumbv8m.main-none-eabihf
@@ -209,6 +211,7 @@ jobs:
209211
uses: dtolnay/rust-toolchain@master
210212
with:
211213
toolchain: ${{ matrix.msrv }}
214+
components: rustfmt # required for device-driver
212215
- name: rustup target add ${{ matrix.target }}
213216
run: rustup target add ${{ matrix.target }}
214217
- name: cargo +${{ matrix.msrv }} check (libs)

libs/imxrt-rom/src/registers.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
//! Registers that are available as OTP fuses and as shadow registers.
22
#![allow(dead_code)]
33

4-
mod device;
5-
64
use device_driver::{FieldSet, RegisterInterface};
75

86
use crate::otp::Otp;
97

10-
// Include the device driver definition.
11-
// Can be regenerated by running `device-driver-cli -m registers.json -o src/registers/device.rs --device-name Device`.
12-
// Will cause the GH workflow to SIGPIPE if included directly.
13-
include!("registers/device.rs");
8+
// Define a Device for all OTP registers,that exist both as fuses accessible from the OTP ROM API as well as the shadow registers.
9+
device_driver::create_device!(
10+
device_name: Device,
11+
manifest: "registers.json"
12+
);
1413

1514
/// Interface to access the shadow registers.
1615
pub struct ShadowInterface {

0 commit comments

Comments
 (0)