Functional Overview
rtos_wait(sem)
rtos_await(expre)
rtos_overrun(task)
rtos_stats(task,stat)
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.
Will return true if the given task over ran its alloted time.
Returns the specified statistic about the specified task.
The statistics include the minimum and maximum times
for the task to run and the total time the task has spent
running.
Relevant Preprocessor:
#USE RTOS(options)
#TASK(options)
#TASK
This directive is used to specify several different RTOS
attributes including the timer to use, the minor cycle time
and whether or not statistics should be enabled.
This directive tells the compiler that the following function
is to be an RTOS task.
specifies the rate at which the task should be called, the
maximum time the task shall be 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 will use timer zero, minor cycle will be 20ms
RTOS(timer=0,minor_cycle=20ms)
...
int sem;
...
#TASK(rate=1s,max=20ms,queue=5) // Task will run at a rate of once per second
void task_name();
rtos_run();
rtos_terminate();
rtos_enable(task_name);
// with a maximum running time of 20ms and
// a 5 byte queue
// begins the RTOS
// ends the RTOS
// enables the previously declared task.
55
相关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