- Debugged UART - Firmware support for SPI, UART - Work on SD/MMC support in firmware - Debugged mblite core/WB interface
16 lines
303 B
C
16 lines
303 B
C
// Copyright (c) 2013 Matthias Blankertz <matthias@blankertz.org>
|
|
|
|
#ifndef _SPI_H_
|
|
#define _SPI_H_
|
|
|
|
#include <stdbool.h>
|
|
|
|
void spi_write(unsigned char data);
|
|
unsigned char spi_read();
|
|
unsigned char spi_xmit(unsigned char data);
|
|
|
|
void spi_set_ss(bool active);
|
|
void spi_setclk(unsigned char div);
|
|
|
|
#endif
|