Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
426 killagreg 1
#ifndef _LED_H
2
#define _LED_H
3
 
4
#include <avr/io.h>
5
 
6
#ifdef USE_SDLOGGER
7
#define LEDRED_OFF      PORTB |=  (1<<PORTB0)
8
#define LEDRED_ON               PORTB &= ~(1<<PORTB0)
9
#define LEDRED_TOGGLE   PORTB ^=  (1<<PORTB0)
10
 
11
#define LEDGRN_OFF
12
#define LEDGRN_ON
13
#define LEDGRN_TOGGLE
14
#endif
15
 
16
#ifdef USE_FOLLOWME
17
#define LEDGRN_OFF      PORTB |=  (1<<PORTB1)
18
#define LEDGRN_ON               PORTB &= ~(1<<PORTB1)
19
#define LEDGRN_TOGGLE   PORTB ^=  (1<<PORTB1)
20
 
21
#define LEDRED_OFF      PORTB |=  (1<<PORTB0)
22
#define LEDRED_ON               PORTB &= ~(1<<PORTB0)
23
#define LEDRED_TOGGLE   PORTB ^=  (1<<PORTB0)
24
#endif
25
 
26
void LED_Init(void);
27
 
28
#endif //_LED_H
29