mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
raise visibility of the erase value
This commit is contained in:
parent
ad116b5af6
commit
145c2e37b2
1 changed files with 5 additions and 5 deletions
|
|
@ -14,6 +14,11 @@ use crate::acram::OneWayCounter;
|
||||||
use crate::acram::{AccessSettings, SlotManager};
|
use crate::acram::{AccessSettings, SlotManager};
|
||||||
use crate::udma::Spim;
|
use crate::udma::Spim;
|
||||||
|
|
||||||
|
// An erase value of 0 can be conflated with access permissions being incorrect. Choose a non-0 value
|
||||||
|
// for the erase value, but also, don't pick a 0-1-0-1 dense pattern because that can assist with
|
||||||
|
// calibrating microscopy techniques.
|
||||||
|
pub const ERASE_VALUE: u8 = 0x03;
|
||||||
|
|
||||||
/// Current draw @ 200MHz CPU ACLK (400MHz FCLK), VDD85 = 0.80V nom (measured @0.797V): ~71mA peak @ 27C,
|
/// Current draw @ 200MHz CPU ACLK (400MHz FCLK), VDD85 = 0.80V nom (measured @0.797V): ~71mA peak @ 27C,
|
||||||
/// measured on VDD33 (LDO path places strict upper bounds on IDD85). Target: < 100mA under all PVT.
|
/// measured on VDD33 (LDO path places strict upper bounds on IDD85). Target: < 100mA under all PVT.
|
||||||
///
|
///
|
||||||
|
|
@ -208,11 +213,6 @@ pub fn erase_secrets() {
|
||||||
|
|
||||||
#[cfg(not(feature = "std"))]
|
#[cfg(not(feature = "std"))]
|
||||||
pub fn erase_secrets() {
|
pub fn erase_secrets() {
|
||||||
// An erase value of 0 is conflateable with access permissions being incorrect. Choose a non-0 value
|
|
||||||
// for the erase value, but also, don't pick a 0-1-0-1 dense pattern because that can assist with
|
|
||||||
// calibrating microscopy techniques.
|
|
||||||
const ERASE_VALUE: u8 = 0x03;
|
|
||||||
|
|
||||||
// ensure coreuser settings, as we could enter from a variety of loader stages
|
// ensure coreuser settings, as we could enter from a variety of loader stages
|
||||||
let mut cu = crate::coreuser::Coreuser::new();
|
let mut cu = crate::coreuser::Coreuser::new();
|
||||||
cu.set();
|
cu.set();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue