Revision 4c72a54c modules/LightRing_1-2/module.h

View differences:

modules/LightRing_1-2/module.h
298 298
 * @brief   Unit test initialization hook.
299 299
 */
300 300
#define MODULE_INIT_TESTS() {                                                 \
301
  /* add unit-test shell commands */                                          \
302
  aosShellAddCommand(&aos.shell, &moduleUtAlldAt24c01b.shellcmd);             \
303
  aosShellAddCommand(&aos.shell, &moduleUtAlldIna219.shellcmd);               \
304
  aosShellAddCommand(&aos.shell, &moduleUtAlldLed.shellcmd);                  \
305
  aosShellAddCommand(&aos.shell, &moduleUtAlldMic9404x.shellcmd);             \
306
  aosShellAddCommand(&aos.shell, &moduleUtAlldTlc5947.shellcmd);              \
301
  /* initialize tests and add to shell */                                     \
302
  aosShellAddCommand(&aos.shell, &moduleTestAt24c01bShellCmd);                \
303
  aosShellAddCommand(&aos.shell, &moduleTestIna219ShellCmd);                  \
304
  aosShellAddCommand(&aos.shell, &moduleTestLedShellCmd);                     \
305
  aosShellAddCommand(&aos.shell, &moduleTestMic9404xShellCmd);                \
306
  aosShellAddCommand(&aos.shell, &moduleTestTlc5947ShellCmd);                 \
307
  aosShellAddCommand(&aos.shell, &moduleTestAllShellCmd);                     \
307 308
}
308 309

  
309 310
/**
310 311
 * @brief   Periphery communication interfaces initialization hook.
311 312
 */
312
#define MODULE_INIT_PERIPHERY_COMM() {                                        \
313
#define MODULE_INIT_PERIPHERY_IF() {                                          \
313 314
  /* serial driver */                                                         \
314 315
  sdStart(&MODULE_HAL_PROGIF, &moduleHalProgIfConfig);                        \
315 316
  /* I2C */                                                                   \
......
324 325
/**
325 326
 * @brief   Periphery communication interface deinitialization hook.
326 327
 */
327
#define MODULE_SHUTDOWN_PERIPHERY_COMM() {                                    \
328
#define MODULE_SHUTDOWN_PERIPHERY_IF() {                                      \
328 329
  /* SPI */                                                                   \
329 330
  spiStop(&MODULE_HAL_SPI_LIGHT);                                             \
330 331
  /* I2C */                                                                   \
......
393 394
#include <alld_INA219.h>
394 395
#include <alld_LED.h>
395 396
#include <alld_MIC9404x.h>
396
//#include <alld_SNx5C3221E.h>
397
// TODO: add SNx5C3221E
397 398
#include <alld_TLC5947.h>
398 399

  
399 400
/**
......
437 438
 */
438 439
extern MIC9404xDriver moduleLldPowerSwitchVsys;
439 440

  
441
// TODO: add SNx5C3221E
442

  
440 443
/**
441
 * @brief   LED PWM driver.
444
 * @brief   24 channel PWM LED driver.
442 445
 */
443 446
extern TLC5947Driver moduleLldLedPwm;
444 447

  
......
446 449

  
447 450
/*===========================================================================*/
448 451
/**
449
 * @name Unit tests (UT)
452
 * @name Tests
450 453
 * @{
451 454
 */
452 455
/*===========================================================================*/
453 456
#if (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
454
#include <ut_alld_AT24C01B_v1.h>
455
#include <ut_alld_INA219_v1.h>
456
#include <ut_alld_LED_v1.h>
457
#include <ut_alld_MIC9404x_v1.h>
458
//#include <ut_alld_SNx5C3221E_v1.h>
459
#include <ut_alld_TLC5947_v1.h>
460 457

  
461 458
/**
462
 * @brief   EEPROM unit test object.
459
 * @brief   AT24C01BN-SH-B (EEPROM) test command.
463 460
 */
464
extern aos_unittest_t moduleUtAlldAt24c01b;
461
extern aos_shellcommand_t moduleTestAt24c01bShellCmd;
465 462

  
466 463
/**
467
 * @brief   INA219 (power monitor) unit test object.
464
 * @brief   INA219 (power monitor) test command.
468 465
 */
469
extern aos_unittest_t moduleUtAlldIna219;
466
extern aos_shellcommand_t moduleTestIna219ShellCmd;
470 467

  
471 468
/**
472
 * @brief   Status LED unit test object.
469
 * @brief   Status LED test command.
473 470
 */
474
extern aos_unittest_t moduleUtAlldLed;
471
extern aos_shellcommand_t moduleTestLedShellCmd;
472

  
473
/**
474
 * @brief   MIC9404x (power switch) test command.
475
 */
476
extern aos_shellcommand_t moduleTestMic9404xShellCmd;
477

  
478
// TODO: add SNx5C3221E
475 479

  
476 480
/**
477
 * @brief   Power switch unit test object.
481
 * @brief   TLC5947 (24 channel PWM LED driver) test command.
478 482
 */
479
extern aos_unittest_t moduleUtAlldMic9404x;
483
extern aos_shellcommand_t moduleTestTlc5947ShellCmd;
480 484

  
481 485
/**
482
 * @brief   LED PWM driver unit test object.
486
 * @brief   Entire module test command.
483 487
 */
484
extern aos_unittest_t moduleUtAlldTlc5947;
488
extern aos_shellcommand_t moduleTestAllShellCmd;
485 489

  
486 490
#endif /* (AMIROOS_CFG_TESTS_ENABLE == true) */
487 491

  

Also available in: Unified diff