Documentation ¶
Overview ¶
Package mpu provides interface to configure Cortex-M Memory Protection Unit.
Index ¶
Constants ¶
View Source
const VALID = 1 << 4
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attr ¶
type Attr uint32
const ( ENA Attr = 1 << 0 // Enables region B Attr = 1 << 16 // Bufferable. C Attr = 1 << 17 // Cacheable. S Attr = 1 << 18 // Shareable. // Access permissons. Amask Attr = 7 << 24 // Use to extract access permission bits. A____ Attr = 0 << 24 // No access. Ar___ Attr = 5 << 24 // Priv-RO. Arw__ Attr = 1 << 24 // Priv-RW. Ar_r_ Attr = 6 << 24 // Priv-RO, Unpriv-RO. Arwr_ Attr = 2 << 24 // Priv-RW, Unpriv-RO. Arwrw Attr = 3 << 24 // Priv-RW, Unpriv-RW. XN Attr = 1 << 28 // Instruction access disable. )
type Flags ¶
type Flags uint32
const ( // If ENABLE is set MPU is enabled. ENABLE Flags = 1 << 0 // If HFNMIENA is not set the MPU will be disabled during HardFault, NMI // and FAULTMASK handlers. HFNMIENA Flags = 1 << 1 // If PRIVDEF is set the default memory map is used as background region for // privileged software access. PRIVDEFENA Flags = 1 << 2 )
Click to show internal directories.
Click to hide internal directories.