diff --git a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde index 1fda9c9..c148601 100644 --- a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde +++ b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde @@ -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();