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

View differences:

modules/LightRing_1-0/module.h
217 217
}
218 218

  
219 219
/**
220
 * @brief   Unit test initialization hook.
220
 * @brief   Test initialization hook.
221 221
 */
222 222
#define MODULE_INIT_TESTS() {                                                 \
223
  /* add unit-test shell commands */                                          \
224
  aosShellAddCommand(&aos.shell, &moduleUtAlldAt24c01b.shellcmd);             \
225
  aosShellAddCommand(&aos.shell, &moduleUtAlldTlc5947.shellcmd);              \
226
  aosShellAddCommand(&aos.shell, &moduleUtAlldTps2051bdbv.shellcmd);          \
223
  /* initialize tests and add to shell */                                     \
224
  aosShellAddCommand(&aos.shell, &moduleTestAt24c01bShellCmd);                \
225
  aosShellAddCommand(&aos.shell, &moduleTestTlc5947ShellCmd);                 \
226
  aosShellAddCommand(&aos.shell, &moduleTestTps2051bdbvShellCmd);             \
227
  aosShellAddCommand(&aos.shell, &moduleTestAllShellCmd);                     \
227 228
}
228 229

  
229 230
/**
230 231
 * @brief   Periphery communication interfaces initialization hook.
231 232
 */
232
#define MODULE_INIT_PERIPHERY_COMM() {                                        \
233
#define MODULE_INIT_PERIPHERY_IF() {                                          \
233 234
  /* serial driver */                                                         \
234 235
  sdStart(&MODULE_HAL_PROGIF, &moduleHalProgIfConfig);                        \
235 236
  /* I2C */                                                                   \
......
244 245
/**
245 246
 * @brief   Periphery communication interface deinitialization hook.
246 247
 */
247
#define MODULE_SHUTDOWN_PERIPHERY_COMM() {                                    \
248
#define MODULE_SHUTDOWN_PERIPHERY_IF() {                                      \
248 249
  /* SPI */                                                                   \
249 250
  spiStop(&MODULE_HAL_SPI_LIGHT);                                             \
250 251
  spiStop(&MODULE_HAL_SPI_WL);                                                \
......
310 311
extern AT24C01BDriver moduleLldEeprom;
311 312

  
312 313
/**
313
 * @brief   LED PWM driver.
314
 * @brief   24 channel PWM LED driver.
314 315
 */
315 316
extern TLC5947Driver moduleLldLedPwm;
316 317

  
......
323 324

  
324 325
/*===========================================================================*/
325 326
/**
326
 * @name Unit tests (UT)
327
 * @name Tests
327 328
 * @{
328 329
 */
329 330
/*===========================================================================*/
330 331
#if (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__)
331
#include <ut_alld_AT24C01B_v1.h>
332
#include <ut_alld_TLC5947_v1.h>
333
#include <ut_alld_TPS20xxB_v1.h>
334 332

  
335 333
/**
336
 * @brief   EEPROM unit test object.
334
 * @brief   AT24C01BN-SH-B (EEPROM) test command.
337 335
 */
338
extern aos_unittest_t moduleUtAlldAt24c01b;
336
extern aos_shellcommand_t moduleTestAt24c01bShellCmd;
339 337

  
340 338
/**
341
 * @brief   LED PWM driver unit test object.
339
 * @brief   TLC5947 (24 channel PWM LED driver) test command
342 340
 */
343
extern aos_unittest_t moduleUtAlldTlc5947;
341
extern aos_shellcommand_t moduleTestTlc5947ShellCmd;
344 342

  
345 343
/**
346
 * @brief   Current-limited power switch (Laser output)
344
 * @brief   TPS2051BDBV (Current-limited power switch) test command
347 345
 */
348
extern aos_unittest_t moduleUtAlldTps2051bdbv;
346
extern aos_shellcommand_t moduleTestTps2051bdbvShellCmd;
349 347

  
348
/**
349
 * @brief   Entire module test command.
350
 */
351
extern aos_shellcommand_t moduleTestAllShellCmd;
350 352

  
351 353
#endif /* (AMIROOS_CFG_TESTS_ENABLE == true) */
352 354

  

Also available in: Unified diff