Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
231 killagreg 1
#ifndef __SSC_H
2
#define __SSC_H
3
 
4
 
5
//-------------------------------------- Hardware specific definitions --------------------------------------
6
 
7
#define MMC_Write                       PORTB           //Port an der die MMC/SD-card angeschlossen ist (SPI Port)
8
#define MMC_Read                        PINB
9
#define MMC_Direction_REG       DDRB
10
 
11
 
12
#ifdef USE_SDLOGGER
13
#define __MMC_INTERFACE_INVERTED                // the interface between the controller and the MMC/SD-card uses an inverting leveltranslator (transistorinverter)
14
#endif                                                                  // and therefore the signals to or from the memorycard have to be inverted.
15
 
16
#ifdef USE_FOLLOWME                                             // uses resitors, therefore its not inverted
17
//#define       __MMC_INTERFACE_INVERTED        // the interface between the controller and the MMC/SD-card uses an inverting leveltranslator (transistorinverter)
18
#endif
19
 
20
#define SPI_DI                          6               //Port Pin that is connected to the DO of the MMC/SD-card
21
#define SPI_DO                          5               //Port Pin that is connected to  DI of the MMC/SD-card
22
#define SPI_Clock                       7               //Port Pin that is connected the CLK of the MMC/SD-card
23
#define SPI_SS                          4               //Slave Select is not used in SPI Master Mode, but must be defined
24
#define MMC_Chip_Select         4               //Port Pin an dem Chip Select der MMC/SD-Karte angeschlossen ist
25
 
26
 
27
//________________________________________________________________________________________________________________________________________
28
//
29
// Functions needed for accessing the sdcard.
30
//
31
//________________________________________________________________________________________________________________________________________
32
 
33
extern void                     SSC_Init(void);
34
extern u8                               SSC_GetChar (void);
35
extern void                     SSC_PutChar (u8);
36
extern void                     SSC_Enable(void);
37
extern void                     SSC_Disable(void);
38
extern void                     SSC_ClearRxFifo(void);
39
 
40
 
41
 
42
#endif