Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources

This commit is contained in:
2026-07-06 11:30:13 +08:00
commit e76462eeb7
3451 changed files with 1415300 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
#include "typesdef.h"
#include "g_sensor.h"
#include "tx_platform.h"
#include "list.h"
#include "dev.h"
#include "hal/i2c.h"
GSENSOR_INIT_SECTION const unsigned char da280InitTable[28]={
0x00,0x24,
0xFC,0X05, //delay 5ms
0x0f,0x03,
0x11,0x1e,
0x10,0x07,
0xFD,0x28, //delay 40us
0x20,0x05,
0x21,0x8f,
0x16,0x47,
0x27,0x03,
0x19,0x00,
0x21,0x87,
0x28,0x01,
-1,-1,
};
GSENSOR_INIT_SECTION const unsigned char da280prereadTable[11]={
0x01,
0xFC,0X05, //delay 5ms
0x09,
0xFC,0X05, //delay 5ms
0x19,
0xFC,0X05, //delay 5ms
-1,-1,
};
GSENSOR_OP_SECTION const _Gsensor_Adpt_ da280_cmd= {
.init = (uint8_t *)da280InitTable,
.preread = (uint8_t *)da280prereadTable,
.local_xyz = {0x02,0x03,0x04,0x05,0x06,0x07},
};
const _Gsensor_Ident_ da280_init=
{
0x13,0x4E,0x4F,0x01,0x01,0x01
};

View File

@@ -0,0 +1,36 @@
#include "typesdef.h"
#include "g_sensor.h"
#include "tx_platform.h"
#include "list.h"
#include "dev.h"
#include "hal/i2c.h"
GSENSOR_INIT_SECTION const unsigned char qma7981InitTable[28]={
0x36,0xb6,
0xFC,0X05, //delay 5ms
0x36,0x00,
0xFC,0X05, //delay 5ms
0x11,0x80,
0x0F,0x02,
0x10,0xE1,
-1,-1,
};
GSENSOR_OP_SECTION const _Gsensor_Adpt_ qma7981_cmd= {
.init = (uint8_t *)qma7981InitTable,
.local_xyz = {0x01,0x02,0x03,0x04,0x05,0x06},
};
const _Gsensor_Ident_ qma7981_init=
{
0xe7,0x26,0x27,0x01,0x01,0x00
};

View File

@@ -0,0 +1,35 @@
#include "typesdef.h"
#include "g_sensor.h"
#include "tx_platform.h"
#include "list.h"
#include "dev.h"
#include "hal/i2c.h"
GSENSOR_INIT_SECTION const unsigned char sc7a20InitTable[28]={
0X1F,0x00,
0x20,0x47,
0x21,0x00,
0x22,0x00,
0x23,0x88,
0xFC,0X05, //delay 5ms
-1,-1,
};
GSENSOR_OP_SECTION const _Gsensor_Adpt_ sc7a20_cmd= {
.init = (uint8_t *)sc7a20InitTable,
.local_xyz = {0x28,0x29,0x2a,0x2b,0x2c,0x2d},
};
const _Gsensor_Ident_ sc7a20_init=
{
0x11,0x32,0x33,0x01,0x01,0x0f
};