Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
231 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
#endif
11
 
12
#ifdef USE_FOLLOWME
13
#define LEDYELLOW_OFF           PORTB |=  (1<<PORTB0)
14
#define LEDYELLOW_ON            PORTB &= ~(1<<PORTB0)
15
#define LEDYELLOW_TOGGLE        PORTB ^=  (1<<PORTB0)
16
 
17
#define LEDRED_OFF      PORTB |=  (1<<PORTB1)
18
#define LEDRED_ON               PORTB &= ~(1<<PORTB1)
19
#define LEDRED_TOGGLE   PORTB ^=  (1<<PORTB1)
20
#endif
21
 
22
void LED_Init(void);
23
 
24
#endif //_LED_H
25