From e3897565c342bee4765f921240b7ca91cd9b23f1 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 31 Mar 2014 11:18:32 +0200 Subject: Activate accel + timer --- gyro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gyro.c') 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 */ -- cgit v1.2.3