File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
components/drivers/sensors Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ extern "C" {
6363#define RT_SENSOR_VENDOR_SENSIRION (10) /* Sensirion */
6464#define RT_SENSOR_VENDOR_TI (11) /* Texas Instruments */
6565#define RT_SENSOR_VENDOR_PLANTOWER (12) /* Plantower */
66+ #define RT_SENSOR_VENDOR_AMS (13) /* ams AG */
6667
6768
6869/* Sensor unit types */
@@ -81,6 +82,8 @@ extern "C" {
8182#define RT_SENSOR_UNIT_BPM (11) /* Heart rate unit: bpm */
8283#define RT_SENSOR_UNIT_MM (12) /* Distance unit: mm */
8384#define RT_SENSOR_UNIT_MN (13) /* Force unit: mN */
85+ #define RT_SENSOR_UNIT_PPM (14) /* Concentration unit: ppm */
86+ #define RT_SENSOR_UNIT_PPB (15) /* Concentration unit: ppb */
8487
8588/* Sensor communication interface types */
8689
Original file line number Diff line number Diff line change @@ -335,6 +335,9 @@ static void sensor(int argc, char **argv)
335335 case RT_SENSOR_VENDOR_PLANTOWER :
336336 rt_kprintf ("vendor :Plantower\n" );
337337 break ;
338+ case RT_SENSOR_VENDOR_AMS :
339+ rt_kprintf ("vendor :AMS\n" );
340+ break ;
338341 }
339342 rt_kprintf ("model :%s\n" , info .model );
340343 switch (info .unit )
@@ -381,6 +384,12 @@ static void sensor(int argc, char **argv)
381384 case RT_SENSOR_UNIT_MN :
382385 rt_kprintf ("unit :mN\n" );
383386 break ;
387+ case RT_SENSOR_UNIT_PPM :
388+ rt_kprintf ("unit :ppm\n" );
389+ break ;
390+ case RT_SENSOR_UNIT_PPB :
391+ rt_kprintf ("unit :ppb\n" );
392+ break ;
384393 }
385394 rt_kprintf ("range_max :%d\n" , info .range_max );
386395 rt_kprintf ("range_min :%d\n" , info .range_min );
You can’t perform that action at this time.
0 commit comments