[Tinyos-commits] CVS: tinyos-1.x/tos/lib/Deluge/TOSBoot/avr
ProgFlashM.nc, 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/avr
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26745/avr
Modified Files:
ProgFlashM.nc
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: ProgFlashM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tos/lib/Deluge/TOSBoot/avr/ProgFlashM.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ProgFlashM.nc 22 Jul 2005 17:40:09 -0000 1.1
--- ProgFlashM.nc 19 Sep 2005 23:40:10 -0000 1.2
***************
*** 39,43 ****
#include <boot.h>
! command result_t ProgFlash.write(uint32_t addr, uint8_t* buf, uint16_t len) {
uint16_t* wordBuf = (uint16_t*)buf;
--- 39,43 ----
#include <boot.h>
! command result_t ProgFlash.write(in_flash_addr_t addr, uint8_t* buf, uint16_t len) {
uint16_t* wordBuf = (uint16_t*)buf;
More information about the Tinyos-commits
mailing list