Просмотр исходного кода

add: camera,添加一个日志级别的配置变量

Wendal Chen 4 месяцев назад
Родитель
Сommit
79588864b5
2 измененных файлов с 10 добавлено и 0 удалено
  1. 8 0
      components/camera/luat_camera.c
  2. 2 0
      components/camera/luat_camera.h

+ 8 - 0
components/camera/luat_camera.c

@@ -0,0 +1,8 @@
+
+#include "luat_base.h"
+#include "luat_camera.h"
+
+#define LUAT_LOG_TAG "camera"
+#include "luat_log.h"
+
+int32_t g_camera_log_level = LUAT_LOG_WARN;

+ 2 - 0
components/camera/luat_camera.h

@@ -212,5 +212,7 @@ int luat_camera_config(int id, int key, int value);
 void luat_camera_reset_pin(int id, uint8_t level);
 
 void luat_camera_pwdn_pin(int id, uint8_t level);
+
+extern int32_t g_camera_log_level;
 /** @}*/
 #endif