Revision ddf34c3d modules/LightRing_1-0/module.c

View differences:

modules/LightRing_1-0/module.c
112 112
  /* GPIO */ &_gpioLaserEn,
113 113
  /* meta */ {
114 114
    /* direction      */ APAL_GPIO_DIRECTION_OUTPUT,
115
    /* active state   */ TPS2051B_LLD_ENABLE_ACTIVE_STATE,
115
    /* active state   */ TPS20xxB_LLD_ENABLE_ACTIVE_STATE,
116 116
    /* interrupt edge */ APAL_GPIO_EDGE_NONE,
117 117
  },
118 118
};
......
128 128
  /* GPIO */ &_gpioLaserOc,
129 129
  /* meta */ {
130 130
    /* direction      */ APAL_GPIO_DIRECTION_INPUT,
131
    /* active state   */ TPS2051B_LLD_OVERCURRENT_ACTIVE_STATE,
131
    /* active state   */ TPS20xxB_LLD_OVERCURRENT_ACTIVE_STATE,
132 132
    /* interrupt edge */ APAL_GPIO_EDGE_BOTH,
133 133
  },
134 134
};
......
260 260
 */
261 261
/*===========================================================================*/
262 262

  
263
AT24C01BNDriver moduleLldEeprom = {
263
AT24C01BDriver moduleLldEeprom = {
264 264
  /* I2C driver   */ &MODULE_HAL_I2C_EEPROM,
265 265
  /* I2C address  */ 0x00u,
266 266
};
......
271 271
  /* XLAT signal GPIO   */ &moduleGpioLightXlat,
272 272
};
273 273

  
274
TPS2051BDriver moduleLldPowerSwitchLaser = {
274
TPS20xxBDriver moduleLldPowerSwitchLaser = {
275 275
  /* laser enable GPIO      */ &moduleGpioLaserEn,
276 276
  /* laser overcurrent GPIO */ &moduleGpioLaserOc,
277 277
};
......
287 287
#if (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
288 288

  
289 289
/*
290
 * EEPROM (AT24C01BN)
290
 * EEPROM (AT24C01B)
291 291
 */
292
static int _utShellCmdCb_AlldAt24c01bn(BaseSequentialStream* stream, int argc, char* argv[])
292
static int _utShellCmdCb_AlldAt24c01b(BaseSequentialStream* stream, int argc, char* argv[])
293 293
{
294 294
  (void)argc;
295 295
  (void)argv;
296
  aosUtRun(stream, &moduleUtAlldAt24c01bn, NULL);
296
  aosUtRun(stream, &moduleUtAlldAt24c01b, NULL);
297 297
  return AOS_OK;
298 298
}
299
static ut_at24c01bndata_t _utAt24c01bnData = {
299
static ut_at24c01bdata_t _utAlldAt24c01bData = {
300 300
  /* driver   */ &moduleLldEeprom,
301 301
  /* timeout  */ MICROSECONDS_PER_SECOND,
302 302
};
303
aos_unittest_t moduleUtAlldAt24c01bn = {
304
  /* name           */ "AT24C01BN-SH-B",
303
aos_unittest_t moduleUtAlldAt24c01b = {
304
  /* name           */ "AT24C01B",
305 305
  /* info           */ "1kbit EEPROM",
306
  /* test function  */ utAlldAt24c01bnFunc,
306
  /* test function  */ utAlldAt24c01bFunc,
307 307
  /* shell command  */ {
308 308
    /* name     */ "unittest:EEPROM",
309
    /* callback */ _utShellCmdCb_AlldAt24c01bn,
309
    /* callback */ _utShellCmdCb_AlldAt24c01b,
310 310
    /* next     */ NULL,
311 311
  },
312
  /* data           */ &_utAt24c01bnData,
312
  /* data           */ &_utAlldAt24c01bData,
313 313
};
314 314

  
315 315
/*
316
 * LED PWM driver (TLD5947)
316
 * LED PWM driver (TLC5947)
317 317
 */
318 318
static int _utShellCmdCb_Tlc5947(BaseSequentialStream* stream, int argc, char* argv[])
319 319
{
......
335 335
};
336 336

  
337 337
/*
338
 * power switch (Laser)
338
 * power switch (TPS2051BDBV)
339 339
 */
340 340
static int _utShellCmdCb_Tps2051bdbv(BaseSequentialStream* stream, int argc, char* argv[])
341 341
{
......
347 347
aos_unittest_t moduleUtAlldTps2051bdbv = {
348 348
  /* info           */ "TPS2051BDBV",
349 349
  /* name           */ "current-limited power switch",
350
  /* test function  */ utAlldTps2051bdbvFunc,
350
  /* test function  */ utAlldTps20xxbFunc,
351 351
  /* shell command  */ {
352 352
    /* name     */ "unittest:PowerSwitch",
353 353
    /* callback */ _utShellCmdCb_Tps2051bdbv,

Also available in: Unified diff