-/** Pulse generation counters to keep track of the number of milliseconds remaining for each pulse type */ -#define TX_RX_LED_PULSE_MS 100 -volatile u8 TxLEDPulse; /**< Milliseconds remaining for data Tx LED pulse */ -volatile u8 RxLEDPulse; /**< Milliseconds remaining for data Rx LED pulse */ - //================================================================== //==================================================================
@@ -122,16 +117,10 @@ { while (count--) *data++ = UEDATX; - - RXLED1; // light the RX LED - RxLEDPulse = TX_RX_LED_PULSE_MS; }
static inline u8 Recv8() { - RXLED1; // light the RX LED - RxLEDPulse = TX_RX_LED_PULSE_MS; - return UEDATX; }
@@ -772,12 +759,6 @@ if (udint & (1<<SOFI)) { USB_Flush(CDC_TX); // Send a tx frame if found - - // check whether the one-shot period has elapsed. if so, turn off the LED - if (TxLEDPulse && !(--TxLEDPulse)) - TXLED0; - if (RxLEDPulse && !(--RxLEDPulse)) - RXLED0; }
// the WAKEUPI interrupt is triggered as soon as there are non-idle patterns on the data