diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-03-28 10:46:32 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-03-30 11:24:44 -0400 |
commit | 69885079986c94f3a8e93fb29243976fe89af834 (patch) | |
tree | 66abb82fc5afc0e77a88b385424ba1ca4a573b9d | |
parent | 65be6d514650f579621132ec8fd27da3541a3a37 (diff) | |
download | kutter-69885079986c94f3a8e93fb29243976fe89af834.tar.gz kutter-69885079986c94f3a8e93fb29243976fe89af834.tar.xz kutter-69885079986c94f3a8e93fb29243976fe89af834.zip |
timer_irq: Rename generic/timer.c to generic/timer_irq.c
Rename the file to make it clear that the code is helper functions for
boards with irq based timers.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | src/generic/timer_irq.c (renamed from src/generic/timer.c) | 1 | ||||
-rw-r--r-- | src/generic/timer_irq.h | 6 | ||||
-rw-r--r-- | src/sam3x8e/Makefile | 2 | ||||
-rw-r--r-- | src/sam3x8e/timer.c | 4 |
4 files changed, 9 insertions, 4 deletions
diff --git a/src/generic/timer.c b/src/generic/timer_irq.c index fba56051..a0587a72 100644 --- a/src/generic/timer.c +++ b/src/generic/timer_irq.c @@ -7,6 +7,7 @@ #include "autoconf.h" // CONFIG_CLOCK_FREQ #include "board/irq.h" // irq_disable #include "board/misc.h" // timer_from_us +#include "board/timer_irq.h" // timer_dispatch_many #include "command.h" // shutdown #include "sched.h" // sched_timer_kick diff --git a/src/generic/timer_irq.h b/src/generic/timer_irq.h new file mode 100644 index 00000000..0421c98c --- /dev/null +++ b/src/generic/timer_irq.h @@ -0,0 +1,6 @@ +#ifndef __GENERIC_TIMER_IRQ_H +#define __GENERIC_TIMER_IRQ_H + +void timer_dispatch_many(void); + +#endif // timer_irq.h diff --git a/src/sam3x8e/Makefile b/src/sam3x8e/Makefile index d8e63c0c..16f300ac 100644 --- a/src/sam3x8e/Makefile +++ b/src/sam3x8e/Makefile @@ -16,7 +16,7 @@ LDFLAGS-y += --specs=nano.specs --specs=nosys.specs # Add source files src-y += sam3x8e/main.c sam3x8e/timer.c sam3x8e/gpio.c -src-y += generic/crc16_ccitt.c generic/armcm_irq.c generic/timer.c +src-y += generic/crc16_ccitt.c generic/armcm_irq.c generic/timer_irq.c src-y += ../lib/cmsis-sam3x8e/source/system_sam3xa.c src-y += ../lib/cmsis-sam3x8e/source/gcc/startup_sam3xa.c src-$(CONFIG_SERIAL) += sam3x8e/serial.c diff --git a/src/sam3x8e/timer.c b/src/sam3x8e/timer.c index dcc8dbd2..d156588a 100644 --- a/src/sam3x8e/timer.c +++ b/src/sam3x8e/timer.c @@ -6,13 +6,11 @@ #include "board/irq.h" // irq_disable #include "board/misc.h" // timer_read_time +#include "board/timer_irq.h" // timer_dispatch_many #include "command.h" // DECL_SHUTDOWN #include "sam3x8e.h" // TC0 #include "sched.h" // sched_timer_kick -// From generic/timer.c -extern void timer_dispatch_many(void); - // IRQ handler void __visible TC0_Handler(void) |