Changeset 65 for branches/follower

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

Move module and driver initialisation code into separate function.

Files:
1 modified

Legend:

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

    r64 r65  
    8989 
    9090 
    91 void setup () { 
    92   Serial.begin(9600); 
    93   Serial.println("Setup enter..."); 
    94  
    95   configureSPI();     
    96    
     91void initModule() { 
     92  /* 
     93   
     94     Initialise the WIZ810MJ module and driver. 
     95      
     96   */ 
     97 
    9798  // I thought this wasn't needed but seems like it is.   
    9899  Serial.println("Triggering reset..."); 
     
    115116  Serial.println("Call sysinit..."); 
    116117  sysinit(0x55, 0x55); 
    117  
     118   
     119} 
     120 
     121void setup () { 
     122  Serial.begin(9600); 
     123  Serial.println("Setup enter..."); 
     124 
     125  configureSPI();     
     126   
     127  initModule(); 
    118128 
    119129  Serial.println("Test W5100 configuration...");