How to Create a Task

void TaskClass::Task(void)
{
    for (;;) {
        // Task body goes here.
    }
}