Revision c60ee2dd modules/LightRing_1-2/test/P9221R/module_test_P9221R.c
modules/LightRing_1-2/test/P9221R/module_test_P9221R.c | ||
---|---|---|
39 | 39 |
/* LOCAL VARIABLES */ |
40 | 40 |
/******************************************************************************/ |
41 | 41 |
|
42 |
//static aos_test_leddata_t _data = { |
|
43 |
// /* LED */ &moduleLldStatusLed, |
|
44 |
//}; |
|
45 |
|
|
46 |
//static AOS_TEST(_test, "LED", NULL, moduleTestLedShellCb, aosTestLedFunc, &_data); |
|
42 |
static aos_test_p9221rdata_t _data = { |
|
43 |
/* driver */ &moduleQiCharger, // !!!! |
|
44 |
/* x alignment */ 0.0f, |
|
45 |
/* y alignment */ 0.0f, |
|
46 |
/* op freq */ 0.0f, |
|
47 |
/* voltage */ 0.0f, |
|
48 |
/* current */ 0.0f, |
|
49 |
/* timeout */ MICROSECONDS_PER_SECOND, |
|
50 |
}; |
|
51 |
|
|
52 |
static AOS_TEST(_test, "P9221R", "qi charger", moduleTestP9221rShellCb, aosTestP9221rFunc, &_data); |
|
47 | 53 |
|
48 | 54 |
/******************************************************************************/ |
49 | 55 |
/* LOCAL FUNCTIONS */ |
... | ... | |
53 | 59 |
/* EXPORTED FUNCTIONS */ |
54 | 60 |
/******************************************************************************/ |
55 | 61 |
|
56 |
//int moduleTestLedShellCb(BaseSequentialStream* stream, int argc, char* argv[], aos_testresult_t* result)
|
|
57 |
//{
|
|
58 |
// (void)argc;
|
|
59 |
// (void)argv;
|
|
60 |
// |
|
61 |
// if (result != NULL) {
|
|
62 |
// *result = aosTestRun(stream, &_test, NULL);
|
|
63 |
// } else {
|
|
64 |
// aosTestRun(stream, &_test, NULL);
|
|
65 |
// }
|
|
66 |
// |
|
67 |
// return AOS_OK;
|
|
68 |
//}
|
|
62 |
int moduleTestP9221rShellCb(BaseSequentialStream* stream, int argc, char* argv[], aos_testresult_t* result)
|
|
63 |
{ |
|
64 |
(void)argc; |
|
65 |
(void)argv; |
|
66 |
|
|
67 |
if (result != NULL) { |
|
68 |
*result = aosTestRun(stream, &_test, NULL); |
|
69 |
} else { |
|
70 |
aosTestRun(stream, &_test, NULL); |
|
71 |
} |
|
72 |
|
|
73 |
return AOS_OK; |
|
74 |
} |
|
69 | 75 |
|
70 | 76 |
#endif /* (AMIROOS_CFG_TESTS_ENABLE == true) */ |
Also available in: Unified diff