Contiki 3.x
Functions
board-spi.c File Reference

Board-specific SPI driver common to the Sensortag and LaunchPad. More...

#include "contiki.h"
#include "ti-lib.h"
#include "board-spi.h"
#include "board.h"
#include <stdbool.h>

Go to the source code of this file.

Functions

bool board_spi_write (const uint8_t *buf, size_t length)
 Write to an SPI device. More...
 
bool board_spi_read (uint8_t *buf, size_t length)
 Read from an SPI device. More...
 
void board_spi_flush (void)
 Clear data from the SPI interface. More...
 
void board_spi_open (uint32_t bit_rate, uint32_t clk_pin)
 Initialize the SPI interface. More...
 
void board_spi_close (void)
 Close the SPI interface. More...
 

Detailed Description

Board-specific SPI driver common to the Sensortag and LaunchPad.

Definition in file board-spi.c.