Skip to content

Commit 0b00a02

Browse files
raiden00plxiaoxiang781216
authored andcommitted
sensors: add suffix _uorb to all sensors that use the new sensor framework
This'll make it easier to identify sensors supporting the new sensor approach
1 parent 40a2adf commit 0b00a02

14 files changed

+48
-32
lines changed

drivers/sensors/CMakeLists.txt

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,20 @@ if(CONFIG_SENSORS)
2929
list(APPEND SRCS sensor_rpmsg.c)
3030
endif()
3131

32+
if(CONFIG_SENSORS_GPS)
33+
list(APPEND SRCS gps_uorb.c)
34+
endif()
35+
3236
if(CONFIG_SENSORS_WTGAHRS2)
33-
list(APPEND SRCS wtgahrs2.c)
37+
list(APPEND SRCS wtgahrs2_uorb.c)
3438
endif()
3539

3640
if(CONFIG_SENSORS_FAKESENSOR)
37-
list(APPEND SRCS fakesensor.c)
41+
list(APPEND SRCS fakesensor_uorb.c)
42+
endif()
43+
44+
if(CONFIG_SENSORS_GOLDFISH_GPS)
45+
list(APPEND SRCS goldfish_gps_uorb.c)
3846
endif()
3947

4048
if(CONFIG_SENSORS_HCSR04)
@@ -78,7 +86,7 @@ if(CONFIG_SENSORS)
7886
endif()
7987

8088
if(CONFIG_SENSORS_HYT271)
81-
list(APPEND SRCS hyt271.c)
89+
list(APPEND SRCS hyt271_uorb.c)
8290
endif()
8391

8492
if(CONFIG_SENSORS_KXTJ9)
@@ -134,11 +142,11 @@ if(CONFIG_SENSORS)
134142
endif()
135143

136144
if(CONFIG_SENSORS_BMP280)
137-
list(APPEND SRCS bmp280.c)
145+
list(APPEND SRCS bmp280_uorb.c)
138146
endif()
139147

140148
if(CONFIG_SENSORS_BME680)
141-
list(APPEND SRCS bme680.c)
149+
list(APPEND SRCS bme680_uorb.c)
142150
endif()
143151

144152
if(CONFIG_SENSORS_ISL29023)
@@ -178,7 +186,7 @@ if(CONFIG_SENSORS)
178186
endif()
179187

180188
if(CONFIG_SENSORS_MS5611)
181-
list(APPEND SRCS ms5611.c)
189+
list(APPEND SRCS ms5611_uorb.c)
182190
endif()
183191

184192
if(CONFIG_SENSORS_MS58XX)
@@ -233,6 +241,10 @@ if(CONFIG_SENSORS)
233241
list(APPEND SRCS t67xx.c)
234242
endif()
235243

244+
if(CONFIG_SENSORS_LTR308)
245+
list(APPEND SRCS ltr308_uorb.c)
246+
endif()
247+
236248
endif() # CONFIG_I2C
237249

238250
# These drivers depend on SPI support
@@ -276,7 +288,7 @@ if(CONFIG_SENSORS)
276288
endif()
277289

278290
if(CONFIG_SENSORS_L3GD20)
279-
list(APPEND SRCS l3gd20.c)
291+
list(APPEND SRCS l3gd20_uorb.c)
280292
endif()
281293

282294
if(CONFIG_SENSORS_ADT7320)
@@ -294,7 +306,7 @@ if(CONFIG_SENSORS)
294306
if(CONFIG_1WIRE)
295307

296308
if(CONFIG_SENSORS_DS18B20)
297-
list(APPEND SRCS ds18b20.c)
309+
list(APPEND SRCS ds18b20_uorb.c)
298310
endif()
299311

300312
endif() # CONFIG_1WIRE
@@ -303,6 +315,10 @@ if(CONFIG_SENSORS)
303315
list(APPEND SRCS mpu60x0.c)
304316
endif()
305317

318+
if(CONFIG_SENSORS_MPU9250)
319+
list(APPEND SRCS mpu9250_uorb.c)
320+
endif()
321+
306322
# Quadrature encoder upper half
307323

308324
if(CONFIG_SENSORS_QENCODER)

drivers/sensors/Make.defs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ CSRCS += sensor_rpmsg.c
3333
endif
3434

3535
ifeq ($(CONFIG_SENSORS_GPS),y)
36-
CSRCS += gps.c
36+
CSRCS += gps_uorb.c
3737
endif
3838

3939
ifeq ($(CONFIG_SENSORS_WTGAHRS2),y)
40-
CSRCS += wtgahrs2.c
40+
CSRCS += wtgahrs2_uorb.c
4141
endif
4242

4343
ifeq ($(CONFIG_SENSORS_FAKESENSOR),y)
44-
CSRCS += fakesensor.c
44+
CSRCS += fakesensor_uorb.c
4545
endif
4646

4747
ifeq ($(CONFIG_SENSORS_GOLDFISH_GPS),y)
48-
CSRCS += goldfish_gps.c
48+
CSRCS += goldfish_gps_uorb.c
4949
endif
5050

5151
ifeq ($(CONFIG_SENSORS_HCSR04),y)
@@ -93,7 +93,7 @@ ifeq ($(CONFIG_SENSORS_FXOS8700CQ),y)
9393
endif
9494

