-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.h
More file actions
executable file
·39 lines (32 loc) · 1.23 KB
/
main.h
File metadata and controls
executable file
·39 lines (32 loc) · 1.23 KB
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
/** \file main.h
*
* @brief Tone Generator Main Header File
*/
#ifndef _MAIN_H
#define _MAIN_H
// Relative Task Priorities (15 = highest; 0 = idle task)
#define STARTUP_PRIO (15) // Highest priority, to launch others.
#define ADC_PRIO (9) // Every 125 ms, in a timed loop.
#define ALARM_PRIO (10) // Up to every 125 msec based on ADC sampling
#define DISPLAY_PRIO (8) // Signaled via g_adc_mbox
#define DIVE_CONTROLLER_PRIO (9)
#define TIMER_PRIO (8)
#define LED2_PRIO (7)
#define SPEAKER_PRIO (8)
#define BUTTON_PRIO (10)
// Task Stack Sizes
#define STARTUP_TASK_STACK_SIZE (2048)
#define ADC_TASK_STACK_SIZE (2048)
#define ALARM_TASK_STACK_SIZE (4096)
#define DISPLAY_TASK_STACK_SIZE (4096)
#define DIVE_CONTROLLER_TASK_STACK_SIZE (6144)
#define TIMER_TASK_STACK_SIZE (2048)
#define LED2_TASK_STACK_SIZE (2048)
#define SPEAKER_TASK_STACK_SIZE (2048)
#define BUTTON_TASK_STACK_SIZE (2048)
#define ADC_MSG_COUNT 10
#define DISPLAY_MSG_COUNT 20
//extern Mailbox_Handle g_adc_mbox;
//extern Mailbox_Handle g_display_mbox;
//extern Event_Handle g_event_handle;
#endif /* _MAIN_H */