
回复
@[toc]
接口名 | 功能描述 |
---|---|
osThreadNew | 创建任务 |
osThreadTerminate | 删除某个任务(一般是对非自任务操作) |
osThreadSuspend | 任务挂起 |
osThreadResume | 任务恢复 |
osThreadNew(osThreadFunc_t func,void * argument,const osThreadAttr_t * attr)
osThreadTerminate(osThreadld_t thread_id);
osThreadSuspend(osThreadld_t thread_id)
osThreadResume (osThreadld_t thread_id)
接口名 | 功能描述 |
---|---|
osTimerNew | 创建定时器 |
osTimerStart | 启动定时器 |
osTimerStop | 停止定时器 |
osTimerDelete | 删除定时器 |
osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr t *attr);
osTimerStart (osTimerld_t timer_id, uint32_t ticks);
osTimerStop (osTimerld_t timer_id);
osTimerDelete (osTimerld_t timer_id);