Defines

# Leds Management
[STK600]

Macros to manage Leds on stk600. More...

## Defines
#define | LED_PORT PORTC
#define | LED_DDR DDRC
#define | LED_PIN PINC
#define | LED6_BIT PINC6
#define | LED7_BIT PINC7
#define | Leds_init() (LED_DDR |= (1<<LED7_BIT) | (1<<LED6_BIT))
#define | Leds_on() (LED_PORT &= ~((1<<LED7_BIT) | (1<<LED6_BIT)))
#define | Leds_off() (LED_PORT |= (1<<LED7_BIT) | (1<<LED6_BIT))
#define | Led6_on() (LED_PORT &= ~(1<<LED6_BIT))
#define | Led7_on() (LED_PORT &= ~(1<<LED7_BIT))
#define | Led6_off() (LED_PORT |= (1<<LED6_BIT))
#define | Led7_off() (LED_PORT |= (1<<LED7_BIT))
#define | Led6_toggle() (LED_PIN |= (1<<LED6_BIT))
#define | Led7_toggle() (LED_PIN |= (1<<LED7_BIT))
#define | Is_led6_on() (LED_PIN & (1<<LED6_BIT) ? FALSE : TRUE)
#define | Is_led7_on() (LED_PIN & (1<<LED7_BIT) ? FALSE : TRUE)

## Detailed Description

Macros to manage Leds on stk600.

## Define Documentation

#define LED_PORT PORTC

Definition at line 76 of file stk_600.h.

#define LED_DDR DDRC

Definition at line 77 of file stk_600.h.

#define LED_PIN PINC

Definition at line 78 of file stk_600.h.

#define LED6_BIT PINC6

Definition at line 79 of file stk_600.h.

#define LED7_BIT PINC7

Definition at line 80 of file stk_600.h.

#define Leds_init | ( | ) | (LED_DDR |= (1<<LED7_BIT) | (1<<LED6_BIT))

Definition at line 82 of file stk_600.h.

Referenced by mouse_task_init().

#define Leds_on | ( | ) | (LED_PORT &= ~((1<<LED7_BIT) | (1<<LED6_BIT)))

Definition at line 83 of file stk_600.h.

#define Leds_off | ( | ) | (LED_PORT |= (1<<LED7_BIT) | (1<<LED6_BIT))

Definition at line 84 of file stk_600.h.

#define Led6_on | ( | ) | (LED_PORT &= ~(1<<LED6_BIT))

Definition at line 86 of file stk_600.h.

Referenced by mouse_task().

#define Led7_on | ( | ) | (LED_PORT &= ~(1<<LED7_BIT))

Definition at line 87 of file stk_600.h.

Referenced by mouse_task_init(), and suspend_action().

#define Led6_off | ( | ) | (LED_PORT |= (1<<LED6_BIT))

Definition at line 88 of file stk_600.h.

Referenced by mouse_task(), and mouse_task_init().

#define Led7_off | ( | ) | (LED_PORT |= (1<<LED7_BIT))

Definition at line 89 of file stk_600.h.

Referenced by suspend_action().

#define Led6_toggle | ( | ) | (LED_PIN |= (1<<LED6_BIT))

Definition at line 90 of file stk_600.h.

#define Led7_toggle | ( | ) | (LED_PIN |= (1<<LED7_BIT))

Definition at line 91 of file stk_600.h.

#define Is_led6_on | ( | ) | (LED_PIN & (1<<LED6_BIT) ? FALSE : TRUE)

Definition at line 92 of file stk_600.h.

#define Is_led7_on | ( | ) | (LED_PIN & (1<<LED7_BIT) ? FALSE : TRUE)

Definition at line 93 of file stk_600.h.