mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-28 12:50:53 +00:00
Fix ESP32 MAC address from efuse (#3579)
This commit is contained in:
parent
d3a303c4be
commit
68986d375c
@ -8,9 +8,13 @@ use crate::soc::efuse::{Efuse, EfuseBlock};
|
||||
#[allow(unused)]
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct EfuseField {
|
||||
/// The block
|
||||
pub(crate) block: EfuseBlock,
|
||||
/// Word number - this is just informational
|
||||
pub(crate) word: u32,
|
||||
/// Starting bit in the efuse block
|
||||
pub(crate) bit_start: u32,
|
||||
/// Number of bits
|
||||
pub(crate) bit_count: u32,
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
//! This file was automatically generated, please do not edit it manually!
|
||||
//!
|
||||
//! Generated: 2025-04-15 12:51
|
||||
//! Generated: 2025-05-30 12:24
|
||||
//! Version: 369d2d860d34e777c0f7d545a7dfc3c4
|
||||
|
||||
#![allow(clippy::empty_docs)]
|
||||
@ -18,9 +18,9 @@ pub const UART_DOWNLOAD_DIS: EfuseField = EfuseField::new(0, 0, 27, 1);
|
||||
/// reserved
|
||||
pub const RESERVED_0_28: EfuseField = EfuseField::new(0, 0, 28, 4);
|
||||
/// MAC address
|
||||
pub const MAC0: EfuseField = EfuseField::new(0, 1, 0, 32);
|
||||
pub const MAC0: EfuseField = EfuseField::new(0, 1, 32, 32);
|
||||
/// MAC address
|
||||
pub const MAC1: EfuseField = EfuseField::new(0, 2, 32, 16);
|
||||
pub const MAC1: EfuseField = EfuseField::new(0, 2, 64, 16);
|
||||
/// CRC8 for MAC address
|
||||
pub const MAC_CRC: EfuseField = EfuseField::new(0, 2, 80, 8);
|
||||
/// Reserved; it was created by set_missed_fields_in_regs func
|
||||
|
Loading…
x
Reference in New Issue
Block a user