add 'TB600B_TVOC10' sensor of tvoc to sensor framework

This commit is contained in:
Wang_Weigen
2021-12-15 15:01:30 +08:00
parent 856edb7ec6
commit 19edea21d7
12 changed files with 354 additions and 5 deletions

View File

@@ -31,6 +31,7 @@ extern int Ps5308Pm1_0Init(void);
extern int Zg09Co2Init(void);
extern int As830Ch4Init(void);
extern int Tb600bIaq10IaqInit(void);
extern int Tb600bTvoc10TvocInit(void);
typedef int (*InitFunc)(void);
struct InitDesc
@@ -99,6 +100,10 @@ static struct InitDesc sensor_desc[] =
{ "iaq_tb600b_iaq10", Tb600bIaq10IaqInit },
#endif
#ifdef SENSOR_TB600B_TVOC10
{ "tvoc_tb600b_tvoc10", Tb600bTvoc10TvocInit },
#endif
{ "NULL", NULL },
};