Changeset 63 for branches/follower

Show
Ignore:
Timestamp:
11/05/07 03:30:40 (14 months ago)
Author:
follower
Message:

Pull SPI configuration into separate function.

Files:
1 modified

Legend:

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

    r62 r63  
    5050byte ip[6]; 
    5151 
    52  
    53 void setup () { 
    54   Serial.begin(9600); 
    55   Serial.println("Setup enter..."); 
    56  
    57   // Configure SPI 
     52void configureSPI() { 
     53  /* 
     54 
     55     Configure pins and registers required for SPI communication. 
     56   
     57  */ 
     58   
    5859  //   Configure I/O pins 
    5960  pinMode(PIN_DATA_OUT, OUTPUT); 
     
    8283  dummy = SPDR; 
    8384  delay(10); 
    84      
     85   
     86} 
     87 
     88 
     89void setup () { 
     90  Serial.begin(9600); 
     91  Serial.println("Setup enter..."); 
     92 
     93  configureSPI();     
    8594   
    8695  // I thought this wasn't needed but seems like it is.