Kernel Info and Control | |
|
| | Get RTOS Kernel Information. |
| | Get the current RTOS Kernel state. |
| | Get the RTOS kernel system timer count. |
| | Get the RTOS kernel system timer frequency. |
| | Initialize the RTOS Kernel. |
| | Lock the RTOS Kernel scheduler. |
| | Unlock the RTOS Kernel scheduler. |
| | Restore the RTOS Kernel scheduler lock state. |
| | Resume the RTOS Kernel scheduler. |
| | Start the RTOS Kernel scheduler. |
| | Suspend the RTOS Kernel scheduler. |
| | Get the RTOS kernel tick count. |
| | Get the RTOS kernel tick frequency. |
| |
|
| | Detach a thread (thread storage can be reclaimed when thread terminates). |
| | Enumerate active threads. |
| | Terminate execution of current running thread. |
| | Get number of active threads. |
| | Return the thread ID of the current running thread. |
| | |
| | Get current priority of a thread. |
| | Get stack size of a thread. |
| 在执行期间基于堆栈水印记录获取线程的可用堆栈空间。 | Get available stack space of a thread based on stack watermark recording during execution. |
| | Get current thread state of a thread. |
| | Wait for specified thread to terminate. |
| 创建一个线程并将其添加到Active Threads。 | Create a thread and add it to Active Threads. |
| | Resume execution of a thread. |
| | Change priority of a thread. |
| | Suspend execution of a thread. |
| | Terminate execution of a thread. |
| | Pass control to next thread that is in state READY. |
| |
|
| | Set the specified Thread Flags of a thread. |
| | Clear the specified Thread Flags of current running thread. |
| 获取当前正在运行的线程的当前Thread Flags。 | Get the current Thread Flags of current running thread. |
| 等待当前正在运行的线程的一个或多个线程标志变为信号。 | Wait for one or more Thread Flags of the current running thread to become signaled. |
| |
|
| | Get name of an Event Flags object. |
| | Create and Initialize an Event Flags object. |
| | Delete an Event Flags object. |
| | Set the specified Event Flags. |
| | Clear the specified Event Flags. |
| | Get the current Event Flags. |
| | Wait for one or more Event Flags to become signaled. |
| |
|
| | Wait for Timeout (Time Delay). |
| | Wait until specified time. |
| |
|
| | |
| | |
| | Check if a timer is running. |
| | Create and Initialize a timer. |
| | Start or restart a timer. |
| | |
| |
|
| | Acquire a Mutex or timeout if it is locked. |
| | |
| | Get name of a Mutex object. |
| | Get Thread which owns a Mutex object. |
| | Create and Initialize a Mutex object. |
| 释放由osMutexAcquire获取的Mutex。 | Release a Mutex that was acquired by osMutexAcquire. |
| |
|
| | Acquire a Semaphore token or timeout if no tokens are available. |
| | Delete a Semaphore object. |
| | Get current Semaphore token count. |
| | Get name of a Semaphore object. |
| | Create and Initialize a Semaphore object. |
| 释放由osSemaphoreAcquire获取的信号量令牌。 | Release a Semaphore token up to the initial maximum count. |
| |
|
| | Allocate a memory block from a Memory Pool. |
| | Delete a Memory Pool object. |
| | Return an allocated memory block back to a Memory Pool. |
| | Get memory block size in a Memory Pool. |
| | Get maximum number of memory blocks in a Memory Pool. |
| | Get number of memory blocks used in a Memory Pool. |
| | Get name of a Memory Pool object. |
| | Get number of memory blocks available in a Memory Pool. |
| | Create and Initialize a Memory Pool object. |
| |
|
| | Delete a Message Queue object. |
| | Get a Message from a Queue or timeout if Queue is empty. |
osMessageQueueGetCapacity | | Get maximum number of messages in a Message Queue. |
| | Get number of queued messages in a Message Queue. |
| | Get maximum message size in a Memory Pool. |
| | Get name of a Message Queue object. |
| | Get number of available slots for messages in a Message Queue. |
| | Create and Initialize a Message Queue object. |
| | Put a Message into a Queue or timeout if Queue is full. |
| | Reset a Message Queue to initial empty state. |
| |
|
| | Setup OS Tick timer to generate periodic RTOS Kernel Ticks. |
| | Enable OS Tick timer interrupt. |
| | Disable OS Tick timer interrupt. |
| | Acknowledge execution of OS Tick timer interrupt. |
| | Get OS Tick timer IRQ number. |
| | Get OS Tick timer clock frequency. |
| | Get OS Tick timer interval reload value. |
| | Get OS Tick timer counter value. |
| | Get OS Tick timer overflow status. |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
可以从线程和中断服务程序(ISR)调用以下CMSIS-RTOS2函数: osKernelGetSysTimerCount, osKernelGetSysTimerFreq osThreadFlagsSet osEventFlagsSet, osEventFlagsClear, osEventFlagsGet, osEventFlagsWait osSemaphoreAcquire, osSemaphoreRelease, osSemaphoreGetCount osMemoryPoolAlloc, osMemoryPoolFree, osMemoryPoolGetCapacity, osMemoryPoolGetBlockSize, osMemoryPoolGetCount, osMemoryPoolGetSpace osMessageQueuePut, osMessageQueueGet, osMessageQueueGetCapacity, osMessageQueueGetMsgSize, osMessageQueueGetCount, osMessageQueueGetSpace |
osKernelGetInfo, osKernelGetState, osKernelGetTickCount, osKernelGetTickFreq, osKernelGetSysTimerCount, osKernelGetSysTimerFreq osThreadGetId, osThreadFlagsSet osEventFlagsSet, osEventFlagsClear, osEventFlagsGet, osEventFlagsWait osSemaphoreAcquire, osSemaphoreRelease, osSemaphoreGetCount osMemoryPoolAlloc, osMemoryPoolFree, osMemoryPoolGetCapacity, osMemoryPoolGetBlockSize, osMemoryPoolGetCount, osMemoryPoolGetSpace osMessageQueuePut, osMessageQueueGet, osMessageQueueGetCapacity, osMessageQueueGetMsgSize, osMessageQueueGetCount, osMessageQueueGetSpace |