aboutsummaryrefslogtreecommitdiffstats
path: root/src/generic/armcm_timer.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-08-21 12:05:56 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-08-22 09:58:58 -0400
commit2a2cf1f536f985330054cf47f47ec7d2455e35fa (patch)
treecf0e468e4de0751b4dd3bc391aa5f742ba6ae430 /src/generic/armcm_timer.c
parent351910c5ac8935341ffa31d644f5a6bbc54b02ed (diff)
downloadkutter-2a2cf1f536f985330054cf47f47ec7d2455e35fa.tar.gz
kutter-2a2cf1f536f985330054cf47f47ec7d2455e35fa.tar.xz
kutter-2a2cf1f536f985330054cf47f47ec7d2455e35fa.zip
armcm_boot: Add generic code for early board init on armcm machines
Add basic ARM Cortex-M C init code and build linker scripts to src/generic/ code. This can be used to simplify the various ARM board code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/generic/armcm_timer.c')
-rw-r--r--src/generic/armcm_timer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/generic/armcm_timer.c b/src/generic/armcm_timer.c
index f4ce2b8b..ef38680a 100644
--- a/src/generic/armcm_timer.c
+++ b/src/generic/armcm_timer.c
@@ -5,6 +5,7 @@
// This file may be distributed under the terms of the GNU GPLv3 license.
#include "autoconf.h" // CONFIG_CLOCK_FREQ
+#include "armcm_boot.h" // DECL_ARMCM_IRQ
#include "board/internal.h" // SysTick
#include "board/irq.h" // irq_disable
#include "board/misc.h" // timer_from_us
@@ -160,6 +161,7 @@ SysTick_Handler(void)
timer_set_diff(diff);
irq_enable();
}
+DECL_ARMCM_IRQ(SysTick_Handler, SysTick_IRQn);
// Make sure timer_repeat_until doesn't wrap 32bit comparisons
void