Rev 295 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 295 | Rev 297 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include <avr/io.h> |
1 | #include <avr/io.h> |
2 | #include "ssc.h" |
2 | #include "ssc.h" |
Line 3... | Line -... | ||
3 | - | ||
4 | - | ||
5 | 3 | ||
6 | //-------------------------------------- Hardware specific definitions -------------------------------------- |
4 | //-------------------------------------- Hardware specific definitions -------------------------------------- |
7 | #define PORTR_SPI PINB |
5 | #define PORTR_SPI PINB |
8 | #define PORTW_SPI PORTB //Port to which the sd-card is connected (SPI Port) |
6 | #define PORTW_SPI PORTB //Port to which the sd-card is connected (SPI Port) |
9 | #define PORT_MISO PORTB6 //Port Pin that is connected to the DO of the MMC/SD-card |
7 | #define PORT_MISO PORTB6 //Port Pin that is connected to the DO of the MMC/SD-card |
Line 74... | Line 72... | ||
74 | #define SPI2X SPI2X0 |
72 | #define SPI2X SPI2X0 |
75 | #endif |
73 | #endif |
Line 76... | Line 74... | ||
76 | 74 | ||
77 | 75 | ||
78 | //________________________________________________________________________________________________________________________________________ |
76 | //________________________________________________________________________________________________________________________________________ |
79 | // Funtion: SSC_Init(void); |
77 | // Function: SSC_Init(void); |
80 | // |
78 | // |
81 | // Description: This function initialises the synchronus serial channel to the sdcard. |
79 | // Description: This function initialises the synchronus serial channel to the sdcard. |
82 | // |
80 | // |
Line 113... | Line 111... | ||
113 | #endif |
111 | #endif |
114 | } |
112 | } |
Line 115... | Line 113... | ||
115 | 113 | ||
116 | void SSC_Deinit(void) |
114 | void SSC_Deinit(void) |
- | 115 | { |
|
- | 116 | SSC_Disable(); |
|
117 | { |
117 | SPCR = 0; |
118 | 118 | SPSR = 0; |
|
Line 119... | Line 119... | ||
119 | } |
119 | } |
120 | 120 | ||
121 | //________________________________________________________________________________________________________________________________________ |
121 | //________________________________________________________________________________________________________________________________________ |