Subversion Repositories FlightCtrl

Rev

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

Rev Author Line No. Line
1612 dongfang 1
#ifndef _OUTPUT_H
2
#define _OUTPUT_H
3
 
4
#include <avr/io.h>
5
 
6
// This is for LEDs connected directly between +5V and the AVR port, without transistors.
7
// PORTbit = 0 --> LED on.
8
// To use the normal transistor set-up where 1 --> transistor conductive, reverse the 
9
// ON and OFF statements.
10
#define J16_ON          PORTC &= ~(1<<PORTC2)
11
#define J16_OFF         PORTC |=  (1<<PORTC2)
12
#define J16_TOGGLE      PORTC ^=  (1<<PORTC2)
13
 
14
#define J17_ON          PORTC &= ~(1<<PORTC3)
15
#define J17_OFF         PORTC |=  (1<<PORTC3)
16
#define J17_TOGGLE      PORTC ^=  (1<<PORTC3)
17
 
18
void output_init(void);
19
void output_update(void);
20
 
21
#endif //_output_H
22