RTEMS 6.1-rc2
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:374
#define FLASH_LATENCY_0
Definition: stm32h7xx_hal_flash_ex.h:367
#define FLASH_LATENCY_15
Definition: stm32h7xx_hal_flash_ex.h:384
#define FLASH_LATENCY_12
Definition: stm32h7xx_hal_flash_ex.h:381
#define FLASH_LATENCY_11
Definition: stm32h7xx_hal_flash_ex.h:380
#define FLASH_LATENCY_5
Definition: stm32h7xx_hal_flash_ex.h:372
#define FLASH_LATENCY_1
Definition: stm32h7xx_hal_flash_ex.h:368
#define FLASH_LATENCY_3
Definition: stm32h7xx_hal_flash_ex.h:370
#define FLASH_LATENCY_13
Definition: stm32h7xx_hal_flash_ex.h:382
#define FLASH_LATENCY_8
Definition: stm32h7xx_hal_flash_ex.h:377
#define FLASH_LATENCY_4
Definition: stm32h7xx_hal_flash_ex.h:371
#define FLASH_LATENCY_2
Definition: stm32h7xx_hal_flash_ex.h:369
#define FLASH_LATENCY_10
Definition: stm32h7xx_hal_flash_ex.h:379
#define FLASH_LATENCY_9
Definition: stm32h7xx_hal_flash_ex.h:378
#define FLASH_LATENCY_6
Definition: stm32h7xx_hal_flash_ex.h:373
#define FLASH_LATENCY_14
Definition: stm32h7xx_hal_flash_ex.h:383

◆ 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:732
#define FLASH_CRC_SECTORS
Definition: stm32h7xx_hal_flash_ex.h:731
#define FLASH_CRC_ADDR
Definition: stm32h7xx_hal_flash_ex.h:730

◆ IS_FLASH_TYPEERASE

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

◆ 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:708
#define OB_BOOT_ADD0
Definition: stm32h7xx_hal_flash_ex.h:707
#define OB_BOOT_ADD_BOTH
Definition: stm32h7xx_hal_flash_ex.h:709

◆ 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:338
#define OB_BOR_LEVEL3
Definition: stm32h7xx_hal_flash_ex.h:341
#define OB_BOR_LEVEL1
Definition: stm32h7xx_hal_flash_ex.h:339
#define OB_BOR_LEVEL2
Definition: stm32h7xx_hal_flash_ex.h:340

◆ 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:406
#define OB_PCROP_RDP_ERASE
Definition: stm32h7xx_hal_flash_ex.h:408

◆ 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:278

◆ 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:718
#define OB_SECURE_RDP_ERASE
Definition: stm32h7xx_hal_flash_ex.h:720

◆ 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:482
#define OB_ST_RAM_SIZE_8KB
Definition: stm32h7xx_hal_flash_ex.h:484
#define OB_ST_RAM_SIZE_16KB
Definition: stm32h7xx_hal_flash_ex.h:485
#define OB_ST_RAM_SIZE_4KB
Definition: stm32h7xx_hal_flash_ex.h:483

◆ 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:264

◆ 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:219
#define OB_WRPSTATE_DISABLE
Definition: stm32h7xx_hal_flash_ex.h:218