diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2016-01-04 23:53:44 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2016-01-04 23:53:44 +0100 |
commit | ec96951943921b57ef9c1e9dacb63e34716fe5b7 (patch) | |
tree | c85d1c0a063712459ad12144900eb522b39ef7a0 /apps/serial1 | |
parent | baedda497d16c5096971eee83a0c467fe663fe6d (diff) | |
download | stm32f103-playground-ec96951943921b57ef9c1e9dacb63e34716fe5b7.tar.gz stm32f103-playground-ec96951943921b57ef9c1e9dacb63e34716fe5b7.tar.bz2 stm32f103-playground-ec96951943921b57ef9c1e9dacb63e34716fe5b7.tar.xz stm32f103-playground-ec96951943921b57ef9c1e9dacb63e34716fe5b7.zip |
o Actually working implementation of context switching.
It is important to remember to update the stack to the task descriptor on every switch!
Diffstat (limited to 'apps/serial1')
-rw-r--r-- | apps/serial1/serial1.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/serial1/serial1.cpp b/apps/serial1/serial1.cpp index 60e9bc9..e93286c 100644 --- a/apps/serial1/serial1.cpp +++ b/apps/serial1/serial1.cpp @@ -3,17 +3,15 @@ #include <stm32f10x_rcc.h> #include <stm32f10x_gpio.h> #include <stddef.h> -#include <stdarg.h> #include "debug.h" #include "tinyprintf.h" extern "C" void halt(); -#include "stm32f10x_conf.h" - extern "C" __attribute__((naked)) void HardFault_Handler_C(uint32_t *hardfault_args) { + (void) hardfault_args; halt(); } |