PM5358
RTOS Interface
6.4Preemption
Disabling Preemption: sysSuni4x622PreemptDisable
This routine prevents the calling task from being preempted. If the driver is in interrupt mode, this routine locks out all interrupts as well as other tasks in the system. If the driver is in polling mode, this routine locks out other tasks only.
Format | #define sysSuni4x622PreemptDisable() |
Prototype | INT4 sysSuni4x622PreemptDisable(void) |
Inputs | None |
Outputs | None |
Returns | Preemption key (passed back as an argument in |
| sysSuni4x622PreemptEn) |
Re-Enabling Preemption: sysSuni4x622PreemptEnable
This routine allows the calling task to be preempted. If the driver is in interrupt mode, this routine unlocks all interrupts and other tasks in the system. If the driver is in polling mode, this routine unlocks other tasks only.
Format | #define sysSuni4x622PreemptEnable(key) | |
Prototype | Void sysSuni4x622PreemptEnable(INT4 key) | |
Inputs | key | : preemption key (returned by sysSuni4x622PreemptDis) |
Outputs | None |
|
Returns | None |
|
Proprietary and Confidential to | 116 |
Document ID: |
|