Revision 1266
Made is so that hardware_dynamos.c does not mess up anyone else who is using
external interrupts by blowing away their interrupt settings.
trunk/code/projects/diagnostic_station/station/hardware_dynamos.c | ||
---|---|---|
8 | 8 |
//enable pin change interrupts 4 and 5 (correspond to DIO2 and DIO3) |
9 | 9 |
//to trigger on both edges |
10 | 10 |
cli(); |
11 |
EICRB = _BV(ISC40) | _BV(ISC50); |
|
12 |
EIMSK = _BV(INT4) | _BV(INT5);
|
|
11 |
EICRB |= _BV(ISC40) | _BV(ISC50);
|
|
12 |
EIMSK |= _BV(INT4) | _BV(INT5);
|
|
13 | 13 |
sei(); |
14 | 14 |
|
15 | 15 |
//enable the 5V switching regulator to power the dynamos |
Also available in: Unified diff