feat(isp): added isp driver framework and isp af driver

This commit is contained in:
Armando
2024-04-01 09:30:07 +08:00
parent 1ed64afddd
commit bf1275d700
26 changed files with 1627 additions and 4 deletions
@@ -73,6 +73,7 @@ esp_err_t mipi_csi_brg_declaim(int id)
s_ctx.ref_cnt[id]--;
if (s_ctx.ref_cnt[id] < 0) {
s_ctx.ref_cnt[id] = 0;
portEXIT_CRITICAL(&s_ctx.spinlock);
ESP_LOGE(TAG, "%s called, but s_ctx.ref_cnt[%d] == 0", __func__, id);
return ESP_ERR_INVALID_STATE;