Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

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

Collaboration diagram for LED Control Macros:


Detailed Description

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


Defines

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


Define Documentation

 
#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_S1_GREEN  )     PORTF |= _BV(2); PORTF &= ~_BV(3);
 

Switch LED S1 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

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

Switch LED S2 green


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/