/*-----------------------------------------------------------------------
/  Low level disk interface modlue include file  R0.07   (C)ChaN, 2009
/-----------------------------------------------------------------------*/

#ifndef _SPI

//void spi_init (void)();
//void spi_hi_speed (BOOL on)();
//U8 spi_send (U8 outb)();

#define rcvr_spi() spi_send(0xff)
#define rcvr_spi_m(dst) *(dst) = spi_send(0xff)
#define xmit_spi(dat) spi_send(dat)

#define FCLK_SLOW() spi_hi_speed(0)
#define FCLK_FAST() spi_hi_speed(1)

void SELECT();
void DESELECT();

#define SOCKWP		0x20			/* Write protect switch (PB5) */
#define SOCKINS		0x10			/* Card detect switch (PB4) */
#define SOCKPORT	~(SOCKWP | SOCKINS)			/* Socket contact port */

#define _SPI
#endif
