Revision 4c72a54c modules/DiWheelDrive_1-1/module.h

View differences:

modules/DiWheelDrive_1-1/module.h
332 332
}
333 333

  
334 334
/**
335
 * @brief   Unit test initialization hook.
335
 * @brief   Test initialization hook.
336 336
 */
337 337
#define MODULE_INIT_TESTS() {                                                 \
338
  /* add unit-test shell commands */                                          \
339
  aosShellAddCommand(&aos.shell, &moduleUtAlldA3906.shellcmd);                \
340
  aosShellAddCommand(&aos.shell, &moduleUtAlldAt24c01b.shellcmd);             \
341
  aosShellAddCommand(&aos.shell, &moduleUtAlldHmc5883l.shellcmd);             \
342
  aosShellAddCommand(&aos.shell, &moduleUtAlldIna219.shellcmd);               \
343
  aosShellAddCommand(&aos.shell, &moduleUtAlldL3g4200d.shellcmd);             \
344
  aosShellAddCommand(&aos.shell, &moduleUtAlldLed.shellcmd);                  \
345
  aosShellAddCommand(&aos.shell, &moduleUtAlldLis331dlh.shellcmd);            \
346
  aosShellAddCommand(&aos.shell, &moduleUtAlldLtc4412.shellcmd);              \
347
  aosShellAddCommand(&aos.shell, &moduleUtAlldPca9544a.shellcmd);             \
348
  aosShellAddCommand(&aos.shell, &moduleUtAlldTps62113.shellcmd);             \
349
  aosShellAddCommand(&aos.shell, &moduleUtAlldVcnl4020.shellcmd);             \
338
  /* initialize tests and add to shell */                                     \
339
  aosShellAddCommand(&aos.shell, &moduleTestA3906ShellCmd);                   \
340
  aosShellAddCommand(&aos.shell, &moduleTestAt24c01bShellCmd);                \
341
  aosShellAddCommand(&aos.shell, &moduleTestHmc5883lShellCmd);                \
342
  aosShellAddCommand(&aos.shell, &moduleTestIna219ShellCmd);                  \
343
  aosShellAddCommand(&aos.shell, &moduleTestL3g4200dShellCmd);                \
344
  aosShellAddCommand(&aos.shell, &moduleTestLedShellCmd);                     \
345
  aosShellAddCommand(&aos.shell, &moduleTestLis331dlhShellCmd);               \
346
  aosShellAddCommand(&aos.shell, &moduleTestLtc4412ShellCmd);                 \
347
  aosShellAddCommand(&aos.shell, &moduleTestPca9544aShellCmd);                \
348
  aosShellAddCommand(&aos.shell, &moduleTestTps62113ShellCmd);                \
349
  aosShellAddCommand(&aos.shell, &moduleTestVcnl4020ShellCmd);                \
350
  aosShellAddCommand(&aos.shell, &moduleTestAllShellCmd);                     \
350 351
}
351 352

  
352 353
/**
353 354
 * @brief   Periphery communication interfaces initialization hook.
354 355
 */
355
#define MODULE_INIT_PERIPHERY_COMM() {                                        \
356
#define MODULE_INIT_PERIPHERY_IF() {                                          \
356 357
  /* serial driver */                                                         \
357 358
  sdStart(&MODULE_HAL_PROGIF, &moduleHalProgIfConfig);                        \
358 359
  /* I2C */                                                                   \
......
378 379
/**
379 380
 * @brief   Periphery communication interface deinitialization hook.
380 381
 */
381
#define MODULE_SHUTDOWN_PERIPHERY_COMM() {                                    \
382
#define MODULE_SHUTDOWN_PERIPHERY_IF() {                                      \
382 383
  /* PWM */                                                                   \
383 384
  pwmStop(&MODULE_HAL_PWM_DRIVE);                                             \
384 385
  /* QEI */                                                                   \
......
510 511

  
511 512
/*===========================================================================*/
512 513
/**
513
 * @name Unit tests (UT)
514
 * @name Tests
514 515
 * @{
515 516
 */
