1 /** 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 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. \n 14 * Licensed under the Apache License, Version 2.0 (the "License"); 15 * you may not use this file except in compliance with the License. 16 * You may obtain a copy of the License at 17 * 18 * http://www.apache.org/licenses/LICENSE-2.0 19 * 20 * Unless required by applicable law or agreed to in writing, software 21 * distributed under the License is distributed on an "AS IS" BASIS, 22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 23 * See the License for the specific language governing permissions and 24 * limitations under the License. * 25 * Description: Provides the entries for initializing and starting services and features. \n 26 */ 27 #include "app_init.h" 28 29 extern init_call_t __zinitcall_app_run_start; 30 extern init_call_t __zinitcall_app_run_end; 31 app_tasks_init(void)32void app_tasks_init(void) 33 { 34 init_call_t *initcall = &__zinitcall_app_run_start; 35 init_call_t *initend = &__zinitcall_app_run_end; 36 for (; initcall < initend; initcall++) { 37 (*initcall)(); 38 } 39 } 40 system_init(void)41__attribute__((weak)) void system_init(void) 42 { 43 } 44