From 11ab05e210fb582b372f4fec7b6ea38a912b332d Mon Sep 17 00:00:00 2001 From: follower Date: Sat, 8 Dec 2007 08:24:54 +0000 Subject: [PATCH] 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 --- .../wiz810mj/src/demo/WizDemo4/WizDemo4.pde | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) 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();