RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Macros

Macros

#define IS_GPIO_PIN_ACTION(ACTION)   (((ACTION) == GPIO_PIN_RESET) || ((ACTION) == GPIO_PIN_SET))
 
#define IS_GPIO_PIN(__PIN__)
 
#define IS_GPIO_MODE(MODE)
 
#define IS_GPIO_SPEED(SPEED)
 
#define IS_GPIO_PULL(PULL)
 

Detailed Description

Macro Definition Documentation

◆ IS_GPIO_MODE

#define IS_GPIO_MODE (   MODE)
Value:
(((MODE) == GPIO_MODE_INPUT) ||\
((MODE) == GPIO_MODE_OUTPUT_PP) ||\
((MODE) == GPIO_MODE_OUTPUT_OD) ||\
((MODE) == GPIO_MODE_AF_PP) ||\
((MODE) == GPIO_MODE_AF_OD) ||\
((MODE) == GPIO_MODE_IT_RISING) ||\
((MODE) == GPIO_MODE_IT_FALLING) ||\
((MODE) == GPIO_MODE_EVT_RISING) ||\
((MODE) == GPIO_MODE_EVT_FALLING) ||\
((MODE) == GPIO_MODE_ANALOG))
#define GPIO_MODE_IT_RISING_FALLING
Definition: stm32h7xx_hal_gpio.h:129
#define GPIO_MODE_IT_RISING
Definition: stm32h7xx_hal_gpio.h:127
#define GPIO_MODE_OUTPUT_PP
Definition: stm32h7xx_hal_gpio.h:122
#define GPIO_MODE_EVT_RISING_FALLING
Definition: stm32h7xx_hal_gpio.h:133
#define GPIO_MODE_AF_OD
Definition: stm32h7xx_hal_gpio.h:125
#define GPIO_MODE_OUTPUT_OD
Definition: stm32h7xx_hal_gpio.h:123
#define GPIO_MODE_AF_PP
Definition: stm32h7xx_hal_gpio.h:124
#define GPIO_MODE_ANALOG
Definition: stm32h7xx_hal_gpio.h:126
#define GPIO_MODE_EVT_RISING
Definition: stm32h7xx_hal_gpio.h:131
#define GPIO_MODE_IT_FALLING
Definition: stm32h7xx_hal_gpio.h:128
#define GPIO_MODE_EVT_FALLING
Definition: stm32h7xx_hal_gpio.h:132
#define GPIO_MODE_INPUT
Definition: stm32h7xx_hal_gpio.h:121

◆ IS_GPIO_PIN

#define IS_GPIO_PIN (   __PIN__)
Value:
((((uint32_t)(__PIN__) & GPIO_PIN_MASK) != 0x00U) &&\
(((uint32_t)(__PIN__) & ~GPIO_PIN_MASK) == 0x00U))

◆ IS_GPIO_PULL

#define IS_GPIO_PULL (   PULL)
Value:
(((PULL) == GPIO_NOPULL) || ((PULL) == GPIO_PULLUP) || \
((PULL) == GPIO_PULLDOWN))
#define GPIO_NOPULL
Definition: stm32h7xx_hal_gpio.h:156
#define GPIO_PULLDOWN
Definition: stm32h7xx_hal_gpio.h:158
#define GPIO_PULLUP
Definition: stm32h7xx_hal_gpio.h:157

◆ IS_GPIO_SPEED

#define IS_GPIO_SPEED (   SPEED)
Value:
(((SPEED) == GPIO_SPEED_FREQ_LOW) || ((SPEED) == GPIO_SPEED_FREQ_MEDIUM) || \
((SPEED) == GPIO_SPEED_FREQ_HIGH) || ((SPEED) == GPIO_SPEED_FREQ_VERY_HIGH))
#define GPIO_SPEED_FREQ_MEDIUM
Definition: stm32h7xx_hal_gpio.h:144
#define GPIO_SPEED_FREQ_VERY_HIGH
Definition: stm32h7xx_hal_gpio.h:146
#define GPIO_SPEED_FREQ_LOW
Definition: stm32h7xx_hal_gpio.h:143
#define GPIO_SPEED_FREQ_HIGH
Definition: stm32h7xx_hal_gpio.h:145