PCD
Example Files:
Also See:
None
None
#TASK
(The RTOS is only included with the PCW, PCWH, and PCWHD software packages.)
Each RTOS task is specified as a function that has no parameters and no return. The #TASK
directive is needed just before each RTOS task to enable the compiler to tell which functions are
RTOS tasks. An RTOS task cannot be called directly like a regular function can.
Syntax:
Elements:
Purpose:
#TASK (options)
options are separated by comma and may be:
rate=time
Where time is a number followed by s, ms, us, or ns. This specifies how often
the task will execute.
max=time
Where time is a number followed by s, ms, us, or ns. This specifies the
budgeted time for this task.
queue=bytes
Specifies how many bytes to allocate for this task's incoming messages. The
default value is 0.
enabled=value
Specifies whether a task is enabled or disabled by rtos_run( ).
True for enabled, false for disabled. The default value is enabled.
This directive tells the compiler that the following function is an RTOS task.
The rate option is used to specify how often the task should execute. This
must be a multiple of the minor_cycle option if one is specified in the #USE
RTOS directive.
The max option is used to specify how much processor time a task will use in
one execution of the task. The time specified in max must be equal to or less
than the time specified in the minor_cycle option of the #USE RTOS directive
before the project will compile successfully. The compiler does not have a
way to enforce this limit on processor time, so a programmer must be careful
with how much processor time a task uses for execution. This option does
not need to be specified.
The queue option is used to specify the number of bytes to be reserved
for the task to receive messages from other tasks or functions. The default
queue value is 0.
118
相关PDF资料
PCI-EXP-T42G5-N1 IP CORE PCI EXPRESS ORCA 4
PCM18XH2 PROCESSOR MODULE MPLAB-ICE 2000
PCM18XN0 PROCESSOR MODULE FOR ICE2000
PDA-B-24-615-E-2B1-1-C CIRCUIT BREAKER MAG 1P 15A
PFMF.260.2 PFMF PTC FUSE SMT 2.6A 1812
PFNF.200.2 PFNF PTC FUSE SMT 2A 1206
PFRY.375 PTC-FUSE RADIAL 72 VDC
PFSM.150.33.2 FUSE PTC 8A 15V FST-TRIP SMD
相关代理商/技术参数
PCD_09 制造商:MACOM 制造商全称:Tyco Electronics 功能描述:Low Profile PCB Relay PCD
PCD-00173-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0E 制造商:Molex 功能描述:Ethernet Cable Assembly
PCD-00173-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0K 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00174-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Red; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet ;RoHS Compliant: NA
PCD-00174-0E 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Grey; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet;RoHS Compliant: NA
PCD-00174-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY