blob: 1ceeaad522bbc2d74abca71df5e3a28f655e4c88 (
plain) (
blame)
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
40
41
|
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#define MS(ms) portTICK_RATE_MS * (ms)
typedef enum
{
STATUS_OK = 0x0U,
STATUS_ERROR_INIT,
STATUS_ERROR_SND,
STATUS_ERROR_RCV,
STATUS_ERROR_TIMEOUT
}Status_t;
typedef enum
{
Sender_Kernel = 0x0,
Sender_Camera,
Sender_Spi,
Sender_LightSens
}Sender_t;
typedef struct
{
void *pData;
Sender_t Sender;
}Message_t;
typedef struct
{
xQueueHandle hxq_Kernel;
xQueueHandle hxq_Camera;
xQueueHandle hxq_LightSens;
}QH_t;
typedef struct
{
xTaskHandle hxTask_Self;
QH_t QueueHandles;
}Task_Param_t;
|