Revision a845d9eb modules/PowerManagement_1-2/module.h

View differences:

modules/PowerManagement_1-2/module.h
458 458
  }
459 459
#elif (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X) || defined(__DOXYGEN__)
460 460
  #define MODULE_INIT_TEST_SENSORRING() {                                     \
461
    aosShellAddCommand(&aos.shell, &moduleUtAlldVl53l0x.shellcmd);            \
461 462
    aosShellAddCommand(&aos.shell, &moduleUtAlldPcal6524.shellcmd);           \
462 463
    aosShellAddCommand(&aos.shell, &moduleUtAlldAt42qt1050.shellcmd);         \
463 464
  }
......
506 507
  }
507 508
#elif (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X) || defined(__DOXYGEN__)
508 509
  #define MODULE_INIT_PERIPHERY_COMM_SENSORRING() {                           \
510
    moduleHalI2cSrPm18Pm33GaugeRearConfig.clock_speed = (VL53L0X_LLD_I2C_MAXFREQUENCY < moduleHalI2cSrPm18Pm33GaugeRearConfig.clock_speed) ? VL53L0X_LLD_I2C_MAXFREQUENCY : moduleHalI2cSrPm18Pm33GaugeRearConfig.clock_speed;  \
511
    moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed = (VL53L0X_LLD_I2C_MAXFREQUENCY < moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed) ? VL53L0X_LLD_I2C_MAXFREQUENCY : moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed; \
509 512
    moduleHalI2cSrPm18Pm33GaugeRearConfig.clock_speed = (PCAL6524_LLD_I2C_MAXFREQUENCY < moduleHalI2cSrPm18Pm33GaugeRearConfig.clock_speed) ? PCAL6524_LLD_I2C_MAXFREQUENCY : moduleHalI2cSrPm18Pm33GaugeRearConfig.clock_speed;  \
510 513
    moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed = (PCAL6524_LLD_I2C_MAXFREQUENCY < moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed) ? PCAL6524_LLD_I2C_MAXFREQUENCY : moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed;  \
511 514
    moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed = (AT42QT1050_LLD_I2C_MAXFREQUENCY < moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed) ? AT42QT1050_LLD_I2C_MAXFREQUENCY : moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed;  \
......
697 700

  
698 701
#include <alld_PCAL6524.h>
699 702
#include <alld_AT42QT1050.h>
703
#include <alld_VL53L0X.h>
700 704

  
701 705
/**
702 706
 * @brief   GPIO extender (I2C #1) driver.
......
713 717
 */
714 718
extern AT42QT1050Driver moduleLldTouch;
715 719

  
720

  
721
/**
722
 * @brief   Proximity sensor (I2C #1) driver.
723
 */
724
extern VL53L0XDriver moduleLldProximity1;
725

  
726
/**
727
 * @brief   Proximity sensor (I2C #2) driver.
728
 */
729
extern VL53L0XDriver moduleLldProximity2;
730

  
716 731
#endif /* (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X) */
717 732

  
718 733
#if (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L1X) || defined(__DOXYGEN__)
......
834 849

  
835 850
#include <ut_alld_PCAL6524_v1.h>
836 851
#include <ut_alld_AT42QT1050_v1.h>
852
#include <ut_alld_VL53L0X_v1.h>
837 853

  
838 854
/**
839 855
 * @brief   PCAL6524 (GPIO extender) unit test object.
......
845 861
 */
846 862
extern aos_unittest_t moduleUtAlldAt42qt1050;
847 863

  
864
/**
865
 * @brief   VL53L0X (proximity sensor) unit test object.
866
 */
867
extern aos_unittest_t moduleUtAlldVl53l0x;
868

  
848 869
#endif /* (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X) */
849 870

  
850 871
#if (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L1X) || defined(__DOXYGEN__)

Also available in: Unified diff