在main.c中包含threadx头文件:
/* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include #include "tx_api.h" /* USER CODE END Includes */ 然后在main函数中初始化部分之后启动内核:
/* USER CODE BEGIN 2 */ printf("threadX RTOS on BearPi IoT Boardrn"); /* Enter the ThreadX kernel. */ tx_kernel_enter( ); /* USER CODE END 2 */ 编译,下载,在串口终端查看系统运行结果:
在main.c中包含threadx头文件:
/* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include #include "tx_api.h" /* USER CODE END Includes */ 然后在main函数中初始化部分之后启动内核:
/* USER CODE BEGIN 2 */ printf("threadX RTOS on BearPi IoT Boardrn"); /* Enter the ThreadX kernel. */ tx_kernel_enter( ); /* USER CODE END 2 */ 编译,下载,在串口终端查看系统运行结果: