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

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.

Files:
1 modified

Legend:

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

    r87 r88  
    4848#define PIN_SLAVE_SELECT 10 // SS (Slave Select) 
    4949 
    50 class SPI { 
     50class SpiConfiguration { 
    5151   
    5252  public: 
     
    5454}; 
    5555 
    56 void SPI::begin(void) { 
     56void SpiConfiguration::begin(void) { 
    5757  /* 
    5858 
     
    9292} 
    9393 
     94SpiConfiguration SPI = SpiConfiguration(); 
     95 
    9496/* ----------------------- */ 
    9597 
     
    144146  Serial.println("Setup enter..."); 
    145147 
    146   SPI::begin();     
     148  SPI.begin();     
    147149   
    148150  initModule();