X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fatm128%2FAtm128UartP.nc;fp=tos%2Fchips%2Fatm128%2FAtm128UartP.nc;h=527e264e48e01eb465d14bec459e4ed801da0aaa;hb=702a1368dc77a4deaf47fab5faafdc1ca754022d;hp=2b904b41422bd371b1efd2dce1788b0343888387;hpb=bf3a910f6b7f9c6de4e3e92a5f083da890ec28ec;p=tinyos-2.x.git diff --git a/tos/chips/atm128/Atm128UartP.nc b/tos/chips/atm128/Atm128UartP.nc index 2b904b41..527e264e 100644 --- a/tos/chips/atm128/Atm128UartP.nc +++ b/tos/chips/atm128/Atm128UartP.nc @@ -59,8 +59,8 @@ generic module Atm128UartP(){ implementation{ - norace uint8_t *m_tx_buf, *m_rx_buf; norace uint16_t m_tx_len, m_rx_len; + norace uint8_t *COUNT_NOK(m_tx_len) m_tx_buf, * COUNT_NOK(m_rx_len) m_rx_buf; norace uint16_t m_tx_pos, m_rx_pos; norace uint16_t m_byte_time; norace uint8_t m_rx_intr; @@ -159,8 +159,8 @@ implementation{ else if ( m_tx_buf ) return EBUSY; - m_tx_buf = buf; m_tx_len = len; + m_tx_buf = buf; m_tx_pos = 0; m_tx_intr = 1; call HplUart.enableTxIntr();