vex_sdk::task

Function vexTasksRun

Source
pub unsafe fn vexTasksRun()
Expand description

Ticks the CPU1 Scheduler

This function is responsible for running VEXos tasks on CPU1. It must be called by the runtime ideally every 2mS to allow for internal OS tasks on the user processor to run. The scheduler is entirely cooperative, so the runtime must ensure that the CPU gets time to regularly execute these tasks.

VEXos has several background tasks in its scheduler responsible for handling transactions between CPU1 and CPU0, including tasks for handling device reads, serial flushing, USB, and other important operations that must occur in the background alongside user code.

ยงSafety

Calls to jumptable functions are unsafe because jumptable functions are owned by VEXos and we cannot guarantee their safety.