aboutsummaryrefslogtreecommitdiffstats
path: root/src/avr
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-06-05 14:58:12 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-06-13 23:18:58 -0400
commit9f8817a47e10f35e8008e40576d2bc54157c2767 (patch)
tree7121f7fa659ff234651d988aed6eead6ca7d67c0 /src/avr
parent9971f999b382ef51a3a3d1db4a3385b7cc23a3a0 (diff)
downloadkutter-9f8817a47e10f35e8008e40576d2bc54157c2767.tar.gz
kutter-9f8817a47e10f35e8008e40576d2bc54157c2767.tar.xz
kutter-9f8817a47e10f35e8008e40576d2bc54157c2767.zip
generic: Move board timer.h files into generic/misc.h
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/avr')
-rw-r--r--src/avr/timer.c2
-rw-r--r--src/avr/timer.h12
2 files changed, 1 insertions, 13 deletions
diff --git a/src/avr/timer.c b/src/avr/timer.c
index 31f94caf..442bff32 100644
--- a/src/avr/timer.c
+++ b/src/avr/timer.c
@@ -6,10 +6,10 @@
#include <avr/interrupt.h> // TCNT1
#include "autoconf.h" // CONFIG_AVR_CLKPR
+#include "board/misc.h" // timer_from_us
#include "command.h" // shutdown
#include "irq.h" // irq_save
#include "sched.h" // sched_timer_kick
-#include "timer.h" // timer_from_us
/****************************************************************
diff --git a/src/avr/timer.h b/src/avr/timer.h
deleted file mode 100644
index 188d8a98..00000000
--- a/src/avr/timer.h
+++ /dev/null
@@ -1,12 +0,0 @@
-#ifndef __AVR_TIMER_H
-#define __AVR_TIMER_H
-
-#include <stdint.h>
-
-uint32_t timer_from_us(uint32_t us);
-void timer_periodic(void);
-uint32_t timer_read_time(void);
-uint8_t timer_set_next(uint32_t next);
-uint8_t timer_try_set_next(uint32_t next);
-
-#endif // timer.h