Changeset 87 for branches/follower

Show
Ignore:
Timestamp:
12/08/07 00:24:54 (13 months ago)
Author:
follower
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde

    r86 r87  
    5555 
    5656void SPI::begin(void) { 
    57 } 
    58  
    59 /* ----------------------- */ 
    60  
    61 // #define PIN_RESET 9 // WIZnet module /RESET 
    62  
    63 #define PIN_RESET 8 // WIZnet module /RESET 
    64  
    65 SOCKET testSocket; 
    66 byte ip[6]; 
    67  
    68 void configureSPI() { 
    6957  /* 
    7058 
     
    10492} 
    10593 
     94/* ----------------------- */ 
     95 
     96// #define PIN_RESET 9 // WIZnet module /RESET 
     97 
     98#define PIN_RESET 8 // WIZnet module /RESET 
     99 
     100SOCKET testSocket; 
     101byte ip[6]; 
     102 
    106103 
    107104void initModule() { 
     
    147144  Serial.println("Setup enter..."); 
    148145 
    149   configureSPI();     
     146  SPI::begin();     
    150147   
    151148  initModule();