RTEMS 6.3
Loading...
Searching...
No Matches
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)
#define IS_OB_RDP_LEVEL(LEVEL)
#define IS_OB_IWDG_SOURCE(SOURCE)
#define IS_OB_STOP_SOURCE(SOURCE)
#define IS_OB_STDBY_SOURCE(SOURCE)
#define IS_OB_IWDG_STOP_FREEZE(FREEZE)
#define IS_OB_IWDG_STDBY_FREEZE(FREEZE)
#define IS_OB_BOR_LEVEL(LEVEL)
#define IS_FLASH_LATENCY(LATENCY)
#define IS_FLASH_SECTOR(SECTOR)
#define IS_OB_WRP_SECTOR(SECTOR)
#define IS_OB_PCROP_RDP(CONFIG)
#define IS_OB_SECURE_RDP(CONFIG)
#define IS_OB_USER_IOHSLV(VALUE)
#define IS_OB_IWDG1_SOURCE(SOURCE)
#define IS_OB_STOP_D1_RESET(VALUE)
#define IS_OB_STDBY_D1_RESET(VALUE)
#define IS_OB_USER_IWDG_STOP(VALUE)
#define IS_OB_USER_IWDG_STDBY(VALUE)
#define IS_OB_USER_ST_RAM_SIZE(VALUE)
#define IS_OB_USER_SECURITY(VALUE)
#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_SECTOR

#define IS_FLASH_SECTOR ( SECTOR)
Value:
((SECTOR) < FLASH_SECTOR_TOTAL)

◆ 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_BOOT_ADDRESS

#define IS_OB_BOOT_ADDRESS ( ADDRESS)
Value:
((ADDRESS) <= 0x8013U)

◆ 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_IWDG1_SOURCE

#define IS_OB_IWDG1_SOURCE ( SOURCE)
Value:
(((SOURCE) == OB_IWDG1_SW) || ((SOURCE) == OB_IWDG1_HW))
#define OB_IWDG1_HW
Definition stm32h7xx_hal_flash_ex.h:544
#define OB_IWDG1_SW
Definition stm32h7xx_hal_flash_ex.h:543

◆ IS_OB_IWDG_SOURCE

#define IS_OB_IWDG_SOURCE ( SOURCE)
Value:
(((SOURCE) == OB_IWDG_SW) || ((SOURCE) == OB_IWDG_HW))
#define OB_IWDG_SW
Definition stm32h7xx_hal_flash_ex.h:314
#define OB_IWDG_HW
Definition stm32h7xx_hal_flash_ex.h:315

◆ IS_OB_IWDG_STDBY_FREEZE

#define IS_OB_IWDG_STDBY_FREEZE ( FREEZE)
Value:
(((FREEZE) == OB_IWDG_STDBY_FREEZE) || ((FREEZE) == OB_IWDG_STDBY_ACTIVE))
#define OB_IWDG_STDBY_FREEZE
Definition stm32h7xx_hal_flash_ex.h:354
#define OB_IWDG_STDBY_ACTIVE
Definition stm32h7xx_hal_flash_ex.h:355

◆ IS_OB_IWDG_STOP_FREEZE

#define IS_OB_IWDG_STOP_FREEZE ( FREEZE)
Value:
(((FREEZE) == OB_IWDG_STOP_FREEZE) || ((FREEZE) == OB_IWDG_STOP_ACTIVE))
#define OB_IWDG_STOP_ACTIVE
Definition stm32h7xx_hal_flash_ex.h:345
#define OB_IWDG_STOP_FREEZE
Definition stm32h7xx_hal_flash_ex.h:344

◆ 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_STDBY_D1_RESET

#define IS_OB_STDBY_D1_RESET ( VALUE)
Value:
(((VALUE) == OB_STDBY_NO_RST_D1) || ((VALUE) == OB_STDBY_RST_D1))
#define OB_STDBY_NO_RST_D1
Definition stm32h7xx_hal_flash_ex.h:576
#define OB_STDBY_RST_D1
Definition stm32h7xx_hal_flash_ex.h:575

◆ IS_OB_STDBY_SOURCE

#define IS_OB_STDBY_SOURCE ( SOURCE)
Value:
(((SOURCE) == OB_STDBY_NO_RST) || ((SOURCE) == OB_STDBY_RST))
#define OB_STDBY_RST
Definition stm32h7xx_hal_flash_ex.h:335
#define OB_STDBY_NO_RST
Definition stm32h7xx_hal_flash_ex.h:334

◆ IS_OB_STOP_D1_RESET

#define IS_OB_STOP_D1_RESET ( VALUE)
Value:
(((VALUE) == OB_STOP_NO_RST_D1) || ((VALUE) == OB_STOP_RST_D1))
#define OB_STOP_NO_RST_D1
Definition stm32h7xx_hal_flash_ex.h:566
#define OB_STOP_RST_D1
Definition stm32h7xx_hal_flash_ex.h:565

◆ IS_OB_STOP_SOURCE

#define IS_OB_STOP_SOURCE ( SOURCE)
Value:
(((SOURCE) == OB_STOP_NO_RST) || ((SOURCE) == OB_STOP_RST))
#define OB_STOP_NO_RST
Definition stm32h7xx_hal_flash_ex.h:324
#define OB_STOP_RST
Definition stm32h7xx_hal_flash_ex.h:325

◆ IS_OB_USER_IOHSLV

#define IS_OB_USER_IOHSLV ( VALUE)
Value:
(((VALUE) == OB_IOHSLV_DISABLE) || ((VALUE) == OB_IOHSLV_ENABLE))
#define OB_IOHSLV_ENABLE
Definition stm32h7xx_hal_flash_ex.h:620
#define OB_IOHSLV_DISABLE
Definition stm32h7xx_hal_flash_ex.h:619

◆ IS_OB_USER_IWDG_STDBY

#define IS_OB_USER_IWDG_STDBY ( VALUE)
Value:
(((VALUE) == OB_IWDG_STDBY_FREEZE) || ((VALUE) == OB_IWDG_STDBY_ACTIVE))

◆ IS_OB_USER_IWDG_STOP

#define IS_OB_USER_IWDG_STOP ( VALUE)
Value:
(((VALUE) == OB_IWDG_STOP_FREEZE) || ((VALUE) == OB_IWDG_STOP_ACTIVE))

◆ IS_OB_USER_SECURITY

#define IS_OB_USER_SECURITY ( VALUE)
Value:
(((VALUE) == OB_SECURITY_ENABLE) || ((VALUE) == OB_SECURITY_DISABLE))
#define OB_SECURITY_ENABLE
Definition stm32h7xx_hal_flash_ex.h:499
#define OB_SECURITY_DISABLE
Definition stm32h7xx_hal_flash_ex.h:498

◆ 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_OB_WRP_SECTOR

#define IS_OB_WRP_SECTOR ( SECTOR)
Value:
((SECTOR) != 0x00000000U)

◆ 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