Home
last modified time | relevance | path

Searched refs:port_to_pointer (Results 1 – 5 of 5) sorted by relevance

/platform/stm32f2xx/
A Dgpio.c16 static GPIO_TypeDef *port_to_pointer(unsigned int port) { in port_to_pointer() function
68 GPIO_PinAFConfig(port_to_pointer(port), pin, GPIO_AFNUM(flags)); in gpio_config()
83 GPIO_Init(port_to_pointer(port), &init); in gpio_config()
89 GPIO_WriteBit(port_to_pointer(GPIO_PORT(nr)), 1 << GPIO_PIN(nr), on); in gpio_set()
93 return GPIO_ReadInputDataBit(port_to_pointer(GPIO_PORT(nr)), 1 << GPIO_PIN(nr)); in gpio_get()
/platform/stm32f4xx/
A Dgpio.c16 static GPIO_TypeDef *port_to_pointer(unsigned int port) { in port_to_pointer() function
68 GPIO_PinAFConfig(port_to_pointer(port), pin, GPIO_AFNUM(flags)); in gpio_config()
83 GPIO_Init(port_to_pointer(port), &init); in gpio_config()
89 GPIO_WriteBit(port_to_pointer(GPIO_PORT(nr)), 1 << GPIO_PIN(nr), on); in gpio_set()
93 return GPIO_ReadInputDataBit(port_to_pointer(GPIO_PORT(nr)), 1 << GPIO_PIN(nr)); in gpio_get()
/platform/stm32f1xx/
A Dgpio.c16 static GPIO_TypeDef *port_to_pointer(unsigned int port) { in port_to_pointer() function
78 GPIO_Init(port_to_pointer(port), &init); in gpio_config()
84 GPIO_WriteBit(port_to_pointer(GPIO_PORT(nr)), 1 << GPIO_PIN(nr), on); in gpio_set()
88 return GPIO_ReadInputDataBit(port_to_pointer(GPIO_PORT(nr)), 1 << GPIO_PIN(nr)); in gpio_get()
/platform/stellaris/
A Dgpio.c14 static void *port_to_pointer(unsigned int port) { in port_to_pointer() function
112 GPIO_Init(port_to_pointer(port), &init);
119 …GPIOPinWrite((unsigned int)port_to_pointer(GPIO_PORT(nr)), 1 << GPIO_PIN(nr), on ? (1 << GPIO_PIN(… in gpio_set()
123 return GPIOPinRead((unsigned int)port_to_pointer(GPIO_PORT(nr)), 1 << GPIO_PIN(nr)); in gpio_get()
/platform/stm32f7xx/
A Dgpio.c15 static GPIO_TypeDef *port_to_pointer(unsigned int port) { in port_to_pointer() function
127 HAL_GPIO_Init(port_to_pointer(port), &init); in gpio_config()
133 HAL_GPIO_WritePin(port_to_pointer(GPIO_PORT(nr)), 1 << GPIO_PIN(nr), on); in gpio_set()
137 return HAL_GPIO_ReadPin(port_to_pointer(GPIO_PORT(nr)), 1 << GPIO_PIN(nr)); in gpio_get()

Completed in 10 milliseconds