[Tinyos-commits] CVS: tinyos-1.x/tos/lib/Deluge/TOSBoot/telos hardware.h, 1.2, 1.3

Joe Polastre jpolastre at users.sourceforge.net
Mon Sep 19 16:40:13 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/tos/lib/Deluge/TOSBoot/telos
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26745/telos

Modified Files:
	hardware.h 
Log Message:
changed TOSBootM to only use the size of the internal flash addressing.
this prevents doing 32-bit transforms on platforms that only use
16-bit addressing (such as msp430). saves significant space.
each platform now typedef's the kind of flash it has (internal and external)
and casts are done appropriately for that flash.
The ProgFlash interface is now updated to only use in_flash_addr_t types.


Index: hardware.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tos/lib/Deluge/TOSBoot/telos/hardware.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** hardware.h	16 Sep 2005 23:13:47 -0000	1.2
--- hardware.h	19 Sep 2005 23:40:11 -0000	1.3
***************
*** 34,37 ****
--- 34,42 ----
  #include "msp430hardware.h"
  
+ // internal flash is 16 bits in width
+ typedef uint16_t in_flash_addr_t;
+ // external flash is 32 bits in width
+ typedef uint32_t ex_flash_addr_t;
+ 
  void wait(uint16_t t) {
    for ( ; t > 0; t-- );



More information about the Tinyos-commits mailing list