forked from myelin/arduino-cmsis-dap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.h
38 lines (33 loc) · 1.32 KB
/
tasks.h
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
/* CMSIS-DAP Interface Firmware
* Copyright (c) 2009-2013 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef TASK_H
#define TASK_H
#define NO_TIMEOUT (0xffff)
#define LOWEST_PRIORITY (1) /* Priority 0 is reserved for the RTX idle task */
#define HIGHEST_PRIORITY (254) /* Priority 255 is reserved by RTX */
#define MAIN_TASK_PRIORITY (8)
#define SERIAL_TASK_PRIORITY (1)
#define TIMER_TASK_PRIORITY (11)
#define DAP_TASK_PRIORITY (15)
#define MSC_TASK_PRIORITY (5)
#define TIMER_TASK_30_PRIORITY (TIMER_TASK_PRIORITY)
#define SEMIHOST_TASK_PRIORITY (2)
#define TIMER_TASK_30_STACK (100)
#define DAP_TASK_STACK (400)
#define SERIAL_TASK_STACK (400)
#define MSC_TASK_STACK (200)
#define MAIN_TASK_STACK (200)
#endif