From 5f2b65048d346503ebb855e8232987f557b48eae Mon Sep 17 00:00:00 2001 From: follower Date: Sat, 8 Dec 2007 08:32:22 +0000 Subject: [PATCH] Change SPI configuration to use an object so we can match the 'Foo.begin()' convention of the standard Arduino Serial configuration people are used to seeing. git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@88 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b --- branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde index c148601..2c7b3f7 100644 --- a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde +++ b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde @@ -47,13 +47,13 @@ #define PIN_SPI_CLOCK 13 // SCK (Serial Clock) #define PIN_SLAVE_SELECT 10 // SS (Slave Select) -class SPI { +class SpiConfiguration { public: static void begin(void); }; -void SPI::begin(void) { +void SpiConfiguration::begin(void) { /* Configure pins and registers required for SPI communication. @@ -91,6 +91,8 @@ void SPI::begin(void) { } +SpiConfiguration SPI = SpiConfiguration(); + /* ----------------------- */ // #define PIN_RESET 9 // WIZnet module /RESET @@ -143,7 +145,7 @@ void setup () { Serial.begin(9600); Serial.println("Setup enter..."); - SPI::begin(); + SPI.begin(); initModule();