]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Switch boot_* calls to boot_*_safe. This restores the exact functionality of the...
authorrazvanm <razvanm>
Tue, 15 Jul 2008 23:36:36 +0000 (23:36 +0000)
committerrazvanm <razvanm>
Tue, 15 Jul 2008 23:36:36 +0000 (23:36 +0000)
tos/lib/tosboot/avr/ProgFlashM.nc

index 246449332b9a79897f3c34c650e6ded4b6de86c7..898ebc64888daa24ba9f8a0a65d5d5c411781638 100644 (file)
@@ -46,17 +46,17 @@ implementation {
     if ( addr + len > TOSBOOT_START )
       return FAIL;    
 
-    boot_page_erase( addr );
+    boot_page_erase_safe( addr );
     while( boot_rww_busy() )
-      boot_rww_enable();
+      boot_rww_enable_safe();
     
     for ( i = 0; i < len; i += 2 )
-      boot_page_fill( addr + i, *wordBuf++ );
+      boot_page_fill_safe( addr + i, *wordBuf++ );
 
-    boot_page_write( addr );
+    boot_page_write_safe( addr );
     
     while ( boot_rww_busy() )
-      boot_rww_enable();
+      boot_rww_enable_safe();
     
     return SUCCESS;