Changeset 10109 for firmware/FSC/src/spare_outs.c
- Timestamp:
- 01/19/11 15:44:25 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/FSC/src/spare_outs.c
r10094 r10109 1 #include "spare_outs.h"2 #include <avr/io.h>3 4 void spare_outs_init(void)5 {6 DDRB |= (1<<PB2) | (1<<PB3); // set Out1_spare & out2_spare as outputs7 8 DDRA &= ~(1<<PA7); // set In1_spare as input9 DDRC &= ~(1<<PC7); // set In2_spare as input10 PORTA |= (1<<PA7); // swtich on pullup on In1_spare11 PORTC |= (1<<PC7); // swtich on pullup on In2_spare12 13 }
Note:
See TracChangeset
for help on using the changeset viewer.