Changeset 66 for branches/follower

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

Add comments to initialisation code. Remove debug prints. Remove some (probably) unnecessary comments.

Files:
1 modified

Legend:

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

    r65 r66  
    9696   */ 
    9797 
    98   // I thought this wasn't needed but seems like it is.   
    99   Serial.println("Triggering reset..."); 
     98  /* 
     99     Initialise the W5100 chip 
     100      
     101     (Originally I thought it was possible for the chip 
     102      to function without a hardware reset but it 
     103      seems not to be the case.) 
     104   */    
    100105  pinMode(PIN_RESET, OUTPUT); 
    101106   
    102   digitalWrite(PIN_RESET, HIGH); // no reset 
    103   //delay(10); // Pretty arbitrary length -- do we need it? 
     107  // We rely on the time between function calls to 
     108  // be long enough for the chip to recognise the 
     109  // reset. 
     110  digitalWrite(PIN_RESET, HIGH); 
    104111  digitalWrite(PIN_RESET, LOW); // reset 
    105   //delay(10); 
    106   digitalWrite(PIN_RESET, HIGH); // no reset 
    107   //delay(10); 
    108   Serial.println("Reset triggered..."); 
    109    
    110  
    111   // driver chip init (Might be redundant with the above reset.) 
    112   Serial.println("Call iinchip_init..."); 
     112  digitalWrite(PIN_RESET, HIGH); 
     113   
     114  // Chip initialisation by driver 
     115  // Might be redundant following the above reset, 
     116  // as this performs a software reset. 
    113117  iinchip_init(); 
    114118   
    115   // driver sysinit 
    116   Serial.println("Call sysinit..."); 
     119  // Initialise driver 
     120  // (This is required to configure some variables used 
     121  // internally by the driver--even if the default chip 
     122  // configuration is used.) 
    117123  sysinit(0x55, 0x55); 
    118124