LED Control Macros
[XNUT-100 & XNUT-105 DIN-rail SBC]


Detailed Description

Functions to drive the XNUT status LED S1 (LED3) and S2 (LED4).


Defines

#define LED_S1_GREEN()   PORTF |= _BV(2); PORTF &= ~_BV(3);
#define LED_S1_OFF()   PORTF &= ~_BV(2); PORTF &= ~_BV(3);
#define LED_S1_RED()   PORTF &= ~_BV(2); PORTF |= _BV(3);
#define LED_S2_GREEN()   PORTF |= _BV(0); PORTF &= ~_BV(1);
#define LED_S2_OFF()   PORTF &= ~_BV(0); PORTF &= ~_BV(1);
#define LED_S2_RED()   PORTF &= ~_BV(0); PORTF |= _BV(1);


Define Documentation

 
#define LED_S1_GREEN (  )     PORTF |= _BV(2); PORTF &= ~_BV(3);

Switch LED S1 green

 
#define LED_S1_OFF (  )     PORTF &= ~_BV(2); PORTF &= ~_BV(3);

Switch LED S1 off

 
#define LED_S1_RED (  )     PORTF &= ~_BV(2); PORTF |= _BV(3);

Switch LED S1 red

 
#define LED_S2_GREEN (  )     PORTF |= _BV(0); PORTF &= ~_BV(1);

Switch LED S2 green

 
#define LED_S2_OFF (  )     PORTF &= ~_BV(0); PORTF &= ~_BV(1);

Switch LED S2 off

 
#define LED_S2_RED (  )     PORTF &= ~_BV(0); PORTF |= _BV(1);

Switch LED S2 red


Generated on Tue Jan 23 21:12:30 2007 for BTnut System Software by doxygen 1.4.7