Booten in Titelbild.
[hackover2013-badge-firmware.git] / dataflash / iobase.c
1 #include "diskio.h"
2 #include "core/ssp/ssp.h"
3
4 /*-----------------------------------------------------------------------*/
5 /* Transmit a byte via SPI (Platform dependent) */
6 /*-----------------------------------------------------------------------*/
7 void xmit_spi(BYTE dat) {
8 sspSend(0, (uint8_t*) &dat, 1);
9 }
10
11 /*-----------------------------------------------------------------------*/
12 /* Receive a byte from MMC via SPI (Platform dependent) */
13 /*-----------------------------------------------------------------------*/
14 BYTE rcvr_spi (void) {
15 BYTE data = 0;
16
17 sspReceive(0, &data, 1);
18
19 return data;
20 }
21
This page took 0.051259 seconds and 5 git commands to generate.