From 89111a4e8c7c0611242cd2cd3e820cef2fdddbe2 Mon Sep 17 00:00:00 2001 From: follower Date: Sat, 8 Dec 2007 08:11:48 +0000 Subject: [PATCH] Add skeleton of SPI class. git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@86 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b --- .../follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde index 7c20cf6..1fda9c9 100644 --- a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde +++ b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde @@ -39,6 +39,7 @@ #include +/* --------- SPI --------- */ // Define SPI-related pins #define PIN_DATA_OUT 11 // MOSI (Master Out / Slave In) @@ -46,6 +47,17 @@ #define PIN_SPI_CLOCK 13 // SCK (Serial Clock) #define PIN_SLAVE_SELECT 10 // SS (Slave Select) +class SPI { + + public: + static void begin(void); +}; + +void SPI::begin(void) { +} + +/* ----------------------- */ + // #define PIN_RESET 9 // WIZnet module /RESET #define PIN_RESET 8 // WIZnet module /RESET