Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources
This commit is contained in:
22
sdk/include/dev/lcdc/hgdsi.h
Normal file
22
sdk/include/dev/lcdc/hgdsi.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef HG_DSI_H
|
||||
#define HG_DSI_H
|
||||
#include "tx_platform.h"
|
||||
#include "list.h"
|
||||
#include "dev.h"
|
||||
#include "hal/dsi.h"
|
||||
|
||||
|
||||
struct hgdsi {
|
||||
struct dsi_device dev;
|
||||
uint32 hw;
|
||||
dsi_irq_hdl irq_hdl;
|
||||
uint32 irq_data;
|
||||
uint32 irq_num;
|
||||
uint32 opened:1, use_dma:1;
|
||||
};
|
||||
|
||||
|
||||
int32 hgdsi_attach(uint32 dev_id, struct hgdsi *dsi);
|
||||
|
||||
|
||||
#endif
|
||||
30
sdk/include/dev/lcdc/hglcdc.h
Normal file
30
sdk/include/dev/lcdc/hglcdc.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef HG_LCDC_H
|
||||
#define HG_LCDC_H
|
||||
#include "tx_platform.h"
|
||||
#include "list.h"
|
||||
#include "dev.h"
|
||||
#include "hal/lcdc.h"
|
||||
|
||||
|
||||
typedef enum {
|
||||
LCD_DONE_IRQ,
|
||||
LCD_TE_IRQ,
|
||||
OSD_EN_IRQ,
|
||||
SCREEN_DONE_IRQ = OSD_EN_IRQ,
|
||||
TIMEOUT_IRQ,
|
||||
LCD_IRQ_NUM
|
||||
}LCD_IRQ_E;
|
||||
|
||||
|
||||
struct hglcdc {
|
||||
struct lcdc_device dev;
|
||||
uint32 hw;
|
||||
lcdc_irq_hdl irq_hdl;
|
||||
uint32 irq_data;
|
||||
uint32 irq_num;
|
||||
uint32 opened:1, use_dma:1, dsleep:1;
|
||||
uint32 *cfg_backup;
|
||||
};
|
||||
int32 hglcdc_attach(uint32 dev_id, struct hglcdc *lcdc);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user