01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

● Interrupt_0xAD_function_0x1A:_RTX_SIGNAL_SEM, Signal a counting semaphore<br />

● Interrupt_0xAD_function_0x1B:_RTX_WAIT_SEM, Wait on a counting semaphore<br />

● Interrupt_0xAD_function_0x1C:_RTX_FIND_SEM, Find semaphore by name<br />

● Interrupt_0xAD_function_0x28:_RTX_GET_TIMEDATE, Get system time and date<br />

● Interrupt_0xAD_function_0x29:_RTX_SET_TIMEDATE, Set system time and date<br />

● Interrupt_0xAD_function_0x2A:_RTX_GET_TICKS, Get tick count of system clock<br />

● Interrupt_0xAD_function_0x09:_RTX_ACCESS_FILESYSTEM, Enable file access in task<br />

● Interrupt_0xAD_function_0x0A:_RTX_GET_TASK_STATE, Get state of a task<br />

● Interrupt_0xAD_function_0x0B:_RTX_GET_TASK_LIST, Get list of tasks<br />

● Interrupt_0xAD_function_0x0C:_RTX_START_TASK_MONITOR, Enable task monitoring<br />

● Interrupt_0xAD_function_0x0D:_RTX_STOP_TASK_MONITOR, Disable task monitoring<br />

● Interrupt_0xAD_function_0x0E:_RTX_SUSPEND_TASK, Suspend a task<br />

● Interrupt_0xAD_function_0x0F:_RTX_RESUME_TASK, Resume a task<br />

● Interrupt_0xAD_function_0x10:_RTX_RESTART_TASK, Start task<br />

● Interrupt_0xAD_function_0x12:_RTX_GET_TASK_STATE_EXT, Get task state<br />

● Interrupt_0xAD_function_0x20:_RTX_DISABLE_TASK_SCHEDULING, Task Lock<br />

● Interrupt_0xAD_function_0x21:_RTX_ENABLE_TASK_SCHEDULING, Release Task Lock<br />

● Interrupt_0xAD_function_0x30:_RTX_INSTALL_TIMER, Install a timer procedure<br />

● Interrupt_0xAD_function_0x31:_RTX_REMOVE_TIMER, Remove a timer procedure<br />

● Interrupt_0xAD_function_0x32:_RTX_START_TIMER, Start periodic timer procedure<br />

● Interrupt_0xAD_function_0x33:_RTX_STOP_TIMER, Stop execution of a timer procedure<br />

● Interrupt_0xAD_function_0x40:_RTX_CREATE_EVENTGROUP, Create an event group<br />

● Interrupt_0xAD_function_0x41:_RTX_DELETE_EVENTGROUP, Delete an event group<br />

● Interrupt_0xAD_function_0x42:_RTX_SIGNAL_EVENTS, Signal event(s) in a group<br />

● Interrupt_0xAD_function_0x43:_RTX_WAIT_EVENTS, Wait for events in a group<br />

● Interrupt_0xAD_function_0x44:_RTX_GET_EVENTGROUP_STATE, Read the event states<br />

● Interrupt_0xAD_function_0x45:_RTX_GET_EVENT_FLAGS, Get the saved event flags<br />

● Interrupt_0xAD_function_0x46:_RTX_FIND_EVENTGROUP, Find an event group<br />

● Interrupt_0xAD_function_0x50:_RTX_CREATE_MSG, Create a Message Exchange<br />

● Interrupt_0xAD_function_0x51:_RTX_DELETE_MSG, Delete a Message Exchange<br />

● Interrupt_0xAD_function_0x52:_RTX_SEND_MSG, Send message<br />

● Interrupt_0xAD_function_0x53:_RTX_GET_MSG, Poll Message Exchange<br />

● Interrupt_0xAD_function_0x54:_RTX_WAIT_MSG, Wait for a message<br />

● Interrupt_0xAD_function_0x55:_RTX_FIND_MSG, Find a Message Exchange<br />

At return from most of the API calls, the DX-Register is used for error checking as follows:<br />

DX: 0 RTX_ENOERROR... success<br />

DX: -1 RTX_ERROR ... error, AX contains error code<br />

DX: -2 RTX_NOT_SUPPORTED ... service is not supported by the API<br />

All needed constants and data structures for use with the <strong>RTOS</strong> API are defined in header file rtxapi.h. For a<br />

better understanding of the <strong>RTOS</strong> API, some example programs written in C are provided. The user should<br />

read these example and modify them for your own applications.<br />

Interrupt 0xAD service 0x00: RTX_SLEEP_TIME, Sleep for a specified time<br />

Parameters<br />

Page 184 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!