]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/atm128/pins/HplAtm128GeneralIOSlowPinP.nc
safe tinyos annotations
[tinyos-2.x.git] / tos / chips / atm128 / pins / HplAtm128GeneralIOSlowPinP.nc
index 2d6115e69ce3ea1448e5cd3d2d777f8c08bf526e..692f17c77311887af6bafecb28c747899d9fb0c7 100644 (file)
@@ -39,9 +39,9 @@ generic module HplAtm128GeneralIOSlowPinP (uint8_t port_addr,
 }
 implementation
 {
-#define pin (*(volatile uint8_t *)pin_addr)
-#define port (*(volatile uint8_t *)port_addr)
-#define ddr (*(volatile uint8_t *)ddr_addr)
+#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); }
   inline async command void IO.set()        { atomic SET_BIT  (port, bit); }