FreeRTOS Emulator with SDL2 Based Graphics and Input Library  1.0
A POSIX wrapper to run FreeRTOS on an x86 machine with some basic input and output libraries aimed at making teaching FreeRTOS simpler.
demo_tasks.h
Go to the documentation of this file.
1 
24 #ifndef __DEMO_TASKS_H__
25 #define __DEMO_TASKS_H__
26 
27 #include "FreeRTOS.h"
28 #include "task.h"
29 
30 extern TaskHandle_t DemoTask1;
31 extern TaskHandle_t DemoTask2;
32 extern TaskHandle_t DemoSendTask;
33 
36 struct __attribute__((__packed__)) common_struct {
37  int first_int;
38  int second_int;
39 };
40 
43 int xCreateDemoTasks(void);
44 
46 void vDeleteDemoTasks(void);
47 
49 void vStateOneEnter(void);
50 
52 void vStateOneExit(void);
53 
55 void vStateTwoInit(void);
56 
58 void vStateTwoEnter(void);
59 
61 void vStateTwoExit(void);
62 
63 
64 #endif // __DEMO_TASKS_H__
TaskHandle_t DemoSendTask
Definition: demo_tasks.c:44
TaskHandle_t DemoTask2
Definition: demo_tasks.c:43
void vStateTwoExit(void)
Exit function for state two of the state machine.
Definition: demo_tasks.c:134
struct __attribute__((__packed__)) common_struct
Structure to be send via UDP, important is that that the structure is packed using attribute((packed)...
Definition: demo_tasks.h:36
void vDeleteDemoTasks(void)
Deletes the demo tasks found in demo_tasks.c.
Definition: demo_tasks.c:284
void vStateTwoInit(void)
Init function for state two of the state machine.
Definition: demo_tasks.c:116
void vStateOneEnter(void)
Enter function for state one of the state machine.
Definition: demo_tasks.c:51
void vStateTwoEnter(void)
Enter function for state two of the state machine.
Definition: demo_tasks.c:128
TaskHandle_t DemoTask1
Definition: demo_tasks.c:42
void vStateOneExit(void)
Exit function for state one of the state machine.
Definition: demo_tasks.c:56
int xCreateDemoTasks(void)
Creates the demo tasks found in demo_tasks.c.
Definition: demo_tasks.c:251