aboutsummaryrefslogtreecommitdiff
path: root/gyro.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-03-31 11:18:32 +0200
committerLars-Dominik Braun <lars@6xq.net>2014-04-22 16:51:13 +0200
commite3897565c342bee4765f921240b7ca91cd9b23f1 (patch)
treee7e328ee9452d54db9cfe66cccdb031cb704030f /gyro.c
parent24d11d4976062e965fb64861808548c39f53714b (diff)
downloadhourglass-e3897565c342bee4765f921240b7ca91cd9b23f1.tar.gz
hourglass-e3897565c342bee4765f921240b7ca91cd9b23f1.tar.bz2
hourglass-e3897565c342bee4765f921240b7ca91cd9b23f1.zip
Activate accel + timer
Diffstat (limited to 'gyro.c')
-rw-r--r--gyro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gyro.c b/gyro.c
index bbcb0fe..eede345 100644
--- a/gyro.c
+++ b/gyro.c
@@ -48,9 +48,9 @@ void gyroInit () {
DDRB = (DDRB & ~((1 << PB1)));
PORTB = (PORTB | (1 << PB1));
/* enable interrupt PCI0 */
- PCICR = (1 << PCIE0);
+ PCICR = PCICR | (1 << PCIE0);
/* enable interrupts on PB1/PCINT1 */
- PCMSK0 = (1 << 1);
+ PCMSK0 = (1 << PCINT1);
}
/* XXX: make nonblocking */