diff options
author | David Crocker <dcrocker@eschertech.com> | 2019-10-26 11:46:31 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2019-10-26 11:46:31 +0300 |
commit | 587f49d5699a6a0fc3cb8307e17dd5c2fa43f73b (patch) | |
tree | 311cc1342502b74cad2808ee6bf4e9cb66a7ac4c /src/TaskPriorities.h | |
parent | c25d73194252791ceb479ced79ffc77b31c810fe (diff) |
Cached memory and Lwip networking changes
Put CAN, GMAC and some DMA buffers in new .ram_nocache memory section (needs new linker script in CoreNG)
Added option to use separate Ethernet GMAC task (not working yet, so disabled - see LWIP_GMAC_TASK in compiler settings)
Added code to set up non-cached memory usnig MPU (not working yet, so disabled)
Diffstat (limited to 'src/TaskPriorities.h')
-rw-r--r-- | src/TaskPriorities.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/TaskPriorities.h b/src/TaskPriorities.h new file mode 100644 index 00000000..e0ad3df4 --- /dev/null +++ b/src/TaskPriorities.h @@ -0,0 +1,29 @@ +/* + * TaskPriorities.h + * + * Created on: 23 Oct 2019 + * Author: David + */ + +#ifndef SRC_TASKPRIORITIES_H_ +#define SRC_TASKPRIORITIES_H_ + +// Task priorities +namespace TaskPriority +{ + static constexpr int IdlePriority = 0; + static constexpr int SpinPriority = 1; // priority for tasks that rarely block + static constexpr int HeatPriority = 2; + static constexpr int DhtPriority = 2; + static constexpr int TmcPriority = 2; + static constexpr int AinPriority = 2; + static constexpr int HeightFollowingPriority = 2; + static constexpr int DueXPriority = 3; + static constexpr int LaserPriority = 3; + static constexpr int CanSenderPriority = 3; + static constexpr int CanReceiverPriority = 3; + static constexpr int CanClockPriority = 3; + static constexpr int EthernetPriority = 3; +} + +#endif /* SRC_TASKPRIORITIES_H_ */ |