Skip to content

Stopping and running tasks #22

@mikro29

Description

@mikro29

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions