add support for the version info

This commit is contained in:
mculover666
2021-04-01 15:53:18 +08:00
parent 97fca5e4ed
commit 9d36cbeff9
3 changed files with 34 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ __weak void application_entry(void *arg)
int main(void)
{
board_init();
printf("Welcome to TencentOS tiny\r\n");
printf("Welcome to TencentOS tiny(%s)\r\n", TOS_VERSION);
osKernelInitialize(); // TOS Tiny kernel initialize
osThreadCreate(osThread(application_entry), NULL); // Create TOS Tiny task
osKernelStart(); // Start TOS Tiny