forked from xuos/xiuos
add camera driver and examples for edu-riscv64
This commit is contained in:
@@ -173,6 +173,7 @@ int PrivIoctl(int fd, int cmd, void *args)
|
||||
case ADC_TYPE:
|
||||
case DAC_TYPE:
|
||||
case WDT_TYPE:
|
||||
case CAMERA_TYPE:
|
||||
ret = ioctl(fd, cmd, ioctl_cfg->args);
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -150,9 +150,18 @@ enum IoctlDriverType
|
||||
DAC_TYPE,
|
||||
WDT_TYPE,
|
||||
RTC_TYPE,
|
||||
CAMERA_TYPE,
|
||||
DEFAULT_TYPE,
|
||||
};
|
||||
|
||||
|
||||
struct DvpRegConfigureInfo
|
||||
{
|
||||
uint8_t device_addr;
|
||||
uint16_t reg_addr;
|
||||
uint8_t reg_value;
|
||||
} ;
|
||||
|
||||
struct PrivIoctlCfg
|
||||
{
|
||||
enum IoctlDriverType ioctl_driver_type;
|
||||
@@ -180,6 +189,18 @@ typedef struct
|
||||
void* pixel_color;
|
||||
}LcdPixelParam;
|
||||
|
||||
struct CameraCfg
|
||||
{
|
||||
uint16_t window_w;
|
||||
uint16_t window_h;
|
||||
uint16_t window_xoffset;
|
||||
uint16_t window_yoffset;
|
||||
uint16_t output_w;
|
||||
uint16_t output_h;
|
||||
uint8_t gain;
|
||||
uint8_t gain_manu_enable;
|
||||
};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char type; // 0:write string;1:write dot
|
||||
|
||||
Reference in New Issue
Block a user