main/task_out.h

changeset 9
1659bd3c7a2b
equal deleted inserted replaced
8:115e93bf8796 9:1659bd3c7a2b
1 /**
2 * @file task_out.h
3 * @brief The FreeRTOS task to drive the output relays and dimmed leds.
4 */
5
6 #ifndef _TASK_OUT_H
7 #define _TASK_OUT_H
8
9 /*
10 * Error codes in this task
11 */
12 #define OUT_ERR_NONE 0 ///< No errors
13 #define OUT_ERR_READ 1
14
15
16 /**
17 * @brief Structure containing the variables for the out task.
18 */
19 typedef struct {
20 int error; ///< Error result
21 uint8_t out1; ///< Actual output state
22 uint8_t out2;
23 uint8_t out3;
24 uint8_t out4;
25 } OUT_State;
26
27
28 /**
29 * @brief The FreeRTOS task to update the outputs.
30 * @param pvParameters Parameters for the task.
31 */
32 void task_out(void *pvParameters);
33
34
35 #endif

mercurial