-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hello everyone, How to use stop and start tasks.
Platform version 1.0.0
Modem = Quectel MC60
#include <os_api.h>
int result;
int main(){
os_task_create(led_flash_task, "led_flash", NULL,FALSE); // task ID = 1
result = os_task_resume(1);
os_task_suspend(1);
while (1) {
gpio_write(gpio_5, GPIO_LEVEL_HIGH);
os_task_sleep(500);
gpio_write(gpio_5, GPIO_LEVEL_LOW);
os_task_sleep(1000);
}
}
This is a bug = undefined reference to `os_task_resume'
Can you also give an example of how to use sleep modes? I have to put the modem to sleep and wake it up again and again. Thanks
Metadata
Metadata
Assignees
Labels
No labels