Home
last modified time | relevance | path

Searched refs:gpio (Results 1 – 24 of 24) sorted by relevance

/platform/stm32f7xx/include/platform/
A Dgpio.h13 #define GPIO_TO_PIN_MASK(gpio) ((unsigned int)( 1 << ((gpio) & 0x0f))) argument
15 #define GPIO_PORT(gpio) (((gpio) >> 8) & 0xff) argument
16 #define GPIO_PIN(gpio) ((gpio) & 0xff) argument
17 #define GPIO_AFNUM(gpio) (((gpio) >> 24) & 0xf) argument
/platform/stm32f2xx/include/platform/
A Dgpio.h13 #define GPIO_PORT(gpio) (((gpio) >> 8) & 0xff) argument
14 #define GPIO_PIN(gpio) ((gpio) & 0xff) argument
15 #define GPIO_AFNUM(gpio) (((gpio) >> 24) & 0xf) argument
/platform/stm32f4xx/include/platform/
A Dgpio.h13 #define GPIO_PORT(gpio) (((gpio) >> 8) & 0xff) argument
14 #define GPIO_PIN(gpio) ((gpio) & 0xff) argument
15 #define GPIO_AFNUM(gpio) (((gpio) >> 24) & 0xf) argument
/platform/zynq/
A Dgpio.c52 irq_callbacks[gpio].callback(irq_callbacks[gpio].args); in gpio_int_handler()
65 uint16_t bit = extract_bit(gpio); in zynq_unmask_gpio_interrupt()
73 uint16_t bit = extract_bit(gpio); in zynq_mask_gpio_interrupt()
131 DEBUG_ASSERT(gpio < MAX_GPIO); in register_gpio_int_handler()
135 irq_callbacks[gpio].args = args; in register_gpio_int_handler()
139 DEBUG_ASSERT(gpio < MAX_GPIO); in unregister_gpio_int_handler()
142 irq_callbacks[gpio].args = NULL; in unregister_gpio_int_handler()
146 DEBUG_ASSERT(gpio < MAX_GPIO); in gpio_config()
211 DEBUG_ASSERT(gpio < MAX_GPIO); in gpio_set()
227 int gpio_get(unsigned gpio) { in gpio_get() argument
[all …]
A Drules.mk22 $(LOCAL_DIR)/gpio.c \
/platform/stm32f0xx/include/platform/
A Dgpio.h15 #define GPIO_PORT(gpio) (((gpio) >> 8) & 0xff) argument
16 #define GPIO_PIN(gpio) ((gpio) & 0xff) argument
17 #define GPIO_AFNUM(gpio) (((gpio) >> 24) & 0xf) argument
/platform/stm32f0xx/
A Dgpio.c121 gpio->AFR[reg_index] &= ~(0xf << entry_shift); in stm32_gpio_af_config()
144 gpio->OTYPER &= ~((GPIO_OTYPER_OT_0) << pin); in gpio_config()
146 gpio->OTYPER |= STM32_GPIO_OTYPE_OD << pin; in gpio_config()
148 gpio->OTYPER |= STM32_GPIO_OTYPE_PP << pin; in gpio_config()
161 gpio->MODER &= ~(GPIO_MODER_MODER0 << (pin * 2)); in gpio_config()
162 gpio->MODER |= (mode << (pin * 2)); in gpio_config()
171 gpio->PUPDR &= ~(GPIO_PUPDR_PUPDR0 << (pin * 2)); in gpio_config()
172 gpio->PUPDR |= pupd << (pin * 2); in gpio_config()
180 gpio->BSRR = 1 << GPIO_PIN(nr); in gpio_set()
182 gpio->BRR = 1 << GPIO_PIN(nr); in gpio_set()
[all …]
A Drules.mk37 $(LOCAL_DIR)/gpio.c \
/platform/stm32f1xx/include/platform/
A Dgpio.h12 #define GPIO_PORT(gpio) (((gpio) >> 8) & 0xff) argument
13 #define GPIO_PIN(gpio) ((gpio) & 0xff) argument
/platform/stellaris/include/platform/
A Dgpio.h14 #define GPIO_PORT(gpio) (((gpio) >> 4) & 0xf) argument
15 #define GPIO_PIN(gpio) ((gpio) & 0xf) argument
/platform/lpc15xx/include/platform/
A Dgpio.h15 #define GPIO_PORT(gpio) (((gpio) >> 4) & 0xf)
16 #define GPIO_PIN(gpio) ((gpio) & 0xf)
/platform/zynq/include/platform/
A Dgpio.h37 void zynq_unmask_gpio_interrupt(unsigned gpio);
38 void zynq_mask_gpio_interrupt(unsigned gpio);
41 void register_gpio_int_handler(unsigned gpio, int_handler handler, void *args);
42 void unregister_gpio_int_handler(unsigned gpio);
/platform/sifive/
A Drules.mk9 MODULE_DEPS += dev/gpio
15 MODULE_SRCS += $(LOCAL_DIR)/gpio.c
/platform/stm32f7xx/
A Drules.mk44 $(LOCAL_DIR)/gpio.c \
65 dev/gpio \
/platform/cc13xx/
A Drules.mk16 $(LOCAL_DIR)/gpio.c \
/platform/lpc43xx/
A Drules.mk17 $(LOCAL_DIR)/gpio.c \
/platform/stellaris/
A Drules.mk34 $(LOCAL_DIR)/gpio.c \
/platform/nrf52xxx/
A Drules.mk52 $(LOCAL_DIR)/gpio.c \
/platform/bcm28xx/
A Drules.mk20 $(LOCAL_DIR)/gpio.c \
/platform/stm32f4xx/
A Drules.mk39 $(LOCAL_DIR)/gpio.c \
/platform/nrf51xxx/
A Drules.mk48 $(LOCAL_DIR)/gpio.c \
/platform/rp20xx/
A Drules.mk24 $(LOCAL_DIR)/gpio.c \
32 external/platform/pico/rp2_common/hardware_gpio/gpio.c \
/platform/stm32f2xx/
A Drules.mk39 $(LOCAL_DIR)/gpio.c \
/platform/stm32f1xx/
A Drules.mk48 $(LOCAL_DIR)/gpio.c \

Completed in 24 milliseconds