From 640ae537ae3536361b7401de740e3c2be94a8a37 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 16 May 2012 17:04:00 +0200 Subject: digital/beacon: control motor via PWM with TIMER0 --- digital/beacon/src/motor.c | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) (limited to 'digital/beacon/src/motor.c') diff --git a/digital/beacon/src/motor.c b/digital/beacon/src/motor.c index c487c22a..56682b48 100644 --- a/digital/beacon/src/motor.c +++ b/digital/beacon/src/motor.c @@ -28,24 +28,41 @@ /* This function initializes the motor control output */ void motor_init(void) { - DDRB |= (1<