Subversion Repositories NaviCtrl

Rev

Rev 24 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24 Rev 41
1
#ifndef _SSC_H
1
#ifndef _SSC_H
2
#define _SSC_H
2
#define _SSC_H
3
 
3
 
4
 
-
 
5
#include "91x_lib.h"
4
 
6
//________________________________________________________________________________________________________________________________________
5
//________________________________________________________________________________________________________________________________________
7
// 
6
// 
8
// Functions needed for accessing the sdcard low level via SPI.
7
// Functions needed for accessing the sdcard low level via SPI.
9
//                              
8
//                              
10
//________________________________________________________________________________________________________________________________________
9
//________________________________________________________________________________________________________________________________________
11
 
10
 
12
#define SD_SWITCH !(GPIO_ReadBit(GPIO5, GPIO_Pin_3))
11
#define SD_SWITCH !(GPIO_ReadBit(GPIO5, GPIO_Pin_3))
13
 
12
 
14
extern void SSC_Init(void);
13
void SSC_Init(void);
15
extern void SSC_Deinit(void);
14
void SSC_Deinit(void);
16
extern u8       SSC_GetChar (void);
15
u8       SSC_GetChar (void);
17
extern void SSC_PutChar (u8);
16
void SSC_PutChar (u8);
18
extern void SSC_Enable(void);
17
void SSC_Enable(void);
19
extern void SSC_Disable(void);   
18
void SSC_Disable(void);  
20
extern void SSC_ClearRxFifo(void);
19
void SSC_ClearRxFifo(void);
21
 
20
 
22
 
21
 
23
#endif //_SSC_H
22
#endif //_SSC_H
24
 
23