Revision bffb3465 modules/PowerManagement_1-1/module.h

View differences:

modules/PowerManagement_1-1/module.h
453 453
  }
454 454
#elif (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X) || defined(__DOXYGEN__)
455 455
  #define MODULE_INIT_TEST_SENSORRING() {                                     \
456
    /* TODO */                                                                \
456
    aosShellAddCommand(&aos.shell, &moduleUtAlldPcal6524.shellcmd);           \
457
    aosShellAddCommand(&aos.shell, &moduleUtAlldAt42qt1050.shellcmd);         \
457 458
  }
458 459
#elif (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L1X) || defined(__DOXYGEN__)
459 460
  #define MODULE_INIT_TEST_SENSORRING() {                                     \
460
    /* TODO */                                                                \
461
    aosShellAddCommand(&aos.shell, &moduleUtAlldPcal6524.shellcmd);           \
462
    aosShellAddCommand(&aos.shell, &moduleUtAlldAt42qt1050.shellcmd);         \
461 463
  }
462 464
#else
463 465
  #define MODULE_INIT_TEST_SENSORRING()         {}
......
499 501
  }
500 502
#elif (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X) || defined(__DOXYGEN__)
501 503
  #define MODULE_INIT_PERIPHERY_COMM_SENSORRING() {                           \
502
    /* TODO */                                                                \
504
    moduleHalI2cSrPm18Pm33GaugeRearConfig.clock_speed = (PCAL6524_LLD_I2C_MAXFREQUENCY < moduleHalI2cSrPm18Pm33GaugeRearConfig.clock_speed) ? PCAL6524_LLD_I2C_MAXFREQUENCY : moduleHalI2cSrPm18Pm33GaugeRearConfig.clock_speed;  \
505
    moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed = (PCAL6524_LLD_I2C_MAXFREQUENCY < moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed) ? PCAL6524_LLD_I2C_MAXFREQUENCY : moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed;  \
506
    moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed = (AT42QT1050_LLD_I2C_MAXFREQUENCY < moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed) ? AT42QT1050_LLD_I2C_MAXFREQUENCY : moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed;  \
503 507
  }
504 508
#elif (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L1X) || defined(__DOXYGEN__)
505 509
  #define MODULE_INIT_PERIPHERY_COMM_SENSORRING() {                           \
506
    /* TODO */                                                                \
510
    moduleHalI2cSrPm18Pm33GaugeRearConfig.clock_speed = (PCAL6524_LLD_I2C_MAXFREQUENCY < moduleHalI2cSrPm18Pm33GaugeRearConfig.clock_speed) ? PCAL6524_LLD_I2C_MAXFREQUENCY : moduleHalI2cSrPm18Pm33GaugeRearConfig.clock_speed;  \
511
    moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed = (PCAL6524_LLD_I2C_MAXFREQUENCY < moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed) ? PCAL6524_LLD_I2C_MAXFREQUENCY : moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed;  \
512
    moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed = (AT42QT1050_LLD_I2C_MAXFREQUENCY < moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed) ? AT42QT1050_LLD_I2C_MAXFREQUENCY : moduleHalI2cSrPm42Pm50PmVddEepromGaugeFrontConfig.clock_speed;  \
507 513
  }
508 514
#else
509 515
  #define MODULE_INIT_PERIPHERY_COMM_SENSORRING() {}
......
683 689
#endif /* BOARD_SENSORRING == BOARD_PROXIMITYSENSOR */
684 690

  
685 691
#if (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X) || defined(__DOXYGEN__)
686
// TODO
692

  
693
#include <alld_pcal6524.h>
694
#include <alld_at42qt1050.h>
695

  
696
/**
697
 * @brief   GPIO extender (I2C #1) driver.
698
 */
699
extern PCAL6524Driver moduleLldGpioExtender1;
700

  
701
/**
702
 * @brief   GPIO extender (I2C #2) driver.
703
 */
704
extern PCAL6524Driver moduleLldGpioExtender2;
705

  
706
/**
707
 * @brief   Touch sensor driver.
708
 */
709
extern AT42QT1050Driver moduleLldTouch;
710

  
687 711
#endif /* BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X */
688 712

  
689 713
#if (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L1X) || defined(__DOXYGEN__)
690
// TODO
714

  
715
#include <alld_pcal6524.h>
716
#include <alld_at42qt1050.h>
717

  
718
/**
719
 * @brief   GPIO extender (I2C #1) driver.
720
 */
721
extern PCAL6524Driver moduleLldGpioExtender1;
722

  
723
/**
724
 * @brief   GPIO extender (I2C #2) driver.
725
 */
726
extern PCAL6524Driver moduleLldGpioExtender2;
727

  
728
/**
729
 * @brief   Touch sensor driver.
730
 */
731
extern AT42QT1050Driver moduleLldTouch;
732

  
691 733
#endif /* BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L1X */
692 734

  
693 735
/** @} */
......
784 826
#endif /* BOARD_SENSORRING == BOARD_PROXIMITYSENSOR */
785 827

  
786 828
#if (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X) || defined(__DOXYGEN__)
787
// TODO
829

  
830
#include <ut_alld_pcal6524.h>
831
#include <ut_alld_at42qt1050.h>
832

  
833
/**
834
 * @brief   PCAL6524 (GPIO extender) unit test object.
835
 */
836
extern aos_unittest_t moduleUtAlldPcal6524;
837

  
838
/**
839
 * @brief   AT42QT1050 (touch sensor) unit test object.
840
 */
841
extern aos_unittest_t moduleUtAlldAt42qt1050;
842

  
788 843
#endif /* BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X */
789 844

  
790 845
#if (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L1X) || defined(__DOXYGEN__)
791
// TODO
846

  
847
#include <ut_alld_pcal6524.h>
848
#include <ut_alld_at42qt1050.h>
849

  
850
/**
851
 * @brief   PCAL6524 (GPIO extender) unit test object.
852
 */
853
extern aos_unittest_t moduleUtAlldPcal6524;
854

  
855
/**
856
 * @brief   AT42QT1050 (touch sensor) unit test object.
857
 */
858
extern aos_unittest_t moduleUtAlldAt42qt1050;
859

  
792 860
#endif /* BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L1X */
793 861

  
794 862
#endif /* AMIROOS_CFG_TESTS_ENABLE == true */

Also available in: Unified diff