1、添加OS宏

2、修正Board.h的格式
3、Main函数中ThreadX的入口函数名字修改
This commit is contained in:
2025-07-01 21:32:04 +08:00
parent 2b2747fef7
commit b808fe17ad
3 changed files with 42 additions and 37 deletions

View File

@@ -42,6 +42,8 @@ void LedCtlTask(ULONG ThreadXInput)
while (true)
{
IoCtlLedToggle(LED0);
IoCtlLedToggle(LED1);
IoCtlLedToggle(LED2);
tx_thread_sleep(100);
}

View File

@@ -14,7 +14,7 @@
* @note 此函数应该将所有OS相关的初始化放到这里
* @example void
*/
void tx_application_define(void* FirstUnusedMemory)
void ThreadXTaskInit(void* FirstUnusedMemory)
{
/* 优先级31抢占10 */
LedCtlTaskInit(31,10);