|
Interface name | CMSIS interface function | Interface implementation in this article |
|
osThreadNew() | Create the thread | The thread control block is set by parameters. |
osThreadGetName() | Get thread name | Returns the thread name string |
osThreadGetId() | Get thread identifier | Returns the thread control block pointer of the corresponding thread |
osThreadGetState() | Get thread status | Return thread status |
osThreadGetStackSize() | Get thread stack size | Returns the thread stack size in the thread control block |
osThreadGetStackSpace() | Get stack free space | Called by the current thread to return the stack space |
osThreadSetPriority() | Set thread priority | Set thread priority. 2 priorities, corresponding to HRTT/SRTT, are supported |
osThreadGetPriority() | Get thread priority | Return thread priority |
osThreadSuspend() | Suspend the thread | Modify CSR_tmode, changes the thread state to suspend |
osThreadResume() | Wake up the thread | Modify CSR_tmode, changes the thread state to active |
osThreadDetach() | Set the properties to detached | Modify the detached attribute in the thread control block |
osThreadJoin() | Wait for the child thread to exit | Check the thread control block of the child to see if it exits |
osThreadExit() | Exit the thread | Exit current thread and enter the looping sleep state |
osThreadTerminate() | Terminate the thread | Make a thread sleep, but cannot change its control flow |
osThreadGetCount() | Get the number of active threads | Returns the number of currently active threads |
osThreadEnumerate() | Gets the active thread identifiers | Returns an array of currently active thread identifiers |
osDelay() | Thread sleeps for a period | Using set_compare and delay_until instruction to implement the semantics |
osDelayUntil() | Thread sleeps to a point in time | Using set_compare and delay_until instruction to implement the semantics |
|