PM5358 S/UNI-4x622 Driver Manual

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 PMC-Sierra, Inc.

116

Document ID: PMC-2010419, Issue 1

 

Page 116
Image 116
PMC-Sierra PM5358 S/UNI 4x622 manual Disabling Preemption sysSuni4x622PreemptDisable