Show
Ignore:
Timestamp:
03/03/08 00:10:58 (6 months ago)
Author:
agr
Message:

flash flood update

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nano-RK/projects/basic_eeprom/main.c

    r395 r428  
    7979int8_t val; 
    8080uint8_t chan; 
     81uint8_t i; 
    8182 
    8283val=read_eeprom_mac_address(&mac_address); 
     
    102103 
    103104  printf( "Task1 PID=%d\r\n",nrk_get_pid()); 
     105  val=0; 
     106  i=0; 
     107  for(cnt=0x100; cnt<0x110; cnt++ ) 
     108        { 
     109        nrk_eeprom_write_byte(cnt,i); 
     110        printf( "Wrote %u to %d\r\n",i,cnt); 
     111        i++; 
     112        } 
     113  for(cnt=0x100; cnt<0x110; cnt++ ) 
     114        { 
     115        i=nrk_eeprom_read_byte(cnt); 
     116        printf( "Read %u from %d\r\n",i,cnt); 
     117        } 
     118 
     119 
    104120  cnt=0; 
    105121  while(1) { 
     
    139155  TaskOne.period.nano_secs = 250*NANOS_PER_MS; 
    140156  TaskOne.cpu_reserve.secs = 0; 
    141   TaskOne.cpu_reserve.nano_secs =  50*NANOS_PER_MS
     157  TaskOne.cpu_reserve.nano_secs =  0
    142158  TaskOne.offset.secs = 0; 
    143159  TaskOne.offset.nano_secs= 0;