516 517
/*===========================================================================*/
517 518
#if (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
518
#include <ut_alld_A3906_v1.h>
519
#include <ut_alld_AT24C01B_v1.h>
520
#include <ut_alld_HMC5883L_v1.h>
521
#include <ut_alld_INA219_v1.h>
522
#include <ut_alld_L3G4200D_v1.h>
523
#include <ut_alld_LED_v1.h>
524
#include <ut_alld_LIS331DLH_v1.h>
525
#include <ut_alld_LTC4412_v1.h>
526
#include <ut_alld_PCA9544A_v1.h>
527
#include <ut_alld_TPS6211x_v1.h>
528
#include <ut_alld_VCNL4020_v1.h>
529 519

  
530 520
/**
531
 * @brief   A3906 (motor driver) unit test object.
521
 * @brief   A3906 (motor driver) test command.
532 522
 */
533
extern aos_unittest_t moduleUtAlldA3906;
523
extern aos_shellcommand_t moduleTestA3906ShellCmd;
534 524

  
535 525
/**
536
 * @brief   AT24C01BN-SH-B (EEPROM) unit test object.
526
 * @brief   AT24C01BN-SH-B (EEPROM) test command.
537 527
 */
538
extern aos_unittest_t moduleUtAlldAt24c01b;
528
extern aos_shellcommand_t moduleTestAt24c01bShellCmd;
539 529

  
540 530
/**
541
 * @brief   HMC5883L (compass) unit test object.
531
 * @brief   HMC5883L (compass) test command.
542 532
 */
543
extern aos_unittest_t moduleUtAlldHmc5883l;
533
extern aos_shellcommand_t moduleTestHmc5883lShellCmd;
544 534

  
545 535
/**
546
 * @brief   INA219 (power monitor) unit test object.
536
 * @brief   INA219 (power monitor) test command.
547 537
 */
548
extern aos_unittest_t moduleUtAlldIna219;
538
extern aos_shellcommand_t moduleTestIna219ShellCmd;
549 539

  
550 540
/**
551
 * @brief   L3G4200D (gyroscope) unit test object.
541
 * @brief   L3G4200D (gyroscope) test command.
552 542
 */
553
extern aos_unittest_t moduleUtAlldL3g4200d;
543
extern aos_shellcommand_t moduleTestL3g4200dShellCmd;
554 544

  
555 545
/**
556
 * @brief   Status LED unit test object.
546
 * @brief   Status LED test command.
557 547
 */
558
extern aos_unittest_t moduleUtAlldLed;
548
extern aos_shellcommand_t moduleTestLedShellCmd;
559 549

  
560 550
/**
561
 * @brief   LIS331DLH (accelerometer) unit test object.
551
 * @brief   LIS331DLH (accelerometer) test command.
562 552
 */
563
extern aos_unittest_t moduleUtAlldLis331dlh;
553
extern aos_shellcommand_t moduleTestLis331dlhShellCmd;
564 554

  
565 555
/**
566
 * @brief   LTC4412 (power path controller) unit test object.
556
 * @brief   LTC4412 (power path controller) test command.
567 557
 */
568
extern aos_unittest_t moduleUtAlldLtc4412;
558
extern aos_shellcommand_t moduleTestLtc4412ShellCmd;
569 559

  
570 560
/**
571
 * @brief   PCA9544A (I2C multiplexer) unit test object.
561
 * @brief   PCA9544A (I2C multiplexer) test command.
572 562
 */
573
extern aos_unittest_t moduleUtAlldPca9544a;
563
extern aos_shellcommand_t moduleTestPca9544aShellCmd;
574 564

  
575 565
/**
576
 * @brief   TPS62113 (step-down converter) unit test object.
566
 * @brief   TPS62113 (step-down converter) test command.
577 567
 */
578
extern aos_unittest_t moduleUtAlldTps62113;
568
extern aos_shellcommand_t moduleTestTps62113ShellCmd;
579 569

  
580 570
/**
581
 * @brief   VCNL4020 (proximity sensor) unit test object.
571
 * @brief   VCNL4020 (proximity sensor) test command.
582 572
 */
583
extern aos_unittest_t moduleUtAlldVcnl4020;
573
extern aos_shellcommand_t moduleTestVcnl4020ShellCmd;
574

  
575
/**
576
 * @brief   Entire module test command.
577
 */
578
extern aos_shellcommand_t moduleTestAllShellCmd;
584 579

  
585 580
#endif /* (AMIROOS_CFG_TESTS_ENABLE == true) */
586 581

  

Also available in: Unified diff