Files
carbon 0545e9dc6d init version 2024-05-07
commit d1edce71135cc6d98c0a4b5729774542b676e769
Author: sophgo-forum-service <forum_service@sophgo.com>
Date:   Fri Mar 15 16:07:33 2024 +0800

    [fix] recommend using ssh method to clone repo.
    [fix] fix sensor driver repo branch name.
2024-05-07 19:36:36 +08:00

20 lines
355 B
C

#ifndef __GPIO_H__
#define __GPIO_H__
#include <stddef.h>
#include <stdint.h>
#define CVI_GPIOA_BASE 0x03020000
#define CVI_GPIOB_BASE 0x03021000
#define CVI_GPIOC_BASE 0x03022000
#define CVI_GPIOD_BASE 0x03023000
enum of_gpio_flags {
OF_GPIO_ACTIVE_LOW = 0x1
};
int gpio_is_valid(int pin);
void gpio_direction_output(int pin, int val);
#endif