
B–61863E–1/06
2. PMC SYSTEM CALLPMC LIBRARY
143
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
os_chng_pri
[Description]
Changes priority of specified tasks and tasks which are being
executed.
[Format]
ret = os_chng_pri(task_id, new_priority, old_priority) ;
unsigned short ret ;
unsigned chartask_id ;
unsigned charnew_priority ;
unsigned char*old_priority ;
[Input]
task_id Task ID (0.10 to)
new_priority New priority (0 or 10 to 99)
[Output]
old_priority Old priority (10 to 99)
[Returns]
ret Completion code
0 ; Task priority has changed normally.
0104H ; Task ID error
010CH ; There is no specified task.
0980H ; The new priority is out of range (other than 0 or 10 to 99).
[Remarks]
Priority values for tasks are 10 to 99, with 10 being the highest
priority.
when the task_id is 0, priority for tasks being executed is changed.
If the new_priority is 0, the specified task is moved to the bottom of
the queue of tasks that have the same priority as the specified task.
2.1
TASK PRIORITY
CHANGE