https://www.fi.muni.cz/~kas/git
/
bike-lights.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
be7b7df
)
buttons.c - the correct IRQ is PCIE1
author
Jan "Yenya" Kasprzak
<kas@fi.muni.cz>
Sat, 8 Dec 2012 21:32:40 +0000 (22:32 +0100)
committer
Jan "Yenya" Kasprzak
<kas@fi.muni.cz>
Sat, 8 Dec 2012 21:32:40 +0000 (22:32 +0100)
firmware/buttons.c
patch
|
blob
|
history
diff --git
a/firmware/buttons.c
b/firmware/buttons.c
index
c1a785d
..
1263fcb
100644
(file)
--- a/
firmware/buttons.c
+++ b/
firmware/buttons.c
@@
-133,8
+133,8
@@
void susp_buttons()
DDRA &= ~(_BV(PA3) | _BV(PA4)); // set as input
PORTA |= _BV(PA3) | _BV(PA4); // enable internal pull-ups
- GIMSK &= ~_BV(PCIE1); // disable pin-change IRQ on port B
- GIMSK |= _BV(PCIE0);
+ GIMSK &= ~_BV(PCIE0);
+ GIMSK |= _BV(PCIE1);
PCMSK0 = _BV(PCINT3) | _BV(PCINT4);
// disable pin-change IRQs on all pins except PA3,PA4