diff --git a/.vscode/settings.json b/.vscode/settings.json index 4a2de2e..3a44ddb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,6 +4,7 @@ "stdio.h": "c", "windows.h": "c", "cmath": "c", - "list.h": "c" + "list.h": "c", + "stdlib.h": "c" } } \ No newline at end of file diff --git a/build/port_windows.o b/build/port_windows.o index 67a59e1..645d6a4 100644 Binary files a/build/port_windows.o and b/build/port_windows.o differ diff --git a/list_easy_timer.exe b/list_easy_timer.exe index 5b012f5..3ef5aa4 100644 Binary files a/list_easy_timer.exe and b/list_easy_timer.exe differ diff --git a/port_windows.c b/port_windows.c index f0f4d53..2cadd23 100644 --- a/port_windows.c +++ b/port_windows.c @@ -22,6 +22,11 @@ void hello_dog(){ printf("hello dog\n"); } EXPORT_EASY_TIMER_HANDLE(hello_dog,TIMER_CONTINUE_TRIGGER, MS_TO_TICK(1000)); + +void hello_once(){ + printf("hello once\n"); +} +EXPORT_EASY_TIMER_HANDLE(hello_once,TIMER_SIGNAL_TRIGGER, MS_TO_TICK(1000)); /** * @brief 获取当前时间 * @return 时间