X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Ftda5250%2FTda5250RadioP.nc;h=a1ea56a82814a46faeae1de3bfc57c1a1eae58f0;hb=21d8c57fd193e044f1e68f1bf3988f9533ed7636;hp=975fcaa63a54289dcec488190ea5dde638a3aa56;hpb=f554754cfcc5b6c2caeb354eb5e68da6d30d6036;p=tinyos-2.x.git diff --git a/tos/chips/tda5250/Tda5250RadioP.nc b/tos/chips/tda5250/Tda5250RadioP.nc index 975fcaa6..a1ea56a8 100644 --- a/tos/chips/tda5250/Tda5250RadioP.nc +++ b/tos/chips/tda5250/Tda5250RadioP.nc @@ -55,9 +55,6 @@ module Tda5250RadioP { interface RadioByteComm; interface ResourceRequested; interface ClkDiv; -#ifdef LNDW - interface RfPower; -#endif } uses { interface HplTda5250Config; @@ -82,27 +79,6 @@ implementation { radioMode_t radioMode; // Current Mode of the Radio float onTime, offTime; -#ifdef LNDW - norace bool rfpowerdirty = FALSE; - norace uint8_t rfpower = INITIAL_RF_POWER; - task void setRfPower() { - uint8_t rp, rd; - atomic { - rp = rfpower; - rd = rfpowerdirty; - } - if(rd) { - if(call ConfigResource.immediateRequest() == SUCCESS) { - call HplTda5250Config.SetRFPower(rp); - atomic rfpowerdirty = FALSE; - } - else { - post setRfPower(); - } - } - } -#endif - /**************** Radio Init *****************/ command error_t Init.init() { radioMode = RADIO_MODE_OFF; @@ -180,7 +156,6 @@ implementation { call HplTda5250Config.SetSleepMode(); atomic radioMode = RADIO_MODE_SLEEP; signal Tda5250Control.SleepModeDone(); - if(rfpowerdirty) post setRfPower(); break; case RADIO_MODE_TX_TRANSITION: call HplTda5250Config.SetSlaveMode(); @@ -479,13 +454,4 @@ implementation { } default async event void ClkDiv.stopping() { } -#ifdef LNDW - async command error_t RfPower.set(uint8_t setting) { - atomic { - rfpower = setting; - rfpowerdirty = TRUE; - } - return SUCCESS; - } -#endif }