Revision ded1ded7 modules/NUCLEO-L476RG/test/VL53L1X/module_test_VL53L1X.c

View differences:

modules/NUCLEO-L476RG/test/VL53L1X/module_test_VL53L1X.c
39 39
/* LOCAL VARIABLES                                                            */
40 40
/******************************************************************************/
41 41

  
42
static aos_test_vl53l1x_bus _data = {
42
static aos_test_vl53l1xdata_t _data = {
43 43
  /* pointer to VL53L1X driver  */ &moduleLldVl53l1x,
44 44
};
45 45

  
46 46
static AOS_TEST(_test, "VL53L1X", NULL, moduleTestVL53L1XShellCb, aosTestVL53L1XFunc, &_data);
47
static AOS_TEST(_test2, "VL53L1X:INIT", NULL, moduleTestVL53L1XInitShellCb, aosTestVL53L1Xi2cInit, &_data);
48 47

  
49 48
/******************************************************************************/
50 49
/* LOCAL FUNCTIONS                                                            */
......
59 58
  (void)argc;
60 59
  (void)argv;
61 60

  
62

  
63
  aosprintf("STM32_I2C3CLK: %u\n", STM32_I2C3CLK);
64
  aosprintf("Timing_: %08x\n", moduleHalI2c3Config.timingr);
65 61
  if (result != NULL) {
66 62
    *result = aosTestRun(stream, &_test, NULL);
67 63
  } else {
......
71 67
  return AOS_OK;
72 68
}
73 69

  
74
int moduleTestVL53L1XInitShellCb(BaseSequentialStream* stream, int argc, char* argv[], aos_testresult_t* result)
75
{
76
  (void)argc;
77
  (void)argv;
78

  
79
  if (result != NULL) {
80
    *result = aosTestRun(stream, &_test2, NULL);
81
  } else {
82
    aosTestRun(stream, &_test2, NULL);
83
  }
84

  
85
  return AOS_OK;
86
}
87

  
88 70
#endif /* (AMIROOS_CFG_TESTS_ENABLE == true) */

Also available in: Unified diff