Subversion Repositories FlightCtrl

Rev

Rev 790 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
763 killagreg 1
#ifndef _LED_H
2
#define _LED_H
3
 
4
#include <avr/io.h>
5
 
6
#define J16_ON          PORTC |=  (1<<PORTC2)
7
#define J16_OFF         PORTC &= ~(1<<PORTC2)
8
#define J16_TOGGLE      PORTC ^=  (1<<PORTC2)
9
#define J17_ON          PORTC |=  (1<<PORTC3)
783 killagreg 10
#define J17_OFF         PORTC &= ~(1<<PORTC3)
763 killagreg 11
#define J17_TOGGLE      PORTC ^=  (1<<PORTC3)
12
 
13
 
790 killagreg 14
extern uint16_t LED1_Time;
15
extern uint16_t LED2_Time;
763 killagreg 16
 
17
extern void LED_Init(void);
18
extern void LED_Update(void);
19
 
20
 
21
#endif //_LED_H
22