Move SPI configuration function into a static class method of the SPI class.

git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@87 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
master
follower 17 years ago
parent 89111a4e8c
commit 11ab05e210

@ -54,18 +54,6 @@ class SPI {
};
void SPI::begin(void) {
}
/* ----------------------- */
// #define PIN_RESET 9 // WIZnet module /RESET
#define PIN_RESET 8 // WIZnet module /RESET
SOCKET testSocket;
byte ip[6];
void configureSPI() {
/*
Configure pins and registers required for SPI communication.
@ -103,6 +91,15 @@ void configureSPI() {
}
/* ----------------------- */
// #define PIN_RESET 9 // WIZnet module /RESET
#define PIN_RESET 8 // WIZnet module /RESET
SOCKET testSocket;
byte ip[6];
void initModule() {
/*
@ -146,7 +143,7 @@ void setup () {
Serial.begin(9600);
Serial.println("Setup enter...");
configureSPI();
SPI::begin();
initModule();

Loading…
Cancel
Save