]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
mark a few more modules as safe code; this cannot affect unsafe compilation
authorregehr <regehr>
Thu, 26 Jun 2008 03:38:26 +0000 (03:38 +0000)
committerregehr <regehr>
Thu, 26 Jun 2008 03:38:26 +0000 (03:38 +0000)
apps/Blink/BlinkC.nc
tos/chips/atm128/McuSleepC.nc
tos/chips/atm128/timer/Atm128AlarmAsyncP.nc
tos/chips/atm128/timer/HplAtm128Timer0AsyncP.nc
tos/chips/msp430/McuSleepC.nc
tos/chips/msp430/timer/Msp430TimerCommonP.nc
tos/platforms/mica/MeasureClockC.nc
tos/platforms/mica/PlatformP.nc
tos/platforms/micaz/MotePlatformP.nc
tos/system/RealMainP.nc

index 90c4b2640aece007b19e353fed139a98aece3dc3..ce17712872a343f9bd9d0cf8f04051179ff2b608 100644 (file)
@@ -36,7 +36,7 @@
 
 #include "Timer.h"
 
-module BlinkC
+module BlinkC @safe()
 {
   uses interface Timer<TMilli> as Timer0;
   uses interface Timer<TMilli> as Timer1;
index badcfed01b1ccf739cdde9d3ce25380b057d6c6d..9d03201efa5f55f565fef271ad5f1393450582cb 100644 (file)
@@ -37,7 +37,7 @@
  * @date   October 26, 2005
  */
 
-module McuSleepC {
+module McuSleepC @safe() {
   provides {
     interface McuSleep;
     interface McuPowerState;
index c5b80b41beb788ff30e52bdf8c22a6afdd7568e1..3eb2c20278a33861fdab83beab256b1e024891a6 100644 (file)
@@ -20,7 +20,7 @@
  *
  * @author David Gay
  */
-generic module Atm128AlarmAsyncP(typedef precision, int divider) {
+generic module Atm128AlarmAsyncP(typedef precision, int divider) @safe() {
   provides {
     interface Init;
     interface Alarm<precision, uint32_t>;
index eb2c0bfb4609102cc15e75bc6058525bba00e112..95854a42cdcec0c1e77a1f3ef6277615f7227fce 100644 (file)
@@ -34,7 +34,7 @@
 
 #include <Atm128Timer.h>
 
-module HplAtm128Timer0AsyncP {
+module HplAtm128Timer0AsyncP @safe() {
   provides {
     // 8-bit Timers
     interface HplAtm128Timer<uint8_t>   as Timer;
index 64c87a7e2ec226cb4133dcb704dac82257c08b35..369737c85e7533cebc1ca6c8ae44fd909b3e0724 100644 (file)
@@ -38,7 +38,7 @@
  *
  */
 
-module McuSleepC {
+module McuSleepC @safe() {
   provides {
     interface McuSleep;
     interface McuPowerState;
index 64c27704f1127abfc0fd29fdc966bbc365b4853c..b90c70165171171068f6b960e034cb34a07b5dc7 100644 (file)
@@ -1,5 +1,5 @@
 
-module Msp430TimerCommonP
+module Msp430TimerCommonP @safe()
 {
   provides interface Msp430TimerEvent as VectorTimerA0;
   provides interface Msp430TimerEvent as VectorTimerA1;
index 898d80185164097539addb1e8ca649bbf15652bd..fa82bbba34d5bd85fd24b4acce0ff7fcd0344d12 100644 (file)
@@ -19,7 +19,7 @@
  * @author David Gay
  */
 
-module MeasureClockC {
+module MeasureClockC @safe() {
   provides {
     /**
      * This code MUST be called from PlatformP only, hence the exactlyonce.
index 48d0fc06550ff6634a1abeb7797e98da3b422990..a7970189b506a47b294133b3e3193af8e472fe4c 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "hardware.h"
 
-module PlatformP
+module PlatformP @safe()
 {
   provides interface Init;
   uses interface Init as MoteInit;
index a45787eae5ea34960af8ae5fb14018ae43835d6e..fec5f69256484c6f5d1defa7d86e9c16d82dfa24 100644 (file)
@@ -15,7 +15,7 @@
  * 
  * @author David Gay
  */
-module MotePlatformP
+module MotePlatformP @safe()
 {
   provides interface Init as PlatformInit;
   uses interface GeneralIO as SerialIdPin;
index 6f1306c266b2e69f21e20d0844430014438f53e5..37fb3f18565f8421370df55411c31df38bf7b297 100644 (file)
@@ -42,7 +42,7 @@
  * @date   January 17 2005
  */
 
-module RealMainP {
+module RealMainP @safe() {
   provides interface Boot;
   uses interface Scheduler;
   uses interface Init as PlatformInit;