閆剛 ygOS任務管理

2021-09-26 20:58:23 字數 476 閱讀 7269

task_manage.md

void  ygos_tcb_create (int prio, void (*task)(void *p_arg), void *p_arg, uint32_t  *ptos)
//作業系統初始化,為tcb分配記憶體空間,同時啟動空閒任務

ygos_init();

//建立使用者任務

ygos_tcb_create(0, task1_entry, (void*)0, &task1_stack[task1_statck_size]);

ygos_tcb_create(1, task2_entry, (void*)0, &task2_stack[task2_statck_size]);

//作業系統啟動,會觸發任務排程到最高優先順序的任務

ygos_start();

閆剛 nuttx workqueue實現原理

使用注意 nuttx wqueue.md 優點 最短時間排程 缺點 工作佇列執行完後,需要重新建立.static intwork qqueue far struct usr wqueue s wqueue,far struct work s work,worker t worker,far void...

閆剛 Android線性布局講解

file xml xmlns android android layout width match parent android layout height match parent android orientation vertical android id id button1 android...

閆剛 git版本控制tag使用

git tag使用 我們的軟體開發到某個階段,可以建立發行版本,現在gitee和github上的可以自動顯示你tag打包後的 發行版本,很方便。建立tag git tag a cct v1.1.0 beta m 新硬體v2,色溫模式 檢視tag git tag 推送tag到遠端分支 git push...