first commit
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
/* MCU INCLUDE */
|
||||
#include "stm32f10x.h"
|
||||
/* BSP INCLUDE */
|
||||
#include "Bsp.h"
|
||||
/* APP INLCUDE */
|
||||
#include "LedTest.h"
|
||||
|
||||
/**
|
||||
* @brief ThreadX操作系统入口函数
|
||||
* @param FirstUnusedMemory OS相关
|
||||
* @retval void
|
||||
* @note 此函数应该将所有OS相关的初始化放到这里
|
||||
* @example void
|
||||
*/
|
||||
void ThreadXTaskInit(void* FirstUnusedMemory)
|
||||
{
|
||||
/* 优先级31,抢占10 */
|
||||
LedCtlTaskInit(31,10);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief C程序主函数
|
||||
* @param void
|
||||
* @retval void
|
||||
* @note void
|
||||
* @example void
|
||||
*/
|
||||
int main(void)
|
||||
{
|
||||
//bsp初始化
|
||||
BspConfigInit();
|
||||
|
||||
/* Start ThreadX */
|
||||
tx_kernel_enter();
|
||||
|
||||
while (true)
|
||||
{
|
||||
//程序运行到这里说明OS调度运行失败
|
||||
printf("OS Start Error !\n");
|
||||
DelayMs(1000);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user