RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Data Structures | Functions
raspberrypi-spi.c File Reference

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.
 

Detailed Description

SPI Driver.

Function Documentation

◆ raspberrypi_spi_init()

rtems_status_code raspberrypi_spi_init ( raspberrypi_spi_device  device)

Register a spi device.

Parameters
deviceThe optional devices are raspberrypi_SPI0, raspberrypi_SPI3, raspberrypi_SPI4, raspberrypi_SPI5, raspberrypi_SPI6.
Return values
RTEMS_SUCCESSFULSuccessfully registered SPI device.
RTEMS_INVALID_NUMBERThis status code indicates that a specified number was invalid.
RTEMS_UNSATISFIEDThis status code indicates that the request was not satisfied.