mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 08:33:32 +08:00
[sensor] add LSC chip vendor
This commit is contained in:
parent
d3c77d907f
commit
d2bab6d7ad
@ -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 */
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user