diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2014-03-31 11:18:32 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2014-04-22 16:51:13 +0200 |
commit | e3897565c342bee4765f921240b7ca91cd9b23f1 (patch) | |
tree | e7e328ee9452d54db9cfe66cccdb031cb704030f /gyro.c | |
parent | 24d11d4976062e965fb64861808548c39f53714b (diff) | |
download | hourglass-e3897565c342bee4765f921240b7ca91cd9b23f1.tar.gz hourglass-e3897565c342bee4765f921240b7ca91cd9b23f1.tar.bz2 hourglass-e3897565c342bee4765f921240b7ca91cd9b23f1.zip |
Activate accel + timer
Diffstat (limited to 'gyro.c')
-rw-r--r-- | gyro.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |