Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/imxrt-rom/registers.json
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
"type": "register",
"access": "RW",
"address": 101,
"size_bits": 16,
"size_bits": 32,
"fields": {
"revoke_rootkey": {
"base": "uint",
Expand Down
14 changes: 7 additions & 7 deletions libs/imxrt-rom/src/registers/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -769,11 +769,11 @@ pub mod field_sets {
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct SecBootCfg5 {
/// The internal bits
bits: [u8; 2],
bits: [u8; 4],
}

impl ::device_driver::FieldSet for SecBootCfg5 {
const SIZE_BITS: u32 = 16;
const SIZE_BITS: u32 = 32;
fn new_with_zero() -> Self {
Self::new_zero()
}
Expand All @@ -788,11 +788,11 @@ pub mod field_sets {
impl SecBootCfg5 {
/// Create a new instance, loaded with the reset value (if any)
pub const fn new() -> Self {
Self { bits: [0, 0] }
Self { bits: [0, 0, 0, 0] }
}
/// Create a new instance, loaded with all zeroes
pub const fn new_zero() -> Self {
Self { bits: [0; 2] }
Self { bits: [0; 4] }
}

///Read the `revoke_rootkey` field of the register.
Expand Down Expand Up @@ -924,13 +924,13 @@ pub mod field_sets {
}
}

impl From<[u8; 2]> for SecBootCfg5 {
fn from(bits: [u8; 2]) -> Self {
impl From<[u8; 4]> for SecBootCfg5 {
fn from(bits: [u8; 4]) -> Self {
Self { bits }
}
}

impl From<SecBootCfg5> for [u8; 2] {
impl From<SecBootCfg5> for [u8; 4] {
fn from(val: SecBootCfg5) -> Self {
val.bits
}
Expand Down