Files
CherryUSB/demo/phytium-e2000/usbhost/main.c
zhugengyu e2a4fb11d8 update
2022-09-22 22:12:09 +08:00

44 lines
1.2 KiB
C

/*
* Copyright : (C) 2022 Phytium Information Technology, Inc.
* All Rights Reserved.
*
* This program is OPEN SOURCE software: you can redistribute it and/or modify it
* under the terms of the Phytium Public License as published by the Phytium Technology Co.,Ltd,
* either version 1.0 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the Phytium Public License for more details.
*
*
* FilePath: main.c
* Date: 2022-06-17 08:17:59
* LastEditTime: 2022-06-17 08:17:59
* Description: This file is for c main entry
*
* Modify History:
* Ver Who Date Changes
* ----- ------ -------- --------------------------------------
* 1.0 zhugengyu 2022/9/20 init commit
*/
#include "shell.h"
#include "shell_port.h"
#include <stdio.h>
int main(void)
{
BaseType_t ret;
ret = LSUserShellTask();
if(ret != pdPASS)
goto FAIL_EXIT;
vTaskStartScheduler(); /* 启动任务,开启调度 */
while (1); /* 正常不会执行到这里 */
FAIL_EXIT:
printf("failed 0x%x \r\n", ret);
return 0;
}