RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Macros
FLASHEx Private macros to check input parameters

Macros

#define IS_FLASH_TYPEERASE(VALUE)
 
#define IS_WRPSTATE(VALUE)
 
#define IS_OPTIONBYTE(VALUE)
 
#define IS_OB_BOOT_ADDRESS(ADDRESS)   ((ADDRESS) <= 0x8013U)
 
#define IS_OB_RDP_LEVEL(LEVEL)
 
#define IS_OB_IWDG_SOURCE(SOURCE)   (((SOURCE) == OB_IWDG_SW) || ((SOURCE) == OB_IWDG_HW))
 
#define IS_OB_STOP_SOURCE(SOURCE)   (((SOURCE) == OB_STOP_NO_RST) || ((SOURCE) == OB_STOP_RST))
 
#define IS_OB_STDBY_SOURCE(SOURCE)   (((SOURCE) == OB_STDBY_NO_RST) || ((SOURCE) == OB_STDBY_RST))
 
#define IS_OB_IWDG_STOP_FREEZE(FREEZE)   (((FREEZE) == OB_IWDG_STOP_FREEZE) || ((FREEZE) == OB_IWDG_STOP_ACTIVE))
 
#define IS_OB_IWDG_STDBY_FREEZE(FREEZE)   (((FREEZE) == OB_IWDG_STDBY_FREEZE) || ((FREEZE) == OB_IWDG_STDBY_ACTIVE))
 
#define IS_OB_BOR_LEVEL(LEVEL)
 
#define IS_FLASH_LATENCY(LATENCY)
 
#define IS_FLASH_SECTOR(SECTOR)   ((SECTOR) < FLASH_SECTOR_TOTAL)
 
#define IS_OB_WRP_SECTOR(SECTOR)   ((SECTOR) != 0x00000000U)
 
#define IS_OB_PCROP_RDP(CONFIG)
 
#define IS_OB_SECURE_RDP(CONFIG)
 
#define IS_OB_USER_IOHSLV(VALUE)   (((VALUE) == OB_IOHSLV_DISABLE) || ((VALUE) == OB_IOHSLV_ENABLE))
 
#define IS_OB_IWDG1_SOURCE(SOURCE)   (((SOURCE) == OB_IWDG1_SW) || ((SOURCE) == OB_IWDG1_HW))
 
#define IS_OB_STOP_D1_RESET(VALUE)   (((VALUE) == OB_STOP_NO_RST_D1) || ((VALUE) == OB_STOP_RST_D1))
 
#define IS_OB_STDBY_D1_RESET(VALUE)   (((VALUE) == OB_STDBY_NO_RST_D1) || ((VALUE) == OB_STDBY_RST_D1))
 
#define IS_OB_USER_IWDG_STOP(VALUE)   (((VALUE) == OB_IWDG_STOP_FREEZE) || ((VALUE) == OB_IWDG_STOP_ACTIVE))
 
#define IS_OB_USER_IWDG_STDBY(VALUE)   (((VALUE) == OB_IWDG_STDBY_FREEZE) || ((VALUE) == OB_IWDG_STDBY_ACTIVE))
 
#define IS_OB_USER_ST_RAM_SIZE(VALUE)
 
#define IS_OB_USER_SECURITY(VALUE)   (((VALUE) == OB_SECURITY_ENABLE) || ((VALUE) == OB_SECURITY_DISABLE))
 
#define IS_OB_USER_TYPE(TYPE)
 
#define IS_OB_BOOT_ADD_OPTION(VALUE)
 
#define IS_FLASH_TYPECRC(VALUE)
 

Detailed Description

Macro Definition Documentation

◆ IS_FLASH_LATENCY

