source: firmware/FSC/src/spare_outs.c@ 10106

Last change on this file since 10106 was 10094, checked in by neise, 14 years ago
initial commit of FSC firmware - use for FSC testing only -
File size: 376 bytes
Line 
1#include "spare_outs.h"
2#include <avr/io.h>
3
4void spare_outs_init(void)
5{
6 DDRB |= (1<<PB2) | (1<<PB3); // set Out1_spare & out2_spare as outputs
7
8 DDRA &= ~(1<<PA7); // set In1_spare as input
9 DDRC &= ~(1<<PC7); // set In2_spare as input
10 PORTA |= (1<<PA7); // swtich on pullup on In1_spare
11 PORTC |= (1<<PC7); // swtich on pullup on In2_spare
12
13}
Note: See TracBrowser for help on using the repository browser.