RTEMS 6.1-rc5
|
BeagleBoard SPI bus initialization and API Support. More...
#include <bsp.h>
#include <bsp/bbb-gpio.h>
#include <bsp/spi.h>
#include <errno.h>
#include <rtems/bspIo.h>
#include <rtems/error.h>
#include <rtems/libi2c.h>
#include <stdio.h>
#include <stdlib.h>
Macros | |
#define | EVENT_TXEMPTY RTEMS_EVENT_0 |
#define | EVENT_RXFULL RTEMS_EVENT_1 |
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) |
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) |
Variables | |
rtems_libi2c_bus_ops_t | bsp_spi_ops |
BeagleBoard SPI bus initialization and API Support.
Based on bsps/m68k/gen68360/spi/m360_spi.c
rtems_libi2c_bus_ops_t bsp_spi_ops |