From a86a3bb29b734f7c03475d455870175a2fe3c795 Mon Sep 17 00:00:00 2001 From: Thammi Date: Thu, 29 Aug 2013 21:16:35 +0200 Subject: [PATCH] Do not attempt to drive the motor with the pullup ... --- firmware/README.md | 2 -- firmware/lib/hal.c | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/firmware/README.md b/firmware/README.md index d0a41ab..520dcb1 100644 --- a/firmware/README.md +++ b/firmware/README.md @@ -44,8 +44,6 @@ call the REGISTER() macro to define the entry point to your application. ## Bugs and TODOs -* _delay_ms() function will be replaced (it waits too long and the application - cannot be quit while waiting) * add more functions to the hardware abstraction layer * a mechanism to select which applications to include in the firmware diff --git a/firmware/lib/hal.c b/firmware/lib/hal.c index db51d66..b1b0e69 100644 --- a/firmware/lib/hal.c +++ b/firmware/lib/hal.c @@ -77,9 +77,10 @@ void reset_hw(void) { // 0: S1 // 1: S2 + // 6: MOTOR // 7: BUZZR PORTB = (1 << 0) | (1 << 1) | (1 << 7); - DDRB = (1 << 7); + DDRB = (1 << 6) | (1 << 7); // 0: BUZGND // 2: LED2