#define IS_FLASH_LATENCY (   LATENCY)
Value:
(((LATENCY) == FLASH_LATENCY_0) || \
((LATENCY) == FLASH_LATENCY_1) || \
((LATENCY) == FLASH_LATENCY_2) || \
((LATENCY) == FLASH_LATENCY_3) || \
((LATENCY) == FLASH_LATENCY_4) || \
((LATENCY) == FLASH_LATENCY_5) || \
((LATENCY) == FLASH_LATENCY_6) || \
((LATENCY) == FLASH_LATENCY_7) || \
((LATENCY) == FLASH_LATENCY_8) || \
((LATENCY) == FLASH_LATENCY_9) || \
((LATENCY) == FLASH_LATENCY_10) || \
((LATENCY) == FLASH_LATENCY_11) || \
((LATENCY) == FLASH_LATENCY_12) || \
((LATENCY) == FLASH_LATENCY_13) || \
((LATENCY) == FLASH_LATENCY_14) || \
((LATENCY) == FLASH_LATENCY_15))
#define FLASH_LATENCY_7
Definition: stm32h7xx_hal_flash_ex.h:400
#define FLASH_LATENCY_0
Definition: stm32h7xx_hal_flash_ex.h:393
#define FLASH_LATENCY_15
Definition: stm32h7xx_hal_flash_ex.h:410
#define FLASH_LATENCY_12
Definition: stm32h7xx_hal_flash_ex.h:407
#define FLASH_LATENCY_11
Definition: stm32h7xx_hal_flash_ex.h:406
#define FLASH_LATENCY_5
Definition: stm32h7xx_hal_flash_ex.h:398
#define FLASH_LATENCY_1
Definition: stm32h7xx_hal_flash_ex.h:394
#define FLASH_LATENCY_3
Definition: stm32h7xx_hal_flash_ex.h:396
#define FLASH_LATENCY_13
Definition: stm32h7xx_hal_flash_ex.h:408
#define FLASH_LATENCY_8
Definition: stm32h7xx_hal_flash_ex.h:403
#define FLASH_LATENCY_4
Definition: stm32h7xx_hal_flash_ex.h:397
#define FLASH_LATENCY_2
Definition: stm32h7xx_hal_flash_ex.h:395
#define FLASH_LATENCY_10
Definition: stm32h7xx_hal_flash_ex.h:405
#define FLASH_LATENCY_9
Definition: stm32h7xx_hal_flash_ex.h:404
#define FLASH_LATENCY_6
Definition: stm32h7xx_hal_flash_ex.h:399
#define FLASH_LATENCY_14
Definition: stm32h7xx_hal_flash_ex.h:409

◆ IS_FLASH_TYPECRC

#define IS_FLASH_TYPECRC (   VALUE)
Value:
(((VALUE) == FLASH_CRC_ADDR) || \
((VALUE) == FLASH_CRC_SECTORS) || \
((VALUE) == FLASH_CRC_BANK))
#define FLASH_CRC_BANK
Definition: stm32h7xx_hal_flash_ex.h:758
#define FLASH_CRC_SECTORS
Definition: stm32h7xx_hal_flash_ex.h:757
#define FLASH_CRC_ADDR
Definition: stm32h7xx_hal_flash_ex.h:756

◆ IS_FLASH_TYPEERASE

