UP log
This commit is contained in:
@@ -44,7 +44,10 @@ void exampleTimer4Callback(Task_t *task, void *userData) {
|
||||
#undef LOG_RUN_TIMER_FUN
|
||||
#define LOG_RUN_TIMER_FUN GetTick()
|
||||
int Test_task(void *pVoid) {
|
||||
LOG_RUN_TIME() {
|
||||
|
||||
LOG_RUN_TIME("Init Timer", {
|
||||
printf("%llu", __time_count__);
|
||||
}) {
|
||||
TaskInit(GetTick);
|
||||
TaskCreat(task1, 1000, -1, exampleTimer1Callback, "1000ms CYCLE task");
|
||||
TaskCreat(task2, 5000, -1, exampleTimer2Callback, "5000ms ONCE task");
|
||||
@@ -56,7 +59,6 @@ int Test_task(void *pVoid) {
|
||||
TaskCreat(task4, 2000, 1, exampleTimer4Callback, &customUserData);
|
||||
}
|
||||
|
||||
|
||||
while (1) {
|
||||
TaskRun();
|
||||
}
|
||||
|
Reference in New Issue
Block a user