@@ -17,6 +17,7 @@ pub use register::prbar::{AccessPerms as El1AccessPerms, Shareability as El1Shar
1717
1818/// Ways this API can fail
1919#[ derive( Debug , Clone , PartialEq , Eq ) ]
20+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
2021pub enum Error {
2122 /// Found too many regions
2223 TooManyRegions ,
@@ -363,6 +364,7 @@ impl El2Mpu {
363364
364365/// Configuration for the PMSAv8-32 EL1 MPU
365366#[ derive( Clone , Debug , PartialEq , Eq ) ]
367+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
366368pub struct El1Config < ' a > {
367369 /// Background Config Enable
368370 ///
@@ -380,6 +382,7 @@ pub struct El1Config<'a> {
380382
381383/// Configuration for the PMSAv8-32 MPU
382384#[ derive( Clone , Debug , PartialEq , Eq ) ]
385+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
383386pub struct El1Region {
384387 /// The range of the region
385388 ///
@@ -408,6 +411,7 @@ unsafe impl Sync for El1Region {}
408411
409412/// Configuration for the PMSAv8-32 EL2 MPU
410413#[ derive( Clone , Debug , PartialEq , Eq ) ]
414+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
411415pub struct El2Config < ' a > {
412416 /// Background Config Enable
413417 ///
@@ -425,6 +429,7 @@ pub struct El2Config<'a> {
425429
426430/// Configuration for the PMSAv8-32 EL2 MPU
427431#[ derive( Clone , Debug , PartialEq , Eq ) ]
432+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
428433pub struct El2Region {
429434 /// The range of the region
430435 ///
@@ -453,6 +458,7 @@ unsafe impl Sync for El2Region {}
453458
454459/// Describes the memory ordering and cacheability of a region
455460#[ derive( Debug , Clone , PartialEq , Eq ) ]
461+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
456462pub enum MemAttr {
457463 /// Strongly-ordered memory
458464 StronglyOrdered ,
@@ -484,6 +490,7 @@ impl MemAttr {
484490
485491/// Cacheability of a region
486492#[ derive( Debug , Clone , PartialEq , Eq ) ]
493+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
487494pub enum CachePolicy {
488495 /// Normal memory, Outer Write-Through Transient
489496 WriteThroughTransient ( RwAllocPolicy ) ,
@@ -512,6 +519,7 @@ impl CachePolicy {
512519
513520/// Cache allocation policy
514521#[ derive( Copy , Debug , Clone , PartialEq , Eq ) ]
522+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
515523#[ repr( u8 ) ]
516524pub enum RwAllocPolicy {
517525 /// Write-allocate
0 commit comments