• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2022 Beken Corporation
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #pragma once
16 
17 #include <components/log.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #define CAMERA_TAG "camera"
24 #define CAMERA_LOGI(...) BK_LOGI(CAMERA_TAG, ##__VA_ARGS__)
25 #define CAMERA_LOGW(...) BK_LOGW(CAMERA_TAG, ##__VA_ARGS__)
26 #define CAMERA_LOGE(...) BK_LOGE(CAMERA_TAG, ##__VA_ARGS__)
27 #define CAMERA_LOGD(...) BK_LOGD(CAMERA_TAG, ##__VA_ARGS__)
28 
29 
30 #define PAS6329_DEV             (0xABC00)  /**< sensor flag value */
31 #define OV_7670_DEV             (0xABC01)
32 #define PAS6375_DEV             (0xABC02)
33 #define GC0328C_DEV             (0xABC03)
34 #define BF_2013_DEV             (0xABC04)
35 #define GC0308C_DEV             (0xABC05)
36 #define HM_1055_DEV             (0xABC06)
37 #define GC_2145_DEV             (0xABC07)
38 #define OV_2640_DEV             (0xABC08)
39 
40 
41 #define PAS6329_DEV_ID          (0x40)
42 #define OV_7670_DEV_ID          (0x21)
43 #define PAS6375_DEV_ID          (0x40)
44 #define GC0328C_DEV_ID          (0x21)      /**< slave_address:0x42 */
45 #define BF_2013_DEV_ID          (0x6e)
46 #define GC0308C_DEV_ID          (0x21)
47 #define HM_1055_DEV_ID          (0x24)      /**< slave_address:0x48 */
48 #define GC_2145_DEV_ID          (0x3C)
49 #define OV_2640_DEV_ID          (0x30)
50 
51 #ifdef __cplusplus
52 }
53 #endif