Revision 8cbe3240 modules/LightRing_1-2/module.c
modules/LightRing_1-2/module.c | ||
---|---|---|
549 | 549 |
aosUtRun(stream, &moduleUtAlldP9221r, NULL); |
550 | 550 |
return AOS_OK; |
551 | 551 |
} |
552 |
|
|
552 | 553 |
static ut_p9221rdata_t _utP9221rData = { |
553 |
/* driver */ &moduleLldPowerMonitorVled, |
|
554 |
/* expected voltage */ 4.2f, |
|
555 |
/* tolerance */ 0.2f, |
|
554 |
/* driver */ &moduleQiCharger, // !!!! |
|
555 |
/* x alignment */ 0.0f, |
|
556 |
/* y alignment */ 0.0f, |
|
557 |
/* op freq */ 0.0f, |
|
558 |
/* voltage */ 0.0f, |
|
559 |
/* current */ 0.0f, |
|
556 | 560 |
/* timeout */ MICROSECONDS_PER_SECOND, |
557 | 561 |
}; |
562 |
|
|
558 | 563 |
aos_unittest_t moduleUtAlldP9221r = { |
559 |
/* name */ "P9221R", |
|
560 |
/* info */ "qi charger", |
|
561 |
/* test function */ utAlldP9221rFunc, |
|
562 |
/* shell command */ { |
|
563 |
/* name */ "unittest:QiCharger", |
|
564 |
/* callback */ _utShellCmdCb_AlldP9221r, |
|
565 |
/* next */ NULL, |
|
566 |
}, |
|
567 |
/* data */ &_utP9221rData, |
|
568 |
}; |
|
564 |
/* name */ "P9221R",
|
|
565 |
/* info */ "qi charger",
|
|
566 |
/* test function */ utAlldP9221rFunc,
|
|
567 |
/* shell command */ {
|
|
568 |
/* name */ "unittest:QiCharger",
|
|
569 |
/* callback */ _utShellCmdCb_AlldP9221r,
|
|
570 |
/* next */ NULL,
|
|
571 |
},
|
|
572 |
/* data */ &_utP9221rData,
|
|
573 |
};
|
|
569 | 574 |
|
570 | 575 |
/* |
571 | 576 |
* Status LED |
Also available in: Unified diff