Lines Matching refs:pin
71 void GPIO_PinInit(GPIO_Type *base, uint32_t pin, const gpio_pin_config_t *Config) in GPIO_PinInit() argument
85 base->IMR &= ~(1UL << pin); in GPIO_PinInit()
90 base->GDIR &= ~(1UL << pin); in GPIO_PinInit()
94 GPIO_PinWrite(base, pin, Config->outputLogic); in GPIO_PinInit()
95 base->GDIR |= (1UL << pin); in GPIO_PinInit()
99 GPIO_SetPinInterruptConfig(base, pin, Config->interruptMode); in GPIO_PinInit()
111 void GPIO_PinWrite(GPIO_Type *base, uint32_t pin, uint8_t output) in GPIO_PinWrite() argument
113 assert(pin < 32U); in GPIO_PinWrite()
116 base->DR &= ~(1UL << pin); /* Set pin output to low level.*/ in GPIO_PinWrite()
120 base->DR |= (1UL << pin); /* Set pin output to high level.*/ in GPIO_PinWrite()
132 void GPIO_PinSetInterruptConfig(GPIO_Type *base, uint32_t pin, gpio_interrupt_mode_t pinInterruptMo… in GPIO_PinSetInterruptConfig() argument
137 icrShift = pin; in GPIO_PinSetInterruptConfig()
140 base->EDGE_SEL &= ~(1UL << pin); in GPIO_PinSetInterruptConfig()
142 if (pin < 16U) in GPIO_PinSetInterruptConfig()
166 base->EDGE_SEL |= (1UL << pin); in GPIO_PinSetInterruptConfig()