| /bsp/raspberry-pi/raspi4-64/drivers/ |
| A D | drv_spi.h | 52 GPIO_PIN sclk_pin; 54 GPIO_PIN mosi_pin; 56 GPIO_PIN miso_pin; 59 GPIO_PIN ce0_pin; 64 GPIO_PIN ce1_pin; 69 GPIO_PIN ce2_pin; 82 GPIO_PIN cs_pin;
|
| A D | drv_gpio.h | 117 } GPIO_PIN; typedef 136 void prev_raspi_pin_mode(GPIO_PIN pin, GPIO_FUNC mode); 137 void prev_raspi_pin_write(GPIO_PIN pin, int pin_value);
|
| A D | drv_gpio.c | 80 static void gpio_set_pud(GPIO_PIN pin, GPIO_PUPD_FUNC mode) in gpio_set_pud() 111 void prev_raspi_pin_mode(GPIO_PIN pin, GPIO_FUNC mode) in prev_raspi_pin_mode() 123 void prev_raspi_pin_write(GPIO_PIN pin, int pin_value) in prev_raspi_pin_write() 175 prev_raspi_pin_mode((GPIO_PIN)pin, raspi_mode); in raspi_pin_mode()
|
| A D | drv_spi.c | 165 GPIO_PIN cs_pin = (GPIO_PIN)hw_config->cs_pin; in raspi_spi_xfer()
|
| /bsp/raspberry-pi/raspi4-32/driver/ |
| A D | drv_spi.h | 52 GPIO_PIN sclk_pin; 54 GPIO_PIN mosi_pin; 56 GPIO_PIN miso_pin; 59 GPIO_PIN ce0_pin; 64 GPIO_PIN ce1_pin; 69 GPIO_PIN ce2_pin; 82 GPIO_PIN cs_pin;
|
| A D | drv_gpio.h | 117 } GPIO_PIN; typedef 136 void prev_raspi_pin_mode(GPIO_PIN pin, GPIO_FUNC mode); 137 void prev_raspi_pin_write(GPIO_PIN pin, int pin_value);
|
| A D | drv_gpio.c | 80 static void gpio_set_pud(GPIO_PIN pin, GPIO_PUPD_FUNC mode) in gpio_set_pud() 111 void prev_raspi_pin_mode(GPIO_PIN pin, GPIO_FUNC mode) in prev_raspi_pin_mode() 123 void prev_raspi_pin_write(GPIO_PIN pin, int pin_value) in prev_raspi_pin_write() 175 prev_raspi_pin_mode((GPIO_PIN)pin, raspi_mode); in raspi_pin_mode()
|
| A D | drv_spi.c | 153 GPIO_PIN cs_pin = (GPIO_PIN)hw_config->cs_pin; in raspi_spi_xfer()
|
| /bsp/microchip/samc21/bsp/hal/include/ |
| A D | hal_gpio.h | 107 _gpio_set_direction((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin), direction); in gpio_set_pin_direction() 138 _gpio_set_level((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin), level); in gpio_set_pin_level() 165 _gpio_toggle_level((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin)); in gpio_toggle_pin_level() 190 return (bool)(_gpio_get_level((enum gpio_port)GPIO_PORT(pin)) & (0x01U << GPIO_PIN(pin))); in gpio_get_pin_level()
|
| A D | hpl_gpio.h | 56 #define GPIO_PIN(n) (((n)&0x1Fu) << 0) macro
|
| /bsp/microchip/samd51-seeed-wio-terminal/bsp/hal/include/ |
| A D | hal_gpio.h | 107 _gpio_set_direction((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin), direction); in gpio_set_pin_direction() 138 _gpio_set_level((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin), level); in gpio_set_pin_level() 165 _gpio_toggle_level((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin)); in gpio_toggle_pin_level() 190 return (bool)(_gpio_get_level((enum gpio_port)GPIO_PORT(pin)) & (0x01U << GPIO_PIN(pin))); in gpio_get_pin_level()
|
| A D | hpl_gpio.h | 56 #define GPIO_PIN(n) (((n)&0x1Fu) << 0) macro
|
| /bsp/microchip/saml10/bsp/hal/include/ |
| A D | hal_gpio.h | 107 _gpio_set_direction((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin), direction); in gpio_set_pin_direction() 138 _gpio_set_level((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin), level); in gpio_set_pin_level() 165 _gpio_toggle_level((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin)); in gpio_toggle_pin_level() 190 return (bool)(_gpio_get_level((enum gpio_port)GPIO_PORT(pin)) & (0x01U << GPIO_PIN(pin))); in gpio_get_pin_level()
|
| A D | hpl_gpio.h | 56 #define GPIO_PIN(n) (((n)&0x1Fu) << 0) macro
|
| /bsp/microchip/same70/bsp/hal/include/ |
| A D | hal_gpio.h | 107 _gpio_set_direction((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin), direction); in gpio_set_pin_direction() 138 _gpio_set_level((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin), level); in gpio_set_pin_level() 165 _gpio_toggle_level((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin)); in gpio_toggle_pin_level() 190 return (bool)(_gpio_get_level((enum gpio_port)GPIO_PORT(pin)) & (0x01U << GPIO_PIN(pin))); in gpio_get_pin_level()
|
| A D | hpl_gpio.h | 56 #define GPIO_PIN(n) (((n)&0x1Fu) << 0) macro
|
| /bsp/microchip/same54/bsp/hal/include/ |
| A D | hal_gpio.h | 107 _gpio_set_direction((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin), direction); in gpio_set_pin_direction() 138 _gpio_set_level((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin), level); in gpio_set_pin_level() 165 _gpio_toggle_level((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin)); in gpio_toggle_pin_level() 190 return (bool)(_gpio_get_level((enum gpio_port)GPIO_PORT(pin)) & (0x01U << GPIO_PIN(pin))); in gpio_get_pin_level()
|
| A D | hpl_gpio.h | 56 #define GPIO_PIN(n) (((n)&0x1Fu) << 0) macro
|
| /bsp/microchip/samd51-adafruit-metro-m4/bsp/hal/include/ |
| A D | hal_gpio.h | 107 _gpio_set_direction((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin), direction); in gpio_set_pin_direction() 138 _gpio_set_level((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin), level); in gpio_set_pin_level() 165 _gpio_toggle_level((enum gpio_port)GPIO_PORT(pin), 1U << GPIO_PIN(pin)); in gpio_toggle_pin_level() 190 return (bool)(_gpio_get_level((enum gpio_port)GPIO_PORT(pin)) & (0x01U << GPIO_PIN(pin))); in gpio_get_pin_level()
|
| A D | hpl_gpio.h | 56 #define GPIO_PIN(n) (((n)&0x1Fu) << 0) macro
|
| /bsp/hc32l196/drivers/ |
| A D | drv_gpio.c | 24 #define GPIO_PIN(pin) (en_gpio_pin_t)((pin) & 0x0f) macro 47 gpio_pin = GPIO_PIN(pin); in _pin_mode() 94 gpio_pin = GPIO_PIN(pin); in _pin_write() 117 gpio_pin = GPIO_PIN(pin); in _pin_read() 216 gpio_pin = GPIO_PIN(pin); in _pin_irq_enable()
|
| /bsp/hc32l136/drivers/ |
| A D | drv_gpio.c | 21 #define GPIO_PIN(pin) ((uint16_t)(GPIO_PIN_INDEX(pin))) macro 136 gpio_pin = GPIO_PIN(pin); in _pin_write() 157 gpio_pin = GPIO_PIN(pin); in _pin_read() 225 gpio_pin = GPIO_PIN(pin); in _pin_mode() 305 gpio_pin = (en_gpio_pin_t)GPIO_PIN(pin); in _pin_irq_enable()
|
| /bsp/hc32/libraries/hc32_drivers/ |
| A D | drv_gpio.c | 26 #define GPIO_PIN(pin) ((uint16_t)(0x01U << GPIO_PIN_INDEX(pin))) macro 354 GPIO_Init(GPIO_PORT(pin), GPIO_PIN(pin), &stcGpioInit); in hc32_pin_mode() 365 gpio_pin = GPIO_PIN(pin); in hc32_pin_write() 386 gpio_pin = GPIO_PIN(pin); in hc32_pin_read() 504 gpio_pin = GPIO_PIN(pin); in hc32_pin_irq_enable()
|
| /bsp/microchip/same70/bsp/hpl/pio/ |
| A D | hpl_gpio_base.h | 142 uint8_t pin = GPIO_PIN(gpio); in _gpio_set_pin_function()
|
| /bsp/microchip/samc21/bsp/hpl/port/ |
| A D | hpl_gpio_base.h | 148 uint8_t pin = GPIO_PIN(gpio); in _gpio_set_pin_function()
|