1,8 → 1,6 |
#include <avr/io.h> |
#include "ssc.h" |
|
|
|
//-------------------------------------- Hardware specific definitions -------------------------------------- |
#define PORTR_SPI PINB |
#define PORTW_SPI PORTB //Port to which the sd-card is connected (SPI Port) |
76,7 → 74,7 |
|
|
//________________________________________________________________________________________________________________________________________ |
// Funtion: SSC_Init(void); |
// Function: SSC_Init(void); |
// |
// Description: This function initialises the synchronus serial channel to the sdcard. |
// |
115,7 → 113,9 |
|
void SSC_Deinit(void) |
{ |
|
SSC_Disable(); |
SPCR = 0; |
SPSR = 0; |
} |
|
//________________________________________________________________________________________________________________________________________ |