Pull SPI configuration into separate function.

git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@63 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
master
follower 17 years ago
parent 87a68cad36
commit b2ec2cb92e

@ -49,12 +49,13 @@
SOCKET testSocket; SOCKET testSocket;
byte ip[6]; byte ip[6];
void configureSPI() {
/*
void setup () { Configure pins and registers required for SPI communication.
Serial.begin(9600);
Serial.println("Setup enter..."); */
// Configure SPI
// Configure I/O pins // Configure I/O pins
pinMode(PIN_DATA_OUT, OUTPUT); pinMode(PIN_DATA_OUT, OUTPUT);
pinMode(PIN_DATA_IN, INPUT); pinMode(PIN_DATA_IN, INPUT);
@ -82,6 +83,14 @@ void setup () {
dummy = SPDR; dummy = SPDR;
delay(10); delay(10);
}
void setup () {
Serial.begin(9600);
Serial.println("Setup enter...");
configureSPI();
// I thought this wasn't needed but seems like it is. // I thought this wasn't needed but seems like it is.
Serial.println("Triggering reset..."); Serial.println("Triggering reset...");

Loading…
Cancel
Save