STM8L15x Standard Peripherals Drivers: GPIO_Exported_Macros

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

GPIO_Exported_Macros

Defines

#define IS_GPIO_MODE(MODE)
 Macro used by the assert function to check the different functions parameters.
#define IS_GPIO_PIN(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 (   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 121 of file stm8l15x_gpio.h.

Referenced by GPIO_Init().

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

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

Definition at line 139 of file stm8l15x_gpio.h.

Referenced by GPIO_ExternalPullUpConfig(), GPIO_Init(), and GPIO_WriteBit().

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com