[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/msp430 msp430hardware.h, 1.9, 1.10

David Gay idgay at users.sourceforge.net
Fri Sep 19 17:10:23 PDT 2008


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7256/msp430

Modified Files:
	msp430hardware.h 
Log Message:
nx_float support

Index: msp430hardware.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430/msp430hardware.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** msp430hardware.h	19 Sep 2008 23:59:00 -0000	1.9
--- msp430hardware.h	20 Sep 2008 00:10:18 -0000	1.10
***************
*** 240,244 ****
  #endif
  
! /* Floating-point network-type support */
  typedef float nx_float __attribute__((nx_base_be(afloat)));
  
--- 240,249 ----
  #endif
  
! /* Floating-point network-type support.
!    These functions must convert to/from a 32-bit big-endian integer that follows
!    the layout of Java's java.lang.float.floatToRawIntBits method.
!    Conveniently, for the MSP430 family, this is a straight byte copy...
! */
! 
  typedef float nx_float __attribute__((nx_base_be(afloat)));
  



More information about the Tinyos-2-commits mailing list