Subversion Repositories FlightCtrl

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2248 - 1
/*****************************************************************************************************************************
2
* File:                 led.h
3
* Purpose:              header of fc.c
4
*****************************************************************************************************************************/
5
#ifndef _LED_H
6
 #define _LED_H
7
 
8
#include <avr/io.h>
9
 
10
#define J16_ON          PORTC |=  (1<<PORTC2)
11
#define J16_OFF         PORTC &= ~(1<<PORTC2)
12
#define J16_TOGGLE      PORTC ^=  (1<<PORTC2)
13
#define J17_ON          PORTC |=  (1<<PORTC3)
14
#define J17_OFF         PORTC &= ~(1<<PORTC3)
15
#define J17_TOGGLE      PORTC ^=  (1<<PORTC3)
16
 
17
extern void LED_Init(void);
18
extern void LED_Update(void);
19
 
20
#endif 
21
//-------------------------------------------------------------------------------------------------------------------------------------