RTEMS  5.0.0
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. More...
 
rtems_status_code rpi_gpio_select_spi (void)
 Setups a SPI interface. More...
 
rtems_status_code rpi_gpio_select_i2c (void)
 Setups a I2C interface. More...
 

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_SUCCESSFULI2C 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_SUCCESSFULJTAG 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_SUCCESSFULSPI interface successfully configured.
*At least one of the required pins is currently occupied,
See also
rtems_gpio_request_pin_group().