Revision c60ee2dd modules/LightRing_1-2/module.c
modules/LightRing_1-2/module.c | ||
---|---|---|
509 | 509 |
/* |
510 | 510 |
* P9221R (qi charger) |
511 | 511 |
*/ |
512 |
//static int _utShellCmdCb_AlldP9221r(BaseSequentialStream* stream, int argc, char* argv[]) |
|
513 |
//{ |
|
514 |
// (void)argc; |
|
515 |
// (void)argv; |
|
516 |
// aosTestRun(stream, &moduleTestP9221r, NULL); |
|
517 |
// return AOS_OK; |
|
518 |
//} |
|
519 |
//static ut_p9221rdata_t _utP9221rData = { |
|
520 |
// /* driver */ &moduleQiCharger, // !!!! |
|
521 |
// /* x alignment */ 0.0f, |
|
522 |
// /* y alignment */ 0.0f, |
|
523 |
// /* op freq */ 0.0f, |
|
524 |
// /* voltage */ 0.0f, |
|
525 |
// /* current */ 0.0f, |
|
526 |
// /* timeout */ MICROSECONDS_PER_SECOND, |
|
527 |
//}; |
|
528 |
//aos_unittest_t moduleTestP9221r = { |
|
529 |
// /* name */ "P9221R", |
|
530 |
// /* info */ "qi charger", |
|
531 |
// /* test function */ aosTestP9221rFunc, |
|
532 |
// /* shell command */ { |
|
533 |
// /* name */ "unittest:QiCharger", |
|
534 |
// /* callback */ _utShellCmdCb_AlldP9221r, |
|
535 |
// /* next */ NULL, |
|
536 |
// }, |
|
537 |
// /* data */ &_utP9221rData, |
|
538 |
//}; |
|
512 |
#include <module_test_P9221R.h> |
|
513 |
static int _testP9221rShellCmdCb(BaseSequentialStream* stream, int argc, char* argv[]) |
|
514 |
{ |
|
515 |
return moduleTestP9221rShellCb(stream, argc, argv, NULL); |
|
516 |
} |
|
517 |
AOS_SHELL_COMMAND(moduleTestP9221rShellCmd, "test:QiCharger", _testP9221rShellCmdCb); |
|
539 | 518 |
|
540 | 519 |
/* |
541 | 520 |
* Status LED |
Also available in: Unified diff