summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/dev/cam.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2025-07-28 23:27:12 +0200
committerUros Majstorovic <majstor@majstor.org>2025-07-28 23:27:12 +0200
commit58f41971b1e801ad2fbcea08e5152afa2b18ca73 (patch)
tree51793b55b350f7807d5d1b7e1401b50f402ccc48 /fw/fe310/eos/dev/cam.h
parentdab5a1fbd188f8f9436df1b3dff6e344c444fc23 (diff)
sys logging added; power management reimplemented; bugfixes;
Diffstat (limited to 'fw/fe310/eos/dev/cam.h')
-rw-r--r--fw/fe310/eos/dev/cam.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fw/fe310/eos/dev/cam.h b/fw/fe310/eos/dev/cam.h
index 5153464..b0e1368 100644
--- a/fw/fe310/eos/dev/cam.h
+++ b/fw/fe310/eos/dev/cam.h
@@ -2,6 +2,9 @@
#include "drv/ov2640.h"
#include "drv/arducam.h"
+#include "egpio.h"
+#include "egpio_priv.h"
+
#define eos_cam_init ov2640_init
#define eos_cam_set_pixfmt ov2640_set_pixfmt
#define eos_cam_set_framesize ov2640_set_pixfmt
@@ -12,3 +15,6 @@
#define eos_cam_fbuf_size arducam_fbuf_size
#define eos_cam_fbuf_read arducam_fbuf_read
#define eos_cam_fbuf_done arducam_fbuf_done
+
+#define eos_cam_en() eos_egpio_set_val(EGPIO_PIN_CAM_EN, 1)
+#define eos_cam_dis() eos_egpio_set_val(EGPIO_PIN_CAM_EN, 0)