mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-26 12:50:30 +00:00
feat(isp): added isp sharp driver
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if CONFIG_ISP_ISR_IRAM_SAFE
|
||||
#if CONFIG_ISP_ISR_IRAM_SAFE || CONFIG_ISP_CTRL_FUNC_IN_IRAM
|
||||
#define ISP_INTR_ALLOC_FLAGS (ESP_INTR_FLAG_INTRDISABLED | ESP_INTR_FLAG_IRAM)
|
||||
#define ISP_MEM_ALLOC_CAPS (MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT)
|
||||
#else
|
||||
@@ -43,7 +43,6 @@ typedef enum {
|
||||
ISP_FSM_INIT, // Controller is initialized, but not enabled
|
||||
ISP_FSM_ENABLE, // Controller is enabled, but is not running
|
||||
ISP_FSM_START, // Controller is in running
|
||||
|
||||
ISP_FSM_ONESHOT, // Controller is in oneshot sampling
|
||||
ISP_FSM_CONTINUOUS, // Controller is in continuous sampling
|
||||
} isp_fsm_t;
|
||||
@@ -68,16 +67,21 @@ typedef struct isp_processor_t {
|
||||
/* sub module contexts */
|
||||
isp_af_ctlr_t af_ctlr[SOC_ISP_AF_CTLR_NUMS];
|
||||
isp_awb_ctlr_t awb_ctlr;
|
||||
isp_fsm_t bf_fsm;
|
||||
isp_ae_ctlr_t ae_ctlr;
|
||||
isp_fsm_t bf_fsm;
|
||||
isp_fsm_t sharpen_fsm;
|
||||
esp_isp_evt_cbs_t cbs;
|
||||
void *user_data;
|
||||
|
||||
/* ISR */
|
||||
intr_handle_t intr_hdl;
|
||||
int intr_priority;
|
||||
int isr_ref_counts;
|
||||
struct {
|
||||
uint32_t af_isr_added: 1;
|
||||
uint32_t ae_isr_added: 1;
|
||||
uint32_t awb_isr_added: 1;
|
||||
uint32_t af_isr_added: 1;
|
||||
uint32_t ae_isr_added: 1;
|
||||
uint32_t awb_isr_added: 1;
|
||||
uint32_t sharp_isr_added: 1;
|
||||
} isr_users;
|
||||
|
||||
} isp_processor_t;
|
||||
@@ -87,6 +91,7 @@ typedef enum {
|
||||
ISP_SUBMODULE_AF,
|
||||
ISP_SUBMODULE_AE,
|
||||
ISP_SUBMODULE_AWB,
|
||||
ISP_SUBMODULE_SHARPEN,
|
||||
} isp_submodule_t;
|
||||
|
||||
/*---------------------------------------------------------------
|
||||
@@ -97,6 +102,7 @@ esp_err_t esp_isp_deregister_isr(isp_proc_handle_t proc, isp_submodule_t submodu
|
||||
bool esp_isp_af_isr(isp_proc_handle_t proc, uint32_t af_events);
|
||||
bool esp_isp_ae_isr(isp_proc_handle_t proc, uint32_t ae_events);
|
||||
bool esp_isp_awb_isr(isp_proc_handle_t proc, uint32_t awb_events);
|
||||
bool esp_isp_sharpen_isr(isp_proc_handle_t proc, uint32_t sharp_events);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user