9595
ifeq ($(CONFIG_SENSORS_HYT271),y)
96-
CSRCS += hyt271.c
96+
CSRCS += hyt271_uorb.c
9797
endif
9898

9999
ifeq ($(CONFIG_SENSORS_KXTJ9),y)
@@ -163,11 +163,11 @@ endif
163163
endif
164164

165165
ifeq ($(CONFIG_SENSORS_BMP280),y)
166-
CSRCS += bmp280.c
166+
CSRCS += bmp280_uorb.c
167167
endif
168168

169169
ifeq ($(CONFIG_SENSORS_BME680),y)
170-
CSRCS += bme680.c
170+
CSRCS += bme680_uorb.c
171171
endif
172172

173173
ifeq ($(CONFIG_SENSORS_ISL29023),y)
@@ -207,7 +207,7 @@ ifeq ($(CONFIG_SENSORS_MLX90614),y)
207207
endif
208208

209209
ifeq ($(CONFIG_SENSORS_MS5611),y)
210-
CSRCS += ms5611.c
210+
CSRCS += ms5611_uorb.c
211211
endif
212212

213213
ifeq ($(CONFIG_SENSORS_MS58XX),y)
@@ -263,7 +263,7 @@ ifeq ($(CONFIG_SENSORS_T67XX),y)
263263
endif
264264

265265
ifeq ($(CONFIG_SENSORS_LTR308),y)
266-
CSRCS += ltr308.c
266+
CSRCS += ltr308_uorb.c
267267
endif
268268

269269
endif # CONFIG_I2C
@@ -309,7 +309,7 @@ ifeq ($(CONFIG_SENSORS_LSM330SPI),y)
309309
endif
310310

311311
ifeq ($(CONFIG_SENSORS_L3GD20),y)
312-
CSRCS += l3gd20.c
312+
CSRCS += l3gd20_uorb.c
313313
endif
314314

315315
ifeq ($(CONFIG_SENSORS_ADT7320),y)
@@ -327,7 +327,7 @@ endif # CONFIG_SPI
327327
ifeq ($(CONFIG_1WIRE),y)
328328

329329
ifeq ($(CONFIG_SENSORS_DS18B20),y)
330-
CSRCS += ds18b20.c
330+
CSRCS += ds18b20_uorb.c
331331
endif
332332

333333
endif # CONFIG_1WIRE
@@ -337,7 +337,7 @@ ifeq ($(CONFIG_SENSORS_MPU60X0),y)
337337
endif
338338

339339
ifeq ($(CONFIG_SENSORS_MPU9250),y)
340-
CSRCS += mpu9250.c
340+
CSRCS += mpu9250_uorb.c
341341
endif
342342

343343
# Quadrature encoder upper half

drivers/sensors/bme680.c renamed to drivers/sensors/bme680_uorb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* drivers/sensors/bme680.c
2+
* drivers/sensors/bme680_uorb.c
33
*
44
* Licensed to the Apache Software Foundation (ASF) under one or more
55
* contributor license agreements. See the NOTICE file distributed with

drivers/sensors/bmp280.c renamed to drivers/sensors/bmp280_uorb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* drivers/sensors/bmp280.c
2+
* drivers/sensors/bmp280_uorb.c
33
*
44
* Licensed to the Apache Software Foundation (ASF) under one or more
55
* contributor license agreements. See the NOTICE file distributed with

drivers/sensors/ds18b20.c renamed to drivers/sensors/ds18b20_uorb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* drivers/sensors/ds18b20.c
2+
* drivers/sensors/ds18b20_uorb.c
33
* Character driver for DS18B20 Digital Humidity and Temperature Module.
44
*
55
* Licensed to the Apache Software Foundation (ASF) under one or more

drivers/sensors/fakesensor.c renamed to drivers/sensors/fakesensor_uorb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* drivers/sensors/fakesensor.c
2+
* drivers/sensors/fakesensor_uorb.c
33
*
44
* Licensed to the Apache Software Foundation (ASF) under one or more
55
* contributor license agreements. See the NOTICE file distributed with

drivers/sensors/goldfish_gps.c renamed to drivers/sensors/goldfish_gps_uorb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* drivers/sensors/goldfish_gps.c
2+
* drivers/sensors/goldfish_gps_uorb.c
33
*
44
* Licensed to the Apache Software Foundation (ASF) under one or more
55
* contributor license agreements. See the NOTICE file distributed with

drivers/sensors/gps.c renamed to drivers/sensors/gps_uorb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* drivers/sensors/gps.c
2+
* drivers/sensors/gps_uorb.c
33
*
44
* Licensed to the Apache Software Foundation (ASF) under one or more
55
* contributor license agreements. See the NOTICE file distributed with

drivers/sensors/hyt271.c renamed to drivers/sensors/hyt271_uorb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* drivers/sensors/hyt271.c
2+
* drivers/sensors/hyt271_uorb.c
33
* Character driver for HYT271 Digital Humidity and Temperature Module.
44
*
55
* Licensed to the Apache Software Foundation (ASF) under one or more

drivers/sensors/l3gd20.c renamed to drivers/sensors/l3gd20_uorb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* drivers/sensors/l3gd20.c
2+
* drivers/sensors/l3gd20_uorb.c
33
* Character driver for the ST L3GD20 3-Axis gyroscope.
44
*
55
* Licensed to the Apache Software Foundation (ASF) under one or more

0 commit comments

Comments
 (0)