1 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <string.h> 5 #include "aos/kernel.h" 6 #include "sensor_hal.h" 7 sensor_drv_init()8void sensor_drv_init() 9 { 10 #if AOS_SENSOR_TEMP_SI_SI7006 11 drv_temp_si_si7006_init(); 12 #endif 13 14 #if AOS_SENSOR_HUMI_SI_SI7006 15 drv_humi_si_si7006_init(); 16 #endif 17 18 #if AOS_SENSOR_ACC_ADI_ADXL372 19 drv_acc_adi_adxl372_init(); 20 #endif 21 22 #if AOS_SENSOR_ACC_ADI_ADXL345 23 drv_acc_adi_adxl345_init(); 24 #endif 25 26 #if AOS_SENSOR_ACC_ADI_ADXL355 27 drv_acc_adi_adxl355_init(); 28 #endif 29 30 #if AOS_SENSOR_ACC_BOSCH_BMA253 31 drv_acc_bosch_bma253_init(); 32 #endif 33 34 #if AOS_SENSOR_ACC_BOSCH_BMA280 35 drv_acc_bosch_bma280_init(); 36 #endif 37 38 #if AOS_SENSOR_ACC_BOSCH_BMA421 39 drv_acc_bosch_bma421_init(); 40 #endif 41 42 #if AOS_SENSOR_ACC_BOSCH_BMA422 43 drv_acc_bosch_bma422_init(); 44 #endif 45 46 #if AOS_SENSOR_ACC_BOSCH_BMA455 47 drv_acc_bosch_bma455_init(); 48 #endif 49 50 #if AOS_SENSOR_ACC_BOSCH_BMA456 51 drv_acc_bosch_bma456_init(); 52 #endif 53 54 #if AOS_SENSOR_ACC_BOSCH_BMI055 55 drv_acc_bosch_bmi055_init(); 56 #endif 57 #if AOS_SENSOR_ACC_BOSCH_BMI088 58 drv_acc_bosch_bmi088_init(); 59 #endif 60 #if AOS_SENSOR_ACC_BOSCH_BMI120 61 drv_acc_bosch_bmi120_init(); 62 #endif 63 #if AOS_SENSOR_ACC_BOSCH_BMI160 64 drv_acc_bosch_bmi160_init(); 65 #endif 66 #if AOS_SENSOR_ACC_BOSCH_BMI260 67 drv_acc_bosch_bmi260_init(); 68 #endif 69 #if AOS_SENSOR_ACC_SENODIA_SH200L 70 drv_acc_senodia_sh200l_init(); 71 #endif 72 #if AOS_SENSOR_ACC_SENODIA_SH200Q 73 drv_acc_senodia_sh200q_init(); 74 #endif 75 #if AOS_SENSOR_ACC_ST_LSM6DS3 76 drv_acc_st_lsm6ds3_init(); 77 #endif 78 #if AOS_SENSOR_ACC_ST_LSM6DS3TR_C 79 drv_acc_st_lsm6ds3tr_c_init(); 80 #endif 81 #if AOS_SENSOR_ACC_ST_LSM6DSL 82 drv_acc_st_lsm6dsl_init(); 83 #endif 84 85 #if AOS_SENSOR_ACC_ST_LSM6DSM 86 drv_acc_st_lsm6dsm_init(); 87 #endif 88 89 #if AOS_SENSOR_ACC_ST_LSM6DSOQ 90 drv_acc_st_lsm6dsoq_init(); 91 #endif 92 93 #if AOS_SENSOR_ACC_ST_LSM6DSR 94 drv_acc_st_lsm6dsr_init(); 95 #endif 96 97 #if AOS_SENSOR_ACC_ST_LSM303AGR 98 drv_acc_st_lsm303agr_init(); 99 #endif 100 101 #if AOS_SENSOR_ACC_MIR3_DA213B 102 drv_acc_mir3_da213B_init(); 103 #endif 104 105 #if AOS_SENSOR_ACC_MIR3_DA215 106 drv_acc_mir3_da215_init(); 107 #endif 108 109 #if AOS_SENSOR_ACC_MIR3_DA217 110 drv_acc_mir3_da217_init(); 111 #endif 112 113 #if AOS_SENSOR_ACC_MIR3_DA270 114 drv_acc_mir3_da270_init(); 115 #endif 116 117 #if AOS_SENSOR_ACC_MIR3_DA312B 118 drv_acc_mir3_da213B_init(); 119 #endif 120 121 #if AOS_SENSOR_ACC_MIR3_DA380B 122 drv_acc_mir3_da380B_init(); 123 #endif 124 125 #if AOS_SENSOR_ACC_ST_AIS328DQ 126 drv_acc_st_ais328dq_init(); 127 #endif 128 129 #if AOS_SENSOR_ACC_ST_H3LIS100DL 130 drv_acc_st_h3lis100dl_init(); 131 #endif 132 133 #if AOS_SENSOR_ACC_ST_H3LIS331DL 134 drv_acc_st_h3lis331dl_init(); 135 #endif 136 137 #if AOS_SENSOR_ACC_ST_LIS2DH12 138 drv_acc_st_lis2dh12_init(); 139 #endif 140 141 #if AOS_SENSOR_ACC_ST_LIS2DW12 142 drv_acc_st_lis2dw12_init(); 143 #endif 144 145 #if AOS_SENSOR_ACC_ST_LIS2HH12 146 drv_acc_st_lis2hh12_init(); 147 #endif 148 149 #if AOS_SENSOR_ACC_ST_LIS3DH 150 drv_acc_st_lis3dh_init(); 151 #endif 152 153 #if AOS_SENSOR_ACC_ST_LIS331HH 154 drv_acc_st_lis331hh_init(); 155 #endif 156 157 #if AOS_SENSOR_ACC_ST_N2DM 158 drv_acc_st_n2dm_init(); 159 #endif 160 161 #if AOS_SENSOR_GYRO_BOSCH_BMI055 162 drv_gyro_bosch_bmi055_init(); 163 #endif 164 165 #if AOS_SENSOR_GYRO_BOSCH_BMI088 166 drv_gyro_bosch_bmi088_init(); 167 #endif 168 169 #if AOS_SENSOR_GYRO_BOSCH_BMI120 170 drv_gyro_bosch_bmi120_init(); 171 #endif 172 173 #if AOS_SENSOR_GYRO_BOSCH_BMI160 174 drv_gyro_bosch_bmi160_init(); 175 #endif 176 177 #if AOS_SENSOR_GYRO_BOSCH_BMI260 178 drv_gyro_bosch_bmi260_init(); 179 #endif 180 181 #if AOS_SENSOR_GYRO_SENODIA_SH200L 182 drv_gyro_senodia_sh200l_init(); 183 #endif 184 185 #if AOS_SENSOR_GYRO_SENODIA_SH200Q 186 drv_gyro_senodia_sh200q_init(); 187 #endif 188 189 #if AOS_SENSOR_GYRO_ST_LSM6DS3 190 drv_gyro_st_lsm6ds3_init(); 191 #endif 192 193 #if AOS_SENSOR_GYRO_ST_LSM6DS3TR_C 194 drv_gyro_st_lsm6ds3tr_c_init(); 195 #endif 196 197 #if AOS_SENSOR_GYRO_ST_LSM6DSL 198 drv_gyro_st_lsm6dsl_init(); 199 #endif 200 201 #if AOS_SENSOR_GYRO_ST_LSM6DSM 202 drv_gyro_st_lsm6dsm_init(); 203 #endif 204 205 #if AOS_SENSOR_GYRO_ST_LSM6DSOQ 206 drv_gyro_st_lsm6dsoq_init(); 207 #endif 208 #if AOS_SENSOR_GYRO_ST_LSM6DSR 209 drv_gyro_st_lsm6dsr_init(); 210 #endif 211 #if AOS_SENSOR_GYRO_BOSCH_BMG160 212 drv_gyro_bosch_bmg160_init(); 213 #endif 214 #if AOS_SENSOR_GYRO_ST_A3G4250D 215 drv_gyro_st_a3g4250d_init(); 216 #endif 217 #if AOS_SENSOR_GYRO_ST_I3G4250D 218 drv_gyro_st_i3g4250d_init(); 219 #endif 220 #if AOS_SENSOR_GYRO_ST_L3GD20H 221 drv_gyro_st_l3gd20h_init(); 222 #endif 223 #if AOS_SENSOR_MAG_BOSCH_BMM150 224 drv_mag_bosch_bmm150_init(); 225 #endif 226 #if AOS_SENSOR_MAG_ST_LSM303AGR 227 drv_mag_st_lsm303agr_init(); 228 #endif 229 #if AOS_SENSOR_MAG_AKM_AK09917 230 drv_mag_akm_ak09917_init(); 231 #endif 232 #if AOS_SENSOR_MAG_AKM_AK09918 233 drv_mag_akm_ak09918_init(); 234 #endif 235 #if AOS_SENSOR_MAG_AKM_AK09940 236 drv_mag_akm_ak09940_init(); 237 #endif 238 #if AOS_SENSOR_MAG_ROHM_BM1422A 239 drv_mag_rohm_bm1422a_init(); 240 #endif 241 #if AOS_SENSOR_MAG_SENODIA_ST350 242 drv_mag_sen_st350_init(); 243 #endif 244 #if AOS_SENSOR_MAG_SENODIA_ST480 245 drv_mag_sen_st480_init(); 246 #endif 247 #if AOS_SENSOR_MAG_ST_LIS2MDL 248 drv_mag_st_lis2mdl_init(); 249 #endif 250 #if AOS_SENSOR_MAG_ST_LIS3MDL 251 drv_mag_st_lis3mdl_init(); 252 #endif 253 #if AOS_SENSOR_MAG_MEMSIC_MMC3680KJ 254 drv_mag_memsic_mmc3680kj_init(); 255 #endif 256 #if AOS_SENSOR_ALS_AMS_TCS3400 257 drv_als_ams_tcs3400_init(); 258 #endif 259 #if AOS_SENSOR_ALS_AMS_TMD2725 260 drv_als_ams_tmd2725_init(); 261 #endif 262 #if AOS_SENSOR_ALS_LITEON_LTR303 263 drv_als_liteon_ltr303_init(); 264 #endif 265 #if AOS_SENSOR_ALS_LITEON_LTR568 266 drv_als_liteon_ltr568_init(); 267 #endif 268 #if AOS_SENSOR_ALS_LITEON_LTR507 269 drv_als_liteon_ltr507_init(); 270 #endif 271 #if AOS_SENSOR_ALS_LITEON_LTR553 272 drv_als_liteon_ltr553_init(); 273 #endif 274 #if AOS_SENSOR_ALS_LITEON_LTR559 275 drv_als_liteon_ltr559_init(); 276 #endif 277 #if AOS_SENSOR_ALS_ROHM_BH1730 278 drv_als_rohm_bh1730_init(); 279 #endif 280 #if AOS_SENSOR_PS_AMS_TMD2725 281 drv_ps_ams_tmd2725_init(); 282 #endif 283 #if AOS_SENSOR_PS_LITEON_LTR507 284 drv_ps_liteon_ltr507_init(); 285 #endif 286 #if AOS_SENSOR_PS_LITEON_LTR553 287 drv_ps_liteon_ltr553_init(); 288 #endif 289 #if AOS_SENSOR_PS_LITEON_LTR559 290 drv_ps_liteon_ltr559_init(); 291 #endif 292 #if AOS_SENSOR_PS_LITEON_LTR659 293 drv_ps_liteon_ltr659_init(); 294 #endif 295 296 #if AOS_SENSOR_PS_LITEON_LTR690 297 drv_ps_liteon_ltr690_init(); 298 #endif 299 #if AOS_SENSOR_PS_LITEON_LTR706 300 drv_ps_liteon_ltr706_init(); 301 #endif 302 #if AOS_SENSOR_BARO_IFX_DSP310 303 drv_baro_ifx_dps310_init(); 304 #endif 305 #if AOS_SENSOR_BARO_BOSCH_BMP280 306 drv_baro_bosch_bmp280_init(); 307 #endif 308 #if AOS_SENSOR_BARO_BOSCH_BMP380 309 drv_baro_bosch_bmp380_init(); 310 #endif 311 #if AOS_SENSOR_BARO_ROHM_BM1383A 312 drv_baro_rohm_bm1383a_init(); 313 #endif 314 #if AOS_SENSOR_BARO_ST_LPS22HB 315 drv_baro_st_lps22hb_init(); 316 #endif 317 #if AOS_SENSOR_BARO_ST_LPS33HB 318 drv_baro_st_lps33hb_init(); 319 #endif 320 #if AOS_SENSOR_BARO_ST_LPS35HB 321 drv_baro_st_lps35hb_init(); 322 #endif 323 #if AOS_SENSOR_BARO_BOSCH_BME280 324 drv_humi_bosch_bme280_init(); 325 #endif 326 #if AOS_SENSOR_GESTURE_PIXART_PAJ7620 327 drv_gs_pixart_paj7620_init(); 328 #endif 329 #if AOS_SENSOR_IR_AKM_AK9754 330 drv_ir_akm_ak9754_init(); 331 #endif 332 #if AOS_SENSOR_RGB_LITEON_LTR381 333 drv_rgb_liteon_ltr381_init(); 334 #endif 335 #if AOS_SENSOR_RTC_MAXIM_DS1307 336 drv_rtc_maxim_ds1307_init(); 337 #endif 338 #if AOS_SENSOR_UV_LITEON_LTR390 339 drv_uv_liteon_ltr390_init(); 340 #endif 341 #if AOS_SENSOR_TEMP_AMS_ENS210 342 drv_temp_ams_ens210_init(); 343 #endif 344 #if AOS_SENSOR_TEMP_ADI_ADT7410 345 drv_temp_adi_adt7410_init(); 346 #endif 347 #if AOS_SENSOR_TEMP_BOSCH_BME280 348 drv_temp_bosch_bme280_init(); 349 #endif 350 #if AOS_SENSOR_TEMP_SENSIRION_SHT30 351 drv_temp_sensirion_sht30_init(); 352 #endif 353 #if AOS_SENSOR_TEMP_SENSIRION_SHT31 354 drv_temp_sensirion_sht31_init(); 355 #endif 356 #if AOS_SENSOR_TEMP_SENSIRION_SHTC1 357 drv_temp_sensirion_shtc1_init(); 358 #endif 359 #if AOS_SENSOR_TEMP_ST_HTS221 360 drv_temp_st_hts221_init(); 361 #endif 362 #if AOS_SENSOR_HUMI_AMS_ENS210 363 drv_humi_ams_ens210_init(); 364 #endif 365 #if AOS_SENSOR_HUMI_BOSCH_BME280 366 drv_baro_bosch_bme280_init(); 367 #endif 368 #if AOS_SENSOR_HUMI_SENSIRION_SHT30 369 drv_humi_sensirion_sht30_init(); 370 #endif 371 #if AOS_SENSOR_HUMI_SENSIRION_SHT31 372 drv_humi_sensirion_sht31_init(); 373 #endif 374 #if AOS_SENSOR_HUMI_SENSIRION_SHTC1 375 drv_humi_sensirion_shtc1_init(); 376 #endif 377 #if AOS_SENSOR_HUMI_ST_HTS221 378 drv_humi_st_hts221_init(); 379 #endif 380 #if AOS_SENSOR_CO2_SENSIRION_SCD30 381 drv_co2_sensirion_scd30_init(); 382 #endif 383 #if AOS_SENSOR_ECG_ADI_ADPD188GG 384 drv_ecg_adi_adpd188gg_init(); 385 #endif 386 387 #if AOS_SENSOR_TVOC_SENSIRION_SGP30 388 drv_tvoc_sensirion_sgp30_init(); 389 #endif 390 #if AOS_SENSOR_TVOC_AMS_CCS811 391 drv_voc_ams_ccs811_init(); 392 #endif 393 #if AOS_SENSOR_HUMI_BME280_SPI 394 drv_humi_bosch_bme280_init(); 395 #endif 396 #if AOS_SENSOR_BARO_BME280_SPI 397 drv_baro_bosch_bme280_init(); 398 #endif 399 #if AOS_SENSOR_TEMP_BME280_SPI 400 drv_temp_bosch_bme280_init(); 401 #endif 402 #if AOS_SENSOR_CANBUS_INV_MPU9250 403 drv_canbus_acc_inv_mpu9250_init(); 404 #endif 405 #if AOS_SENSOR_PS_ST_VL53L0X 406 drv_ps_st_vl53l0x_init(); 407 #endif 408 } 409