RTEMS 7.0-rc1
Loading...
Searching...
No Matches
rpi-gpio.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
2
11/*
12 * Copyright (c) 2015 Andre Marques <andre.lousa.marques at gmail.com>
13 *
14 * The license and distribution terms for this file may be
15 * found in the file LICENSE in this distribution or at
16 * http://www.rtems.org/license/LICENSE.
17 */
18
19#ifndef LIBBSP_ARM_RASPBERRYPI_RPI_GPIO_H
20#define LIBBSP_ARM_RASPBERRYPI_RPI_GPIO_H
21
22#include <rtems.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif /* __cplusplus */
27
31#define RPI_DIGITAL_IN 0
32#define RPI_DIGITAL_OUT 1
33#define RPI_ALT_FUNC_0 4
34#define RPI_ALT_FUNC_1 5
35#define RPI_ALT_FUNC_2 6
36#define RPI_ALT_FUNC_3 7
37#define RPI_ALT_FUNC_4 3
38#define RPI_ALT_FUNC_5 2
39#define RPI_ALT_FUNC_MASK 7
40
49
58
67
68#ifdef __cplusplus
69}
70#endif /* __cplusplus */
71
72#endif /* LIBBSP_ARM_RASPBERRYPI_RPI_GPIO_H */
rtems_status_code rpi_gpio_select_spi(void)
Setups a SPI interface.
Definition: rpi-gpio.c:317
rtems_status_code rpi_gpio_select_jtag(void)
Setups a JTAG interface.
Definition: rpi-gpio.c:312
rtems_status_code rpi_gpio_select_i2c(void)
Setups a I2C interface.
Definition: rpi-gpio.c:322
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
This header file defines the RTEMS Classic API.