RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Macros | Functions | Variables
spi.c File Reference

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
 

Detailed Description

BeagleBoard SPI bus initialization and API Support.

Based on bsps/m68k/gen68360/spi/m360_spi.c

Variable Documentation

◆ bsp_spi_ops

Initial value:
= {
init: beagle_spi_init,
send_start: bsp_spi_send_start_dummy,
send_stop: bsp_spi_send_stop,
send_addr: bsp_spi_sel_addr,
read_bytes: beagle_spi_read_bytes,
write_bytes: beagle_spi_write_bytes,
ioctl: beagle_spi_ioctl
}