• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Talkweb Co., Ltd.
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 #include <stdio.h>
16 #include "ohos_run.h"
17 #include "program_version.h"
18 
welcome_info(void)19 void welcome_info(void)
20 {
21     printf("*************************************************************\n");
22     printf("\n");
23     printf("████████╗ █████╗ ██╗     ██╗  ██╗██╗    ██╗███████╗██████╗\n");
24     printf("╚══██╔══╝██╔══██╗██║     ██║ ██╔╝██║    ██║██╔════╝██╔══██╗\n");
25     printf("   ██║   ███████║██║     █████╔╝ ██║ █╗ ██║█████╗  ██████╔╝\n");
26     printf("   ██║   ██╔══██║██║     ██╔═██╗ ██║███╗██║██╔══╝  ██╔══██╗\n");
27     printf("   ██║   ██║  ██║███████╗██║  ██╗╚███╔███╔╝███████╗██████╔╝\n");
28     printf("   ╚═╝   ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝ ╚══╝╚══╝ ╚══════╝╚═════╝\n");
29     printf("\n");
30     printf("         Welcome to use Niobe407 development board!\n");
31     printf("             Hardware version: "APP_VERSION"\n");
32     printf("             Software version: "HW_VERSION"\n");
33     printf("*************************************************************\n");
34 }
35 
run_sys_before(void)36 void run_sys_before(void)
37 {
38     welcome_info();
39 
40     /* Run code before openharmony run */
41 }
42 
43 BEFORE_OHOS_RUN(run_sys_before);