... | ... | @@ -37,7 +37,7 @@ All functions are available on the `scheduling` object after including `Scheduli |
|
|
|
|
|
### Functions related to the uninterruptible synchronous task
|
|
|
|
|
|
* `int8_t defineUninterruptibleSynchronousTask(void (*periodic_task)(), uint32_t task_period_us)`
|
|
|
* `int8_t defineUninterruptibleSynchronousTask(void (*periodic_task)(), uint32_t task_period_us, scheduling_interrupt_source_t int_source)`
|
|
|
* `void startUninterruptibleSynchronousTask()`
|
|
|
|
|
|
### Functions related to the asynchronous tasks
|
... | ... | @@ -51,7 +51,7 @@ All functions are available on the `scheduling` object after including `Scheduli |
|
|
|
|
|
## Uninterruptible synchronous task
|
|
|
|
|
|
First call `scheduling.defineUninterruptibleSynchronousTask()`, passing as first parameter the `void(void)` function to be run periodically, and as second parameter the period in µs. _It is not recommended to set a period under 50 µs_.
|
|
|
First call `scheduling.defineUninterruptibleSynchronousTask()`, passing as first parameter the `void(void)` function to be run periodically, and as second parameter the period in µs. _It is not recommended to set a period under 50 µs_. A third, optional, parameter can be either `source_hrtim` or `source_tim6`. If you do use the HRTIM in your application, it is best to not provide this parameter, so that it can default to `source_hrtim`. However, if you do not the HRTIM in your application, you need to provide `source_tim6` as value to this parameter. This dedicates a timer to running the Uninterruptible synchronous task.
|
|
|
|
|
|
Check the return value of the function, if it is `-1`, there have been an error defining the task.
|
|
|
|
... | ... | |