aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32f4/main.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-07-28 18:26:22 -0400
committerKevinOConnor <kevin@koconnor.net>2019-08-05 11:25:40 -0400
commitec3d865b517affd77678e5b1a45ef4691619726d (patch)
tree0e2bc36ed5c891cf8ea4548191474b39f8bbaeba /src/stm32f4/main.c
parent7efc53ff59111061908405dae889a38cc6e60dbb (diff)
downloadkutter-ec3d865b517affd77678e5b1a45ef4691619726d.tar.gz
kutter-ec3d865b517affd77678e5b1a45ef4691619726d.tar.xz
kutter-ec3d865b517affd77678e5b1a45ef4691619726d.zip
stm32f4: Add support for USB on stm32f103
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32f4/main.c')
-rw-r--r--src/stm32f4/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stm32f4/main.c b/src/stm32f4/main.c
index b3069cc9..4f4867a6 100644
--- a/src/stm32f4/main.c
+++ b/src/stm32f4/main.c
@@ -38,6 +38,8 @@ DECL_COMMAND_FLAGS(command_reset, HF_IN_SHUTDOWN, "reset");
int
main(void)
{
+ SCB->VTOR += CONFIG_FLASH_START;
+
clock_setup();
sched_main();