RTEMS: bsps/arm/raspberrypi/include/bsp/rpi-gpio.h File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Macros | Functions
rpi-gpio.h File Reference

Raspberry Pi specific GPIO definitions. More...

`#include <rtems.h>`

Go to the source code of this file.

## Macros
#define | RPI_DIGITAL_IN 0
| Raspberry Pi GPIO functions.
#define | RPI_DIGITAL_OUT 1
#define | RPI_ALT_FUNC_0 4
#define | RPI_ALT_FUNC_1 5
#define | RPI_ALT_FUNC_2 6
#define | RPI_ALT_FUNC_3 7
#define | RPI_ALT_FUNC_4 3
#define | RPI_ALT_FUNC_5 2
#define | RPI_ALT_FUNC_MASK 7

## Functions
rtems_status_code | rpi_gpio_select_jtag (void)
| Setups a JTAG interface.
rtems_status_code | rpi_gpio_select_spi (void)
| Setups a SPI interface.
rtems_status_code | rpi_gpio_select_i2c (void)
| Setups a I2C interface.

## Detailed Description

Raspberry Pi specific GPIO definitions.

## Function Documentation

## ◆ rpi_gpio_select_i2c()

rtems_status_code rpi_gpio_select_i2c | ( | void |  | ) |

Setups a I2C interface.

Return values

  RTEMS_SUCCESSFUL | I2C interface successfully configured.
  * | At least one of the required pins is currently occupied,

See also
  rtems_gpio_request_pin_group().

## ◆ rpi_gpio_select_jtag()

rtems_status_code rpi_gpio_select_jtag | ( | void |  | ) |

Setups a JTAG interface.

Return values

  RTEMS_SUCCESSFUL | JTAG interface successfully configured.
  * | At least one of the required pins is currently occupied,

See also
  rtems_gpio_request_pin_group().

## ◆ rpi_gpio_select_spi()

rtems_status_code rpi_gpio_select_spi | ( | void |  | ) |

Setups a SPI interface.

Return values

  RTEMS_SUCCESSFUL | SPI interface successfully configured.
  * | At least one of the required pins is currently occupied,

See also
  rtems_gpio_request_pin_group().