[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/atm128/pins
HplAtm128GeneralIOPinP.nc, 1.4,
1.5 HplAtm128GeneralIOSlowPinP.nc, 1.4, 1.5
John Regehr
regehr at users.sourceforge.net
Fri Feb 15 21:30:38 PST 2008
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/pins
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv21479
Modified Files:
HplAtm128GeneralIOPinP.nc HplAtm128GeneralIOSlowPinP.nc
Log Message:
safe tinyos annotations
Index: HplAtm128GeneralIOPinP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/pins/HplAtm128GeneralIOPinP.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HplAtm128GeneralIOPinP.nc 12 Dec 2006 18:23:03 -0000 1.4
--- HplAtm128GeneralIOPinP.nc 16 Feb 2008 05:30:24 -0000 1.5
***************
*** 39,45 ****
implementation
{
! #define pin (*(volatile uint8_t *)pin_addr)
! #define port (*(volatile uint8_t *)port_addr)
! #define ddr (*(volatile uint8_t *)ddr_addr)
inline async command bool IO.get() { return READ_BIT (pin, bit); }
--- 39,45 ----
implementation
{
! #define pin (*TCAST(volatile uint8_t * SINGLE NONNULL, pin_addr))
! #define port (*TCAST(volatile uint8_t * SINGLE NONNULL, port_addr))
! #define ddr (*TCAST(volatile uint8_t * SINGLE NONNULL, ddr_addr))
inline async command bool IO.get() { return READ_BIT (pin, bit); }
Index: HplAtm128GeneralIOSlowPinP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/pins/HplAtm128GeneralIOSlowPinP.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HplAtm128GeneralIOSlowPinP.nc 12 Dec 2006 18:23:03 -0000 1.4
--- HplAtm128GeneralIOSlowPinP.nc 16 Feb 2008 05:30:24 -0000 1.5
***************
*** 40,46 ****
implementation
{
! #define pin (*(volatile uint8_t *)pin_addr)
! #define port (*(volatile uint8_t *)port_addr)
! #define ddr (*(volatile uint8_t *)ddr_addr)
inline async command bool IO.get() { return READ_BIT (pin, bit); }
--- 40,46 ----
implementation
{
! #define pin (*TCAST(volatile uint8_t * SINGLE NONNULL, pin_addr))
! #define port (*TCAST(volatile uint8_t * SINGLE NONNULL, port_addr))
! #define ddr (*TCAST(volatile uint8_t * SINGLE NONNULL, ddr_addr))
inline async command bool IO.get() { return READ_BIT (pin, bit); }
More information about the Tinyos-2-commits
mailing list