spi: Get basic SPI commands working

This commit is contained in:
Sean Cross 2014-09-12 16:46:11 +08:00
parent 8d0e780508
commit 43a1517aec
8 changed files with 118 additions and 77 deletions

View file

@ -2,6 +2,7 @@
#ifndef __SPI_H__
#define __SPI_H__
#define SPI_ADDR 0xa0140000
int spi_cmd_txrx(uint8_t tx_size, uint8_t rx_size,
uint8_t *tx_buf, uint8_t *rx_buf);
#endif /* __SPI_H__ */