/* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef AOS_GPIOC_CSI_H #define AOS_GPIOC_CSI_H #include #include #define AOS_GPIOC_CSI_MAX_NUM_PINS (sizeof(uint32_t) * 8) typedef struct { aos_gpioc_t gpioc; aos_gpioc_pin_t pins[AOS_GPIOC_CSI_MAX_NUM_PINS]; uint32_t modes[AOS_GPIOC_CSI_MAX_NUM_PINS]; csi_gpio_t csi_gpio; /* must be initialized before registration */ uint32_t default_input_cfg; uint32_t default_output_cfg; } aos_gpioc_csi_t; #ifdef __cplusplus extern "C" { #endif aos_status_t aos_gpioc_csi_register(aos_gpioc_csi_t *gpioc_csi); aos_status_t aos_gpioc_csi_unregister(uint32_t id); #ifdef __cplusplus } #endif #endif /* AOS_GPIOC_CSI_H */