1 /*
2 * Copyright (c) 2022 Winner Microelectronics Co., Ltd. All rights reserved.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 /*****************************************************************************
17 *
18 * File Name : main.c
19 *
20 * Description: main
21 *
22 * Copyright (c) 2014 Winner Micro Electronic Design Co., Ltd.
23 * All rights reserved.
24 *
25 * Author : dave
26 *
27 * Date : 2014-6-14
28 *****************************************************************************/
29
30 #include "devmgr_service_start.h"
31
UserMain(void)32 void UserMain(void)
33 {
34 printf("\n user task \n");
35
36 #if DEMO_CONSOLE
37 CreateDemoTask();
38 #endif
39
40 #if defined(LOSCFG_KERNEL_TEST_FULL) || defined(LOSCFG_KERNEL_TEST)
41 LosAppInit();
42 #else
43 if (DeviceManagerStart()) {
44 printf("[%s] No drivers need load by hdf manager!", __func__);
45 }
46 #endif
47 }