diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-10-24 11:35:18 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-10-24 11:35:18 -0400 |
commit | 9a11286327b877971367676616347ba767e96ba1 (patch) | |
tree | 9011b0d9768e60b7f90e1504f780b18182ee9742 /src/stm32/main.c | |
parent | faeaa54925e0a6fa197c48faf6317a86824f64d7 (diff) | |
download | kutter-9a11286327b877971367676616347ba767e96ba1.tar.gz kutter-9a11286327b877971367676616347ba767e96ba1.tar.xz kutter-9a11286327b877971367676616347ba767e96ba1.zip |
stm32: Implement armcm_main() in arch specific code
Move armcm_main() to stm32f0.c, stm32f1.c, and stm32f4.c. This gives
the arch specific code more control on the early boot setup.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/main.c')
-rw-r--r-- | src/stm32/main.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/stm32/main.c b/src/stm32/main.c deleted file mode 100644 index 5cf7dfd1..00000000 --- a/src/stm32/main.c +++ /dev/null @@ -1,18 +0,0 @@ -// Main starting point for STM32 boards. -// -// Copyright (C) 2019 Kevin O'Connor <kevin@koconnor.net> -// -// This file may be distributed under the terms of the GNU GPLv3 license. - -#include "board/armcm_boot.h" // armcm_main -#include "internal.h" // clock_setup -#include "sched.h" // sched_main - -// Main entry point - called from armcm_boot.c:ResetHandler() -void -armcm_main(void) -{ - SystemInit(); - clock_setup(); - sched_main(); -} |