Blame |
Last modification |
View Log
| RSS feed
#ifndef __SSC_H
#define __SSC_H
//-------------------------------------- Hardware specific definitions --------------------------------------
#define MMC_Write PORTB //Port an der die MMC/SD-card angeschlossen ist (SPI Port)
#define MMC_Read PINB
#define MMC_Direction_REG DDRB
#ifdef USE_SDLOGGER
#define __MMC_INTERFACE_INVERTED // the interface between the controller and the MMC/SD-card uses an inverting leveltranslator (transistorinverter)
#endif // and therefore the signals to or from the memorycard have to be inverted.
#ifdef USE_FOLLOWME // uses resitors, therefore its not inverted
//#define __MMC_INTERFACE_INVERTED // the interface between the controller and the MMC/SD-card uses an inverting leveltranslator (transistorinverter)
#endif
#define SPI_DI 6 //Port Pin that is connected to the DO of the MMC/SD-card
#define SPI_DO 5 //Port Pin that is connected to DI of the MMC/SD-card
#define SPI_Clock 7 //Port Pin that is connected the CLK of the MMC/SD-card
#define SPI_SS 4 //Slave Select is not used in SPI Master Mode, but must be defined
#define MMC_Chip_Select 4 //Port Pin an dem Chip Select der MMC/SD-Karte angeschlossen ist
//________________________________________________________________________________________________________________________________________
//
// Functions needed for accessing the sdcard.
//
//________________________________________________________________________________________________________________________________________
extern void SSC_Init(void);
extern u8 SSC_GetChar (void);
extern void SSC_PutChar (u8);
extern void SSC_Enable(void);
extern void SSC_Disable(void);
extern void SSC_ClearRxFifo(void);
#endif