diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-07-08 09:53:16 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-07-08 09:53:16 +1000 |
commit | f2ee56661c6dbdb3b797d8f3df43137bdd20ec39 (patch) | |
tree | 835c33978cfbff357295670b22db820ef261d94c /src/gos/gos_raw32.h | |
parent | 2f6aaa9586297d287c5c721660795db1191f47f3 (diff) | |
download | uGFX-f2ee56661c6dbdb3b797d8f3df43137bdd20ec39.tar.gz uGFX-f2ee56661c6dbdb3b797d8f3df43137bdd20ec39.tar.bz2 uGFX-f2ee56661c6dbdb3b797d8f3df43137bdd20ec39.zip |
Alternate Raw32 scheduler.
Works for main thread + one other thread.
Currently fails with 2 other threads.
STM32M4 code tested and working.
Diffstat (limited to 'src/gos/gos_raw32.h')
-rw-r--r-- | src/gos/gos_raw32.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gos/gos_raw32.h b/src/gos/gos_raw32.h index a37b78ff..0661bd37 100644 --- a/src/gos/gos_raw32.h +++ b/src/gos/gos_raw32.h @@ -37,6 +37,25 @@ #define GOS_RAW_HEAP_SIZE 0 #endif +/** + * @brief Scheduler cpu support + */ +#define SCHED_USE_SETJMP 0 +#define SCHED_USE_CORTEX_M0 1 +#define SCHED_USE_CORTEX_M1 2 +#define SCHED_USE_CORTEX_M2 3 +#define SCHED_USE_CORTEX_M3 4 +#define SCHED_USE_CORTEX_M4 5 + +/** + * @brief Set the preferred scheduler method + * @note If not defined the SCHED_USE_SETJMP is used which should work for most platforms. + */ +#ifndef GOS_RAW_SCHEDULER + #define GOS_RAW_SCHEDULER SCHED_USE_SETJMP +#endif + + /*===========================================================================*/ /* Type definitions */ /*===========================================================================*/ |