Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TaskPriorities.h « Platform « src - github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 57c194f41c760f2986c0dbc66bd624e06d36ba5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * 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
#if defined(LPC_NETWORKING)
    static constexpr int TcpPriority  = 2;
    //EMAC priority = 3 defined in FreeRTOSIPConfig.h
    static constexpr int HeatPriority = 4;
    static constexpr int SensorsPriority = 4;
    static constexpr int AinPriority = 4;
    static constexpr int HeightFollowingPriority = 4;
    static constexpr int LaserPriority = 5;
#else
    static constexpr int HeatPriority = 2;
	static constexpr int SensorsPriority = 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
}

#endif /* SRC_TASKPRIORITIES_H_ */