mikroSDK Reference Manual

Macros

#define GPIO_GET_INDEX(__GPIOx__)
 
#define GPIO_GET_INDEX(__GPIOx__)
 

Macro Definition Documentation

◆ GPIO_GET_INDEX [1/2]

#define GPIO_GET_INDEX ( __GPIOx__)
Value:
(uint8_t)(((__GPIOx__) == (GPIOA))? 0U :\
((__GPIOx__) == (GPIOB))? 1U :\
((__GPIOx__) == (GPIOC))? 2U :\
((__GPIOx__) == (GPIOD))? 3U :\
((__GPIOx__) == (GPIOE))? 4U :\
((__GPIOx__) == (GPIOF))? 5U :\
((__GPIOx__) == (GPIOG))? 6U :\
((__GPIOx__) == (GPIOH))? 7U :\
((__GPIOx__) == (GPIOI))? 8U : 9U)
#define GPIOC
Definition MK60D10.h:6918
#define GPIOB
Definition MK60D10.h:6914
#define GPIOD
Definition MK60D10.h:6922
#define GPIOA
Definition MK60D10.h:6910
#define GPIOE
Definition MK60D10.h:6926

◆ GPIO_GET_INDEX [2/2]

#define GPIO_GET_INDEX ( __GPIOx__)
Value:
(((__GPIOx__) == (GPIOA))? 0UL :\
((__GPIOx__) == (GPIOB))? 1UL :\
((__GPIOx__) == (GPIOC))? 2UL :\
((__GPIOx__) == (GPIOD))? 3UL :\
((__GPIOx__) == (GPIOE))? 4UL :\
((__GPIOx__) == (GPIOF))? 5UL :\
((__GPIOx__) == (GPIOG))? 6UL :\
((__GPIOx__) == (GPIOH))? 7UL :\
((__GPIOx__) == (GPIOJ))? 9UL : 10UL)