STM8S/A Standard Peripherals Drivers: GPIO_Private_Macros

STM8S/A

STM8S/A Standard Peripherals Drivers
GPIO_Private_Macros

Defines

#define IS_GPIO_MODE_OK(MODE)
 Macro used by the assert function to check the different functions parameters.
#define IS_GPIO_PIN_OK(PIN)   ((PIN) != (uint8_t)0x00)
 Macro used by the assert function in order to check the different values of GPIO_Pins.

Define Documentation

#define IS_GPIO_MODE_OK (   MODE)
Value:
(((MODE) == GPIO_MODE_IN_FL_NO_IT)    || \
   ((MODE) == GPIO_MODE_IN_PU_NO_IT)    || \
   ((MODE) == GPIO_MODE_IN_FL_IT)       || \
   ((MODE) == GPIO_MODE_IN_PU_IT)       || \
   ((MODE) == GPIO_MODE_OUT_OD_LOW_FAST)  || \
   ((MODE) == GPIO_MODE_OUT_PP_LOW_FAST)  || \
   ((MODE) == GPIO_MODE_OUT_OD_LOW_SLOW)  || \
   ((MODE) == GPIO_MODE_OUT_PP_LOW_SLOW)  || \
   ((MODE) == GPIO_MODE_OUT_OD_HIZ_FAST)  || \
   ((MODE) == GPIO_MODE_OUT_PP_HIGH_FAST)  || \
   ((MODE) == GPIO_MODE_OUT_OD_HIZ_SLOW)  || \
   ((MODE) == GPIO_MODE_OUT_PP_HIGH_SLOW))

Macro used by the assert function to check the different functions parameters.

Macro used by the assert function in order to check the different values of GPIOMode_TypeDef.

Definition at line 110 of file stm8s_gpio.h.

Referenced by GPIO_Init().

#define IS_GPIO_PIN_OK (   PIN)    ((PIN) != (uint8_t)0x00)

Macro used by the assert function in order to check the different values of GPIO_Pins.

Definition at line 128 of file stm8s_gpio.h.

Referenced by GPIO_ExternalPullUpConfig(), and GPIO_Init().

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com