RTEMS  5.1
rpi-gpio.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright (c) 2015 Andre Marques <andre.lousa.marques at gmail.com>
11  *
12  * The license and distribution terms for this file may be
13  * found in the file LICENSE in this distribution or at
14  * http://www.rtems.org/license/LICENSE.
15  */
16 
17 #ifndef LIBBSP_ARM_RASPBERRYPI_RPI_GPIO_H
18 #define LIBBSP_ARM_RASPBERRYPI_RPI_GPIO_H
19 
20 #include <rtems.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif /* __cplusplus */
25 
29 #define RPI_DIGITAL_IN 0
30 #define RPI_DIGITAL_OUT 1
31 #define RPI_ALT_FUNC_0 4
32 #define RPI_ALT_FUNC_1 5
33 #define RPI_ALT_FUNC_2 6
34 #define RPI_ALT_FUNC_3 7
35 #define RPI_ALT_FUNC_4 3
36 #define RPI_ALT_FUNC_5 2
37 #define RPI_ALT_FUNC_MASK 7
38 
47 
56 
65 
66 #ifdef __cplusplus
67 }
68 #endif /* __cplusplus */
69 
70 #endif /* LIBBSP_ARM_RASPBERRYPI_RPI_GPIO_H */
rtems_status_code
Classic API Status.
Definition: status.h:43
rtems_status_code rpi_gpio_select_i2c(void)
Setups a I2C interface.
Definition: rpi-gpio.c:290
rtems_status_code rpi_gpio_select_spi(void)
Setups a SPI interface.
Definition: rpi-gpio.c:285
rtems_status_code rpi_gpio_select_jtag(void)
Setups a JTAG interface.
Definition: rpi-gpio.c:280