...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
#include "includes.h" (1) #define TASK_STK_SIZE 512 (2) #define N_TASKS 10 OS_STK TaskStk[N_TASKS][TASK_STK_SIZE]; (3) OS_STK TaskStartStk[TASK_STK_SIZE]; (4) char TaskData[N_TASKS]; (5) OS_EVENT *RandomSem; (6) |
Panel | ||
---|---|---|
| ||
(1) First, you will notice that there is only a single #include statement. That’s because I like to place all my header files in a ‘master’ header file called I will get back to Listing 1.1 later as needed. Like most C programs, we need a |
...