Changeset 1460


Ignore:
Timestamp:
02/25/12 19:03:36 (15 months ago)
Author:
thomas
Message:

fixed bug in radiotimer callback handling

Location:
trunk/firmware/openos/bsp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/firmware/openos/bsp/radio.h

    r1459 r1460  
    3030void radio_txEnable(); 
    3131void radio_txNow(); 
    32 void radio_waitTxDone(); 
    3332void radio_rxEnable(); 
    3433void radio_rxNow(); 
  • trunk/firmware/openos/bsp/telosb/radio.c

    r1459 r1460  
    126126} 
    127127 
    128 void radio_waitTxDone() { 
    129    radio_spiStrobe(CC2420_SNOP, &radio_vars.radioStatusByte); 
    130    while (radio_vars.radioStatusByte.tx_active==1) { 
    131       radio_spiStrobe(CC2420_SNOP, &radio_vars.radioStatusByte); 
    132    } 
    133 } 
    134  
    135128void radio_rxEnable() { 
    136129   // poipoi 
  • trunk/firmware/openos/bsp/telosb/radiotimer.c

    r1459 r1460  
    108108   switch (tbiv_local) { 
    109109      case 0x0002: // CCR1 fires 
    110          if (TBCCR1 & CCI) { 
     110         if (TBCCTL1 & CCI) { 
    111111            // SFD pin is high: this was the start of a frame 
    112112            if (radiotimer_vars.startFrameCb!=NULL) { 
Note: See TracChangeset for help on using the changeset viewer.