RTEMS 6.1-rc6
|
SPI Driver. More...
#include <bsp/irq.h>
#include <bsp/raspberrypi.h>
#include <bsp/raspberrypi-spi.h>
#include <bsp/rpi-gpio.h>
#include <dev/spi/spi.h>
#include <bspopts.h>
Data Structures | |
struct | raspberrypi_spi_bus |
Functions | |
rtems_status_code | raspberrypi_spi_init (raspberrypi_spi_device device) |
Register a spi device. | |
SPI Driver.
rtems_status_code raspberrypi_spi_init | ( | raspberrypi_spi_device | device | ) |
Register a spi device.
device | The optional devices are raspberrypi_SPI0, raspberrypi_SPI3, raspberrypi_SPI4, raspberrypi_SPI5, raspberrypi_SPI6. |
RTEMS_SUCCESSFUL | Successfully registered SPI device. |
RTEMS_INVALID_NUMBER | This status code indicates that a specified number was invalid. |
RTEMS_UNSATISFIED | This status code indicates that the request was not satisfied. |