This module contains APIs to program the MPU Firewall module.
◆ MPU_FIREWALL_init()
void MPU_FIREWALL_init |
( |
| ) |
|
This function initializes the MPU Firewall module.
◆ MPU_FIREWALL_setRegion()
Function to configure a Firewall region.
- Parameters
-
mpuParams | Structure containing all region configuration parameters. |
- Returns
- SystemP_SUCCESS on successful region configuration; else error on failure
◆ MPU_FIREWALL_getFirewallConfig()
int32_t MPU_FIREWALL_getFirewallConfig |
( |
uint32_t |
firewallId, |
|
|
MPU_FIREWALL_Config ** |
firewallConfig |
|
) |
| |
Function to get parameters of a firewall.
- Parameters
-
firewallId | Firewall ID. |
firewallConfig | Structure to save firewall config. |
- Returns
- SystemP_SUCCESS on successful config read; else error on failure
◆ MPU_FIREWALL_RegionParams_init()
Function to initialize the parameters of a region.
- Parameters
-
mpuParams | Region parameter structure to be initialized. |
◆ MPU_FIREWALL_readFaultAddress()
uint32_t MPU_FIREWALL_readFaultAddress |
( |
uint32_t |
baseAddr | ) |
|
Function to read the fault address that created the firewall violation.
- Parameters
-
baseAddr | MPU Firewall base address |
- Returns
- Fault address
◆ MPU_FIREWALL_readFaultStatus()
uint32_t MPU_FIREWALL_readFaultStatus |
( |
uint32_t |
baseAddr | ) |
|
Function to read the fault status register. It contains information on the kind of firewall violation that had occurred.
- Parameters
-
baseAddr | MPU Firewall base address |
- Returns
- Value of fault status register
◆ MPU_FIREWALL_clearFault()
void MPU_FIREWALL_clearFault |
( |
uint32_t |
baseAddr | ) |
|
Function to clear MPU Firewall fault address and fault status register .
- Parameters
-
baseAddr | MPU Firewall base address |
◆ MPU_FIREWALL_interruptEnable()
void MPU_FIREWALL_interruptEnable |
( |
uint32_t |
baseAddr, |
|
|
uint32_t |
flag |
|
) |
| |
Function to enable MPU Firewall interrupt.
- Parameters
-
baseAddr | MPU Firewall base address |
flag | Flag to denote the different firewall interrupts to be enabled. |
◆ MPU_FIREWALL_clearInterruptEnable()
void MPU_FIREWALL_clearInterruptEnable |
( |
uint32_t |
baseAddr, |
|
|
uint32_t |
flag |
|
) |
| |
Function to disable MPU Firewall interrupt.
- Parameters
-
baseAddr | MPU Firewall base address |
flag | Flag to denote the different firewall interrupts to be disabled. |
◆ MPU_FIREWALL_setInterruptStatus()
void MPU_FIREWALL_setInterruptStatus |
( |
uint32_t |
baseAddr, |
|
|
uint32_t |
flag |
|
) |
| |
Function to set interrupt. This can be used for testing interrupts.
- Parameters
-
baseAddr | MPU Firewall base address |
flag | Flag to denote the different firewall interrupts to be set. |
◆ MPU_FIREWALL_getInterruptStatus()
uint32_t MPU_FIREWALL_getInterruptStatus |
( |
uint32_t |
baseAddr | ) |
|
Function to read interrupt status.
- Parameters
-
baseAddr | MPU Firewall base address |
- Returns
- Value of interrupt status register.
◆ MPU_FIREWALL_clearInterruptStatus()
void MPU_FIREWALL_clearInterruptStatus |
( |
uint32_t |
baseAddr, |
|
|
uint32_t |
flag |
|
) |
| |
Function to clear interrupt status.
- Parameters
-
baseAddr | MPU Firewall base address |
flag | Flag to denote the different firewall interrupts to be cleared. |