PCD
printf(“enter a character”);
/* get a character */
if (kbhit())
c = getc();
//check if a character has been received
//read character from UART
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)
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.
54
相关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