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. 14 */ 15 16 #ifndef __SAL_INF_H__ 17 #define __SAL_INF_H__ 18 #include <hi_types.h> 19 HI_START_HEADER 20 #include <hi_sal.h> 21 #include <hi_task.h> 22 #include <hi_ft_nv.h> 23 #include <hi_mdm.h> 24 #include <hi_config.h> 25 26 typedef struct { 27 hi_bool enable_save; 28 hi_bool delay_over; 29 hi_bool has_save; 30 hi_u8 rsv; 31 hi_u32 rst_times; 32 hi_u32 handle; 33 } sal_rst_times_ctrl; 34 35 hi_u32 sal_rst_times_init(hi_void); 36 sal_rst_times_ctrl *sal_get_rst_times_ctrl(hi_void); 37 hi_u32 sal_uart_port_allocation(hi_uart_func_idx uart_func_id, hi_u8 *uart_id); 38 hi_void lp_sleep(hi_void); 39 40 HI_END_HEADER 41 #endif /* __SAL_INF_H__ */ 42 43