crashtest-r0ket/filesystem/iobase.c
bsx 05791efb05 added filesystem code based on FatFs
!!! UNTESTET !!!

* modified mmc code from microbuilders to work with our board
* added code for AT45DB041D DataFlash according to datasheet
2011-06-15 10:51:22 +02:00

21 lines
654 B
C

#include "diskio.h"
#include "core/ssp/ssp.h"
/*-----------------------------------------------------------------------*/
/* Transmit a byte via SPI (Platform dependent) */
/*-----------------------------------------------------------------------*/
void xmit_spi(BYTE dat) {
sspSend(0, (uint8_t*) &dat, 1);
}
/*-----------------------------------------------------------------------*/
/* Receive a byte from MMC via SPI (Platform dependent) */
/*-----------------------------------------------------------------------*/
BYTE rcvr_spi (void) {
BYTE data = 0;
sspReceive(0, &data, 1);
return data;
}