PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 97

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
RTOS
These functions control the operation of the CCS Real Time Operating System (RTOS). This
operating system is cooperatively multitasking and allows for tasks to be scheduled to run at
specified time intervals. Because the RTOS does not use interrupts, the user must be careful to
make use of the rtos_yield() function in every task so that no one task is allowed to run forever.
Relevant Functions:
rtos_run()
rtos_terminate()
rtos_enable(task)
rtos_disable(task)
rtos_msg_poll()
rtos_msg_read()
rtos_msg_send(task,byte)
rtos_yield()
rtos_signal(sem)
rtos_wait(sem)
rtos_await(expre)
Begins the operation of the RTOS. All task management
tasks are implemented by this function.
This function terminates the operation of the RTOS and
returns operation to the original program. Works as a
return from the rtos_run()function.
Enables one of the RTOS tasks. Once a task is enabled,
the rtos_run() function will call the task when its time
occurs. The parameter to this function is the name of task
to be enabled.
Disables one of the RTOS tasks. Once a task is disabled,
the rtos_run() function will not call this task until it is
enabled using rtos_enable(). The parameter to this
function is the name of the task to be disabled.
Returns true if there is data in the task's message queue.
Returns the next byte of data contained in the task's
message queue.
Sends a byte of data to the specified task. The data is
placed in the receiving task's message queue.
Called with in one of the RTOS tasks and returns control
of the program to the rtos_run() function. All tasks should
call this function when finished.
Increments a semaphore which is used to broadcast the
availability of a limited resource.
Waits for the resource associated with the semaphore to
become available and then decrements to semaphore to
claim the resource.
Will wait for the given expression to evaluate to true before
allowing the task to continue.
83

Related parts for PCDIDE COMPILER