1 /* 2 // Copyright (C) 2022 Beken Corporation 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 "bk_private/legacy_init.h" 16 #include <stdio.h> 17 #include <os/os.h> 18 OHOS_SystemInit(void)19void __attribute__((weak)) OHOS_SystemInit(void) 20 { 21 os_printf("@NOOS@"); 22 return; 23 } 24 OHOS_TEST(void)25void __attribute__((weak)) OHOS_TEST(void) 26 { 27 } 28 29 extern void bk_set_printf_sync(uint8_t enable); 30 extern void shell_set_log_level(int level); 31 main(void)32int main(void) 33 { 34 bk_set_printf_sync(1); 35 shell_set_log_level(2); 36 legacy_init(); 37 OHOS_SystemInit(); 38 OHOS_TEST(); 39 40 return 0; 41 } 42