diff --git a/src/Makefile b/src/Makefile index 2411a3554c56b63601b9a8293e394217c3f43258..a43f4f7c1724ffc568f4ef650199020642107bc3 100644 --- a/src/Makefile +++ b/src/Makefile @@ -66,4 +66,5 @@ install: bwio.a taskdescriptor.a scheduler.a clean: -rm -f *.elf *.s *.o main.map *.a *~ ../../lib/*.a + diff --git a/src/k1.c b/src/k1.c new file mode 100644 index 0000000000000000000000000000000000000000..c924ff827282c503037180a99d1c5610e47468bb --- /dev/null +++ b/src/k1.c @@ -0,0 +1,22 @@ +#include <bwio.h> + +void someK1Fn() { + bwprintf(COM2, "My TaskID: <%d> and My ParentID: <%d>\n", MyTid(), MyParentTid()); + Pass(); + bwprintf(COM2, "My TaskID: <%d> and My ParentID: <%d>\n", MyTid(), MyParentTid()); + Exit(); +} + +void firstUserTaskChildren() { + int TaskID; + TaskID = Create(Prio1, someK1Fn); + bwprintf(COM2, "Created: <%d>\n", TaskID); + TaskID = Create(Prio1, someK1Fn); + bwprintf(COM2, "Created: <%d>\n", TaskID); + TaskID = Create(Prio5, someK1Fn); + bwprintf(COM2, "Created: <%d>\n", TaskID); + TaskID = Create(Prio5, someK1Fn); + bwprintf(COM2, "Created: <%d>\n", TaskID); + bwprintf(COM2, "FirstUserTask: exiting"); + Exit(); +} \ No newline at end of file