Rev 379 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 379 | Rev 450 | ||
---|---|---|---|
1 | #ifndef _SSC_H |
1 | #ifndef _SSC_H |
2 | #define _SSC_H |
2 | #define _SSC_H |
3 | 3 | ||
4 | 4 | ||
5 | //________________________________________________________________________________________________________________________________________ |
5 | //________________________________________________________________________________________________________________________________________ |
6 | // |
6 | // |
7 | // Functions needed for accessing the sdcard low level via SPI. |
7 | // Functions needed for accessing the sdcard low level via SPI. |
8 | // |
8 | // |
9 | //________________________________________________________________________________________________________________________________________ |
9 | //________________________________________________________________________________________________________________________________________ |
10 | 10 | ||
11 | #define SD_SWITCH !(GPIO_ReadBit(GPIO5, GPIO_Pin_3)) |
11 | #define SD_SWITCH !(GPIO_ReadBit(GPIO5, GPIO_Pin_3)) |
12 | 12 | ||
13 | void SSC_Init(void); |
13 | void SSC_Init(void); |
14 | void SSC_Deinit(void); |
14 | void SSC_Deinit(void); |
15 | u8 SSC_GetChar (void); |
15 | u8 SSC_GetChar (void); |
16 | void SSC_PutChar (u8); |
16 | void SSC_PutChar (u8); |
17 | void SSC_Enable(void); |
17 | void SSC_Enable(void); |
18 | void SSC_Disable(void); |
18 | void SSC_Disable(void); |
19 | void SSC_ClearRxFifo(void); |
19 | void SSC_ClearRxFifo(void); |
20 | void SSC_Speed(u32); |
20 | void SSC_Speed(u32); |
- | 21 | ||
- | 22 | extern u16 SPI_Speed; |
|
21 | 23 | ||
22 | #endif //_SSC_H |
24 | #endif //_SSC_H |
23 | 25 |