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

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_overrun(task)
rtos_stats(task,stat)
Relevant Preprocessor:
#USE RTOS(options)
the timer to use, the minor cycle time and whether or not statistics should be enabled.
#TASK(options)
#TASK
allowed to run, and how large it's queue should be.
Relevant Interrupts:
none
Relevant Include Files:
none all functions are built in
Relevant getenv() Parameters:
none
Example Code:
#USE RTOS(timer=0,minor_cycle=20ms) // RTOS will use timer zero, minor cycle will be 20ms
...
int sem;
...
#TASK(rate=1s,max=20ms,queue=5)
void task_name();
rtos_run();
rtos_terminate();
rtos_enable(task_name);
rtos_disable(task_name);
rtos_msg_send(task_name,5);
rtos_yield();
rtos_sigal(sem);
84
specifies the rate at which the task should be called, the maximum time the task shall be
This directive tells the compiler that the following function is to be an RTOS task.
This directive is used to specify several different RTOS attributes including
Will return true if the given task over ran its alloted time.
Returns the specified statistic about the specified task.
for the task to run and the total time the task has spent
running.
// Task will run at a rate of once per second
// with a maximum running time of 20ms and
// a 5 byte queue
// begins the RTOS
// ends the RTOS
// enables the previously declared task.
// disables the previously declared task
// places the value 5 in task_names queue.
// yields control to the RTOS
// signals that the resource represented by sem is available.
The statistics include the minimum and maximum times

Related parts for PCDIDE COMPILER