chipKIT® Development Platform

Inspired by Arduino™

Last edit: 2021-03-21 22:34 by Majenko

GetIntPriority

  1. Synopsis

  2. Description

  3. Return Value

  4. Bugs

  5. Conforming To

  6. Examples

  7. See Also

Synopsis

 void getIntPriority(int vec, int * pipl, int * pspl)

Description

getIntPriority() retrieves the current priority and sub-priority for an interrupt and places them into the integer variables pointed to by pipl and pspl respectively. The interrupt is specified by vector not IRQ.

Return Value

None

Bugs

There is no test for the validity of the pipl or pspl pointers. If either pipl or pspl are NULL a bus error exception will be raised.

Conforming To

getIntPriority() does not conform to any external API, it is unique to the chipKIT system.

Examples

 int priority, subpriority;
 getIntPriority(_TIMER_3_VECTOR, &priority, &subpriority);

See Also

attachInterrupt(), detachInterrupt(), clearIntEnable(), clearIntFlag(), clearIntVector(), disableInterrupts(), enableInterrupts(), getIntFlag(), getIntVector(), restoreIntEnable(), restoreInterrupts(), setIntEnable(), setIntPriority(), setIntVector()