1 /* 2 * Copyright (C) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 */ 18 19 #ifndef __DRV_GPIOI2C_H_ 20 #define __DRV_GPIOI2C_H_ 21 22 #include "hi_type.h" 23 24 #ifdef __cplusplus 25 #if __cplusplus 26 extern "C" { 27 #endif 28 #endif /* __cplusplus */ 29 30 hi_s32 drv_gpioi2c_config(hi_u32 i2c_num, hi_u32 which_gpio_clock, \ 31 hi_u32 which_gpio_data, hi_u32 clock_bit, hi_u32 data_bit); 32 hi_s32 drv_gpioi2c_is_used(hi_u32 i2c_num, hi_bool *b_used); 33 34 int *get_var_i2c_mode(void); 35 36 #ifdef __cplusplus 37 #if __cplusplus 38 } 39 #endif 40 #endif /* __cplusplus */ 41 42 #endif 43