I'd like to konw how to keep a task idle and wake it from an ISR , for a specific time ,then return idle
There are lots of different ways - queues, semaphores, event groups,
stream buffers, message buffers can all be used to wake a task from an
interrupt. As a starting point for you I would recommend looking at
task notifications - as that is one of the most efficient ways. The
first link gives an overview of task notifications, the second has a
code snippet showing interrupt to task notifications.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.