summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/tacho.c4
-rw-r--r--app/tacho.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/tacho.c b/app/tacho.c
index 96a4d1b..2938c87 100644
--- a/app/tacho.c
+++ b/app/tacho.c
@@ -15,7 +15,7 @@ cycle_diff (uint32_t a, uint32_t b)
void
-exti3_isr (void)
+TACHO_ISR (void)
{
uint32_t now, diff;
static uint32_t last_edge;
@@ -46,7 +46,7 @@ exti3_isr (void)
- raw_tacho = (US ((60 * 1000000) / 2)) / diff;
+ raw_tacho = (US ((60U * 1000000) / 2)) / diff;
}
diff --git a/app/tacho.h b/app/tacho.h
index 5388cf0..d756e9b 100644
--- a/app/tacho.h
+++ b/app/tacho.h
@@ -2,5 +2,5 @@
#define TACHO_IRQ NVIC_EXTI3_IRQ
#define TACHO GPIO3
#define TACHO_PORT GPIOB
-#define TACHO_ISR exit3_isr
+#define TACHO_ISR exti3_isr