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

Macros

#define IS_PWR_SUPPLY(PWR_SOURCE)
 
#define IS_PWR_STOP_MODE_REGULATOR_VOLTAGE(VOLTAGE)
 
#define IS_PWR_DOMAIN(DOMAIN)
 
#define IS_D3_STATE(STATE)
 
#define IS_PWR_WAKEUP_PIN(PIN)
 
#define IS_PWR_WAKEUP_PIN_POLARITY(POLARITY)
 
#define IS_PWR_WAKEUP_PIN_PULL(PULL)
 
#define IS_PWR_WAKEUP_FLAG(FLAG)
 
#define IS_PWR_AVD_LEVEL(LEVEL)
 
#define IS_PWR_AVD_MODE(MODE)
 
#define IS_PWR_BATTERY_RESISTOR_SELECT(RESISTOR)
 
#define IS_PWR_D1_CPU(CPU)   ((CPU) == CM7_CPUID)
 

Detailed Description

Macro Definition Documentation

◆ IS_D3_STATE

#define IS_D3_STATE (   STATE)
Value:
(((STATE) == PWR_D3_DOMAIN_STOP) ||\
((STATE) == PWR_D3_DOMAIN_RUN))

◆ IS_PWR_AVD_LEVEL

#define IS_PWR_AVD_LEVEL (   LEVEL)
Value:
(((LEVEL) == PWR_AVDLEVEL_0) ||\
((LEVEL) == PWR_AVDLEVEL_1) ||\
((LEVEL) == PWR_AVDLEVEL_2) ||\
((LEVEL) == PWR_AVDLEVEL_3))
#define PWR_AVDLEVEL_1
Definition: stm32h7xx_hal_pwr_ex.h:275
#define PWR_AVDLEVEL_2
Definition: stm32h7xx_hal_pwr_ex.h:277
#define PWR_AVDLEVEL_0
Definition: stm32h7xx_hal_pwr_ex.h:273
#define PWR_AVDLEVEL_3
Definition: stm32h7xx_hal_pwr_ex.h:279

◆ IS_PWR_AVD_MODE

#define IS_PWR_AVD_MODE (   MODE)
Value:
(((MODE) == PWR_AVD_MODE_IT_RISING) ||\
((MODE) == PWR_AVD_MODE_IT_FALLING) ||\
((MODE) == PWR_AVD_MODE_EVENT_RISING) ||\
((MODE) == PWR_AVD_MODE_NORMAL) ||\
#define PWR_AVD_MODE_EVENT_RISING_FALLING
Definition: stm32h7xx_hal_pwr_ex.h:295
#define PWR_AVD_MODE_EVENT_FALLING
Definition: stm32h7xx_hal_pwr_ex.h:294
#define PWR_AVD_MODE_IT_FALLING
Definition: stm32h7xx_hal_pwr_ex.h:291
#define PWR_AVD_MODE_EVENT_RISING
Definition: stm32h7xx_hal_pwr_ex.h:293
#define PWR_AVD_MODE_IT_RISING
Definition: stm32h7xx_hal_pwr_ex.h:290
#define PWR_AVD_MODE_NORMAL
Definition: stm32h7xx_hal_pwr_ex.h:289
#define PWR_AVD_MODE_IT_RISING_FALLING
Definition: stm32h7xx_hal_pwr_ex.h:292

◆ IS_PWR_BATTERY_RESISTOR_SELECT

#define IS_PWR_BATTERY_RESISTOR_SELECT (   RESISTOR)
Value:
(((RESISTOR) == PWR_BATTERY_CHARGING_RESISTOR_5) ||\
#define PWR_BATTERY_CHARGING_RESISTOR_5
Definition: stm32h7xx_hal_pwr_ex.h:315
#define PWR_BATTERY_CHARGING_RESISTOR_1_5
Definition: stm32h7xx_hal_pwr_ex.h:316

◆ IS_PWR_DOMAIN

#define IS_PWR_DOMAIN (   DOMAIN)
Value:
(((DOMAIN) == PWR_D1_DOMAIN) ||\
((DOMAIN) == PWR_D3_DOMAIN))

◆ IS_PWR_STOP_MODE_REGULATOR_VOLTAGE

#define IS_PWR_STOP_MODE_REGULATOR_VOLTAGE (   VOLTAGE)
Value:
(((VOLTAGE) == PWR_REGULATOR_SVOS_SCALE3) ||\
((VOLTAGE) == PWR_REGULATOR_SVOS_SCALE4) ||\
((VOLTAGE) == PWR_REGULATOR_SVOS_SCALE5))

◆ IS_PWR_SUPPLY

#define IS_PWR_SUPPLY (   PWR_SOURCE)
Value:
(((PWR_SOURCE) == PWR_LDO_SUPPLY) ||\
((PWR_SOURCE) == PWR_EXTERNAL_SOURCE_SUPPLY))
#define PWR_EXTERNAL_SOURCE_SUPPLY
Definition: stm32h7xx_hal_pwr_ex.h:256
#define PWR_LDO_SUPPLY
Definition: stm32h7xx_hal_pwr_ex.h:246

◆ IS_PWR_WAKEUP_FLAG

#define IS_PWR_WAKEUP_FLAG (   FLAG)
Value:
(((FLAG) == PWR_WAKEUP_FLAG1) ||\
((FLAG) == PWR_WAKEUP_FLAG2) ||\
((FLAG) == PWR_WAKEUP_FLAG4) ||\
((FLAG) == PWR_WAKEUP_FLAG6) ||\
((FLAG) == PWR_WAKEUP_FLAG_ALL))
#define PWR_WAKEUP_FLAG1
Definition: stm32h7xx_hal_pwr_ex.h:169
#define PWR_WAKEUP_FLAG4
Definition: stm32h7xx_hal_pwr_ex.h:174
#define PWR_WAKEUP_FLAG2
Definition: stm32h7xx_hal_pwr_ex.h:170
#define PWR_WAKEUP_FLAG6
Definition: stm32h7xx_hal_pwr_ex.h:178

◆ IS_PWR_WAKEUP_PIN

#define IS_PWR_WAKEUP_PIN (   PIN)
Value:
(((PIN) == PWR_WAKEUP_PIN1) ||\
((PIN) == PWR_WAKEUP_PIN2) ||\
((PIN) == PWR_WAKEUP_PIN4) ||\
((PIN) == PWR_WAKEUP_PIN6) ||\
((PIN) == PWR_WAKEUP_PIN1_HIGH) ||\
((PIN) == PWR_WAKEUP_PIN2_HIGH) ||\
((PIN) == PWR_WAKEUP_PIN4_HIGH) ||\
((PIN) == PWR_WAKEUP_PIN6_HIGH) ||\
((PIN) == PWR_WAKEUP_PIN1_LOW) ||\
((PIN) == PWR_WAKEUP_PIN2_LOW) ||\
((PIN) == PWR_WAKEUP_PIN4_LOW) ||\
((PIN) == PWR_WAKEUP_PIN6_LOW))

◆ IS_PWR_WAKEUP_PIN_POLARITY

#define IS_PWR_WAKEUP_PIN_POLARITY (   POLARITY)
Value:
(((POLARITY) == PWR_PIN_POLARITY_HIGH) ||\
((POLARITY) == PWR_PIN_POLARITY_LOW))

◆ IS_PWR_WAKEUP_PIN_PULL

#define IS_PWR_WAKEUP_PIN_PULL (   PULL)
Value:
(((PULL) == PWR_PIN_NO_PULL) ||\
((PULL) == PWR_PIN_PULL_UP) ||\
((PULL) == PWR_PIN_PULL_DOWN))