From ec96951943921b57ef9c1e9dacb63e34716fe5b7 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 4 Jan 2016 23:53:44 +0100 Subject: o Actually working implementation of context switching. It is important to remember to update the stack to the task descriptor on every switch! --- apps/serial1/serial1.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apps/serial1/serial1.cpp') 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 #include #include -#include #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(); } -- cgit v1.2.3