RTEMS
5.0.0
|
SPI support API. More...
Go to the source code of this file.
Data Structures | |
struct | BEAGLE_SPI_BufferDescriptor_ |
struct | beagle_spi_softc |
struct | beagle_spi_desc_t |
Macros | |
#define | BBB_SPI_TIMEOUT 1000 |
#define | BBB_SPI_0_BUS_PATH "/dev/spi-0" |
#define | BBB_SPI_0_IRQ AM335X_INT_SPI0INT |
Typedefs | |
typedef struct BEAGLE_SPI_BufferDescriptor_ | BEAGLE_SPI_BufferDescriptor_t |
typedef struct beagle_spi_softc | beagle_spi_softc_t |
Enumerations | |
enum | bbb_spi_id_t { SPI0, SPI1, SPI_COUNT } |
Functions | |
rtems_status_code | beagle_spi_init (rtems_libi2c_bus_t *bh) |
int | beagle_spi_read_bytes (rtems_libi2c_bus_t *bh, unsigned char *buf, int len) |
int | beagle_spi_write_bytes (rtems_libi2c_bus_t *bh, unsigned char *buf, int len) |
rtems_status_code | beagle_spi_set_tfr_mode (rtems_libi2c_bus_t *bh, const rtems_libi2c_tfr_mode_t *tfr_mode) |
int | beagle_spi_ioctl (rtems_libi2c_bus_t *bh, int cmd, void *arg) |
rtems_status_code | bsp_register_spi (const char *bus_path, uintptr_t register_base, rtems_vector_number irq) |
SPI support API.
Based on bsps/m68k/gen68360/spi/m360_spi.h