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 /playground/include/playground.h | |
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 'playground/include/playground.h')
-rw-r--r-- | playground/include/playground.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/playground/include/playground.h b/playground/include/playground.h index c224908..3ccfeeb 100644 --- a/playground/include/playground.h +++ b/playground/include/playground.h @@ -1,10 +1,20 @@ #ifndef PLAYGROUND_H #define PLAYGROUND_H -extern "C" void halt(); +extern "C" +void halt(); + +extern "C" +void init_high(); + +extern "C" +int main(); + +extern "C" +void Default_Handler(); template<typename T, size_t N> -static inline +static inline constexpr size_t SizeOfArray(const T(&)[N]) { return N; } |