[sensor] add LSC chip vendor

This commit is contained in:
Meco Man 2022-12-23 23:07:29 -05:00 committed by Man, Jianting (Meco)
parent d3c77d907f
commit d2bab6d7ad
2 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,8 @@ extern "C" {
#define RT_SENSOR_VENDOR_MAXIM_STR "Maxim Integrated"
#define RT_SENSOR_VENDOR_MELEXIS (17)
#define RT_SENSOR_VENDOR_MELEXIS_STR "Melexis"
#define RT_SENSOR_VENDOR_LSC (18)
#define RT_SENSOR_VENDOR_LSC_STR "Lite On"
/* Sensor unit types */
#define RT_SENSOR_UNIT_NONE (0) /* Dimensionless quantity */

View File

@ -116,6 +116,8 @@ static const char *sensor_get_vendor_name(rt_sensor_info_t info)
return RT_SENSOR_MACRO_GET_NAME(RT_SENSOR_VENDOR_MAXIM);
case RT_SENSOR_VENDOR_MELEXIS:
return RT_SENSOR_MACRO_GET_NAME(RT_SENSOR_VENDOR_MELEXIS);
case RT_SENSOR_VENDOR_LSC:
return RT_SENSOR_MACRO_GET_NAME(RT_SENSOR_VENDOR_LSC);
case RT_SENSOR_VENDOR_UNKNOWN:
default:
return RT_SENSOR_MACRO_GET_NAME(RT_SENSOR_VENDOR_UNKNOWN);