project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp: Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem. sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately. sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades. sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for fastboot. Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
206 lines
2.9 KiB
C
206 lines
2.9 KiB
C
#ifndef __SENSOR_DEFINE_COMMON_H__
|
|
#define __SENSOR_DEFINE_COMMON_H__
|
|
|
|
struct meta_item
|
|
{
|
|
uint32_t tag;
|
|
int32_t len;
|
|
uint32_t crc32;
|
|
unsigned char data[0]; /* Just a way for get data */
|
|
};
|
|
|
|
typedef enum {
|
|
ALS_TYPE_NONE = 0,
|
|
ALS_TYPE_ANALOG = 1,
|
|
ALS_TYPE_DIGITAL = 2,
|
|
} eALS_TYPE;
|
|
|
|
#define GPIO_INVALID (-1)
|
|
|
|
typedef enum {
|
|
GPIO0_A0 = 0,
|
|
GPIO0_A1,
|
|
GPIO0_A2,
|
|
GPIO0_A3,
|
|
GPIO0_A4,
|
|
GPIO0_A5,
|
|
GPIO0_A6,
|
|
GPIO0_A7,
|
|
GPIO0_B0 = 8,
|
|
GPIO0_B1,
|
|
GPIO0_B2,
|
|
GPIO0_B3,
|
|
GPIO0_B4,
|
|
GPIO0_B5,
|
|
GPIO0_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