[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/imote2/tools/src/bootloader/include FlashAccess.h, 1.1, 1.2

Robbie Adler radler at users.sourceforge.net
Fri May 4 13:36:20 PDT 2007


Update of /cvsroot/tinyos/tinyos-1.x/contrib/imote2/tools/src/bootloader/include
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv2844/include

Modified Files:
	FlashAccess.h 
Log Message:
fix for iMote2 bootloader....the bootloader will now write protect itself into the FLASH so that subsequent OS-level ops can't overwrite it

Index: FlashAccess.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/imote2/tools/src/bootloader/include/FlashAccess.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FlashAccess.h	10 Oct 2006 22:33:23 -0000	1.1
--- FlashAccess.h	4 May 2007 20:36:18 -0000	1.2
***************
*** 128,131 ****
--- 128,146 ----
  
  /**
+  * Flash_Lockdown
+  *
+  * The function performs all the steps required to
+  * lock down a flash block. The commands and steps are defined
+  * in the memory subsystem data sheet for the processor.
+  * The Block address has to be passed as a parameter to the
+  * function.
+  * 
+  * @param addr Address of the block that has to be locked.
+  *
+  * @return status The status register value.
+  */
+ uint16_t Flash_Lockdown(uint32_t addr);
+ 
+ /**
   * Flash_Lock
   *



More information about the Tinyos-contrib-commits mailing list