Professional Documents
Culture Documents
Syntax:
#use rtos(options)
Elements:
statistics
Purpose:
This directive tells the compiler which timer on the PIC to use
for monitoring and when to grant control to a task. Changes
to the specified timer's prescaler will effect the rate at which
tasks are executed.
This directive can also be used to specify the longest time
that a task will ever take to execute with the minor_cycle
option. This simply forces all task execution rates to be a
multiple of the minor_cycle before the project will compile
successfully. If the this option is not specified the compiler
will use a minor_cycle value that is the smallest possible
factor of the execution rates of the RTOS tasks.
If the statistics option is specified then the compiler will keep
track of the minimum processor time taken by one execution
of each task, the maximum processor time taken by one
execution of each task, and the total processor time used by
each task.
Examples:
Also See:
71