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

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


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

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/mica2/hardware.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** hardware.h	22 Jul 2005 17:40:10 -0000	1.1
--- hardware.h	19 Sep 2005 23:40:10 -0000	1.2
***************
*** 77,80 ****
--- 77,83 ----
  #include <avrhardware.h>
  
+ typedef uint32_t in_flash_addr_t;
+ typedef uint32_t ex_flash_addr_t;
+ 
  void wait( uint16_t t ) {
    for ( ; t; t-- );



More information about the Tinyos-commits mailing list