#define IS_FLASH_TYPEERASE (   VALUE)
Value:
(((VALUE) == FLASH_TYPEERASE_SECTORS) || \
#define FLASH_TYPEERASE_MASSERASE
Definition: stm32h7xx_hal_flash_ex.h:209
#define FLASH_TYPEERASE_SECTORS
Definition: stm32h7xx_hal_flash_ex.h:208

◆ IS_OB_BOOT_ADD_OPTION

#define IS_OB_BOOT_ADD_OPTION (   VALUE)
Value:
(((VALUE) == OB_BOOT_ADD0) || \
((VALUE) == OB_BOOT_ADD1) || \
((VALUE) == OB_BOOT_ADD_BOTH))
#define OB_BOOT_ADD1
Definition: stm32h7xx_hal_flash_ex.h:734
#define OB_BOOT_ADD0
Definition: stm32h7xx_hal_flash_ex.h:733
#define OB_BOOT_ADD_BOTH
Definition: stm32h7xx_hal_flash_ex.h:735

◆ IS_OB_BOR_LEVEL

#define IS_OB_BOR_LEVEL (   LEVEL)
Value:
(((LEVEL) == OB_BOR_LEVEL0) || ((LEVEL) == OB_BOR_LEVEL1) || \
((LEVEL) == OB_BOR_LEVEL2) || ((LEVEL) == OB_BOR_LEVEL3))
#define OB_BOR_LEVEL0
Definition: stm32h7xx_hal_flash_ex.h:364
#define OB_BOR_LEVEL3
Definition: stm32h7xx_hal_flash_ex.h:367
#define OB_BOR_LEVEL1
Definition: stm32h7xx_hal_flash_ex.h:365
#define OB_BOR_LEVEL2
Definition: stm32h7xx_hal_flash_ex.h:366

◆ IS_OB_PCROP_RDP

#define IS_OB_PCROP_RDP (   CONFIG)
Value:
(((CONFIG) == OB_PCROP_RDP_NOT_ERASE) || \
((CONFIG) == OB_PCROP_RDP_ERASE))
#define OB_PCROP_RDP_NOT_ERASE
Definition: stm32h7xx_hal_flash_ex.h:432
#define OB_PCROP_RDP_ERASE
Definition: stm32h7xx_hal_flash_ex.h:434

◆ IS_OB_RDP_LEVEL

#define IS_OB_RDP_LEVEL (   LEVEL)
Value:
(((LEVEL) == OB_RDP_LEVEL_0) ||\
((LEVEL) == OB_RDP_LEVEL_1) ||\
((LEVEL) == OB_RDP_LEVEL_2))
#define OB_RDP_LEVEL_2
Definition: stm32h7xx_hal_flash_ex.h:304

◆ IS_OB_SECURE_RDP

#define IS_OB_SECURE_RDP (   CONFIG)
Value:
(((CONFIG) == OB_SECURE_RDP_NOT_ERASE) || \
((CONFIG) == OB_SECURE_RDP_ERASE))
#define OB_SECURE_RDP_NOT_ERASE
Definition: stm32h7xx_hal_flash_ex.h:744
#define OB_SECURE_RDP_ERASE
Definition: stm32h7xx_hal_flash_ex.h:746

◆ IS_OB_USER_ST_RAM_SIZE

#define IS_OB_USER_ST_RAM_SIZE (   VALUE)
Value:
(((VALUE) == OB_ST_RAM_SIZE_2KB) || ((VALUE) == OB_ST_RAM_SIZE_4KB) || \
((VALUE) == OB_ST_RAM_SIZE_8KB) || ((VALUE) == OB_ST_RAM_SIZE_16KB))
#define OB_ST_RAM_SIZE_2KB
Definition: stm32h7xx_hal_flash_ex.h:508
#define OB_ST_RAM_SIZE_8KB
Definition: stm32h7xx_hal_flash_ex.h:510
#define OB_ST_RAM_SIZE_16KB
Definition: stm32h7xx_hal_flash_ex.h:511
#define OB_ST_RAM_SIZE_4KB
Definition: stm32h7xx_hal_flash_ex.h:509

◆ IS_OB_USER_TYPE

#define IS_OB_USER_TYPE (   TYPE)
Value:
((((TYPE) & OB_USER_ALL) != 0U) && \
(((TYPE) & ~OB_USER_ALL) == 0U))

◆ IS_OPTIONBYTE

#define IS_OPTIONBYTE (   VALUE)
Value:
((((VALUE) & OPTIONBYTE_ALL) != 0U) && \
(((VALUE) & ~OPTIONBYTE_ALL) == 0U))
#define OPTIONBYTE_ALL
Definition: stm32h7xx_hal_flash_ex.h:290

◆ IS_WRPSTATE

#define IS_WRPSTATE (   VALUE)
Value:
(((VALUE) == OB_WRPSTATE_DISABLE) || \
((VALUE) == OB_WRPSTATE_ENABLE))
#define OB_WRPSTATE_ENABLE
Definition: stm32h7xx_hal_flash_ex.h:233
#define OB_WRPSTATE_DISABLE
Definition: stm32h7xx_hal_flash_ex.h:232