STM32L486xx HAL User Manual
Data Structures | Defines | Functions
stm32l4xx_hal_firewall.h File Reference

Header file of FIREWALL HAL module. More...

#include "stm32l4xx_hal_def.h"

Go to the source code of this file.

Data Structures

struct  FIREWALL_InitTypeDef
 FIREWALL Initialization Structure definition. More...

Defines

#define FIREWALL_VOLATILEDATA_NOT_EXECUTABLE   ((uint32_t)0x0000)
#define FIREWALL_VOLATILEDATA_EXECUTABLE   ((uint32_t)FW_CR_VDE)
#define FIREWALL_VOLATILEDATA_NOT_SHARED   ((uint32_t)0x0000)
#define FIREWALL_VOLATILEDATA_SHARED   ((uint32_t)FW_CR_VDS)
#define FIREWALL_PRE_ARM_RESET   ((uint32_t)0x0000)
#define FIREWALL_PRE_ARM_SET   ((uint32_t)FW_CR_FPA)
#define IS_FIREWALL_CODE_SEGMENT_ADDRESS(ADDRESS)   (((ADDRESS) >= FLASH_BASE) && ((ADDRESS) < (FLASH_BASE + FLASH_SIZE)))
#define IS_FIREWALL_CODE_SEGMENT_LENGTH(ADDRESS, LENGTH)   (((ADDRESS) + (LENGTH)) <= (FLASH_BASE + FLASH_SIZE))
#define IS_FIREWALL_NONVOLATILEDATA_SEGMENT_ADDRESS(ADDRESS)   (((ADDRESS) >= FLASH_BASE) && ((ADDRESS) < (FLASH_BASE + FLASH_SIZE)))
#define IS_FIREWALL_NONVOLATILEDATA_SEGMENT_LENGTH(ADDRESS, LENGTH)   (((ADDRESS) + (LENGTH)) <= (FLASH_BASE + FLASH_SIZE))
#define IS_FIREWALL_VOLATILEDATA_SEGMENT_ADDRESS(ADDRESS)   (((ADDRESS) >= SRAM1_BASE) && ((ADDRESS) < (SRAM1_BASE + SRAM1_SIZE_MAX)))
#define IS_FIREWALL_VOLATILEDATA_SEGMENT_LENGTH(ADDRESS, LENGTH)   (((ADDRESS) + (LENGTH)) <= (SRAM1_BASE + SRAM1_SIZE_MAX))
#define IS_FIREWALL_VOLATILEDATA_SHARE(SHARE)
#define IS_FIREWALL_VOLATILEDATA_EXECUTE(EXECUTE)
#define __HAL_FIREWALL_IS_ENABLED()   HAL_IS_BIT_CLR(SYSCFG->CFGR1, SYSCFG_CFGR1_FWDIS)
 Check whether the FIREWALL is enabled or not.
#define __HAL_FIREWALL_PREARM_ENABLE()
 Enable FIREWALL pre arm.
#define __HAL_FIREWALL_PREARM_DISABLE()
 Disable FIREWALL pre arm.
#define __HAL_FIREWALL_VOLATILEDATA_SHARED_ENABLE()
 Enable volatile data sharing in setting VDS bit.
#define __HAL_FIREWALL_VOLATILEDATA_SHARED_DISABLE()
 Disable volatile data sharing in resetting VDS bit.
#define __HAL_FIREWALL_VOLATILEDATA_EXECUTION_ENABLE()
 Enable volatile data execution in setting VDE bit.
#define __HAL_FIREWALL_VOLATILEDATA_EXECUTION_DISABLE()
 Disable volatile data execution in resetting VDE bit.
#define __HAL_FIREWALL_GET_VOLATILEDATA_SHARED()   ((FIREWALL->CR & FW_CR_VDS) == FW_CR_VDS)
 Check whether or not the volatile data segment is shared.
#define __HAL_FIREWALL_GET_VOLATILEDATA_EXECUTION()   ((FIREWALL->CR & FW_CR_VDE) == FW_CR_VDE)
 Check whether or not the volatile data segment is declared executable.
#define __HAL_FIREWALL_GET_PREARM()   ((FIREWALL->CR & FW_CR_FPA) == FW_CR_FPA)
 Check whether or not the Firewall pre arm bit is set.

Functions

HAL_StatusTypeDef HAL_FIREWALL_Config (FIREWALL_InitTypeDef *fw_init)
 Initialize the Firewall according to the FIREWALL_InitTypeDef structure parameters.
void HAL_FIREWALL_GetConfig (FIREWALL_InitTypeDef *fw_config)
 Retrieve the Firewall configuration.
void HAL_FIREWALL_EnableFirewall (void)
 Enable FIREWALL.
void HAL_FIREWALL_EnablePreArmFlag (void)
 Enable FIREWALL pre arm.
void HAL_FIREWALL_DisablePreArmFlag (void)
 Disable FIREWALL pre arm.

Detailed Description

Header file of FIREWALL HAL module.

Author:
MCD Application Team
Attention:

© COPYRIGHT(c) 2017 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32l4xx_hal_firewall.h.