cleanup in spi

master
Paul Goeser 15 years ago
parent bf0a2de1b8
commit 1bf5c0c29e

@ -73,6 +73,9 @@ void spi_init(){
SPCR = spcr; SPCR = spcr;
} }
void spi_mst_start_packet(){ void spi_mst_start_packet(){
SPI_SSOUT &= ~(_BV(SPI_SS_PIN)); SPI_SSOUT &= ~(_BV(SPI_SS_PIN));
} }
@ -138,11 +141,3 @@ void spi_sla_handle_packet(){
#ifndef SPI_MASTER
ISR(SPI_vector){
}
#endif //SPI_MASTER

@ -9,6 +9,8 @@
#define SPI_SS_PORT D #define SPI_SS_PORT D
#define SPI_SS_PIN 7 #define SPI_SS_PIN 7
// copied/adapted from usbdrv.h // copied/adapted from usbdrv.h
#define SPI_CONCAT(a, b) a ## b #define SPI_CONCAT(a, b) a ## b

Loading…
Cancel
Save