X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2FBaseStation%2FBaseStationP.nc;h=2e647c7f83c6429b89f9c2ab7de285cc82cd507f;hb=7bae398b43f69d024cf524349705fee97ab002ae;hp=a024da10f247cef04e408293640e090894ae45db;hpb=9853b0475b27e557bd44f35a88432adee6f66de1;p=tinyos-2.x.git diff --git a/apps/BaseStation/BaseStationP.nc b/apps/BaseStation/BaseStationP.nc index a024da10..2e647c7f 100644 --- a/apps/BaseStation/BaseStationP.nc +++ b/apps/BaseStation/BaseStationP.nc @@ -46,7 +46,7 @@ #include "AM.h" #include "Serial.h" -module BaseStationP { +module BaseStationP @safe() { uses { interface Boot; interface SplitControl as SerialControl; @@ -75,12 +75,12 @@ implementation }; message_t uartQueueBufs[UART_QUEUE_LEN]; - message_t *uartQueue[UART_QUEUE_LEN]; + message_t * ONE_NOK uartQueue[UART_QUEUE_LEN]; uint8_t uartIn, uartOut; bool uartBusy, uartFull; message_t radioQueueBufs[RADIO_QUEUE_LEN]; - message_t *radioQueue[RADIO_QUEUE_LEN]; + message_t * ONE_NOK radioQueue[RADIO_QUEUE_LEN]; uint8_t radioIn, radioOut; bool radioBusy, radioFull; @@ -131,7 +131,7 @@ implementation uint8_t count = 0; - message_t* receive(message_t* msg, void* payload, uint8_t len); + message_t* ONE receive(message_t* ONE msg, void* payload, uint8_t len); event message_t *RadioSnoop.receive[am_id_t id](message_t *msg, void *payload, @@ -191,7 +191,7 @@ implementation id = call RadioAMPacket.type(msg); addr = call RadioAMPacket.destination(msg); src = call RadioAMPacket.source(msg); - call RadioAMPacket.clear(msg); + call UartPacket.clear(msg); call UartAMPacket.setSource(msg, src); if (call UartSend.send[id](addr, uartQueue[uartOut], len) == SUCCESS) @@ -270,7 +270,7 @@ implementation source = call UartAMPacket.source(msg); id = call UartAMPacket.type(msg); - call RadioAMPacket.clear(msg); + call RadioPacket.clear(msg); call RadioAMPacket.setSource(msg, source); if (call RadioSend.send[id](addr, msg, len) == SUCCESS)