Revision 8cbe3240 unittests/periphery-lld/src/ut_alld_P9221R_v1.c
| unittests/periphery-lld/src/ut_alld_P9221R_v1.c | ||
|---|---|---|
| 60 | 60 |
status = p9221r_lld_read_register(((ut_p9221rdata_t*)ut->data)->PRd, P9221R_LLD_REGISTER_BATTERY_STATUS_SENT, data, 18, ((ut_p9221rdata_t*)ut->data)->timeout); |
| 61 | 61 |
if (status == APAL_STATUS_SUCCESS) {
|
| 62 | 62 |
aosUtPassed(stream, &result); |
| 63 |
for(int i=0; i<data.len; i++){
|
|
| 63 |
for(int i=0; i<18; i++){
|
|
| 64 | 64 |
chprintf(stream, "register: %02x, data: %u \n", 0x3A+i, data[i]); |
| 65 | 65 |
} |
| 66 | 66 |
} else {
|
| 67 | 67 |
aosUtFailed(stream, &result); |
| 68 | 68 |
} |
| 69 | 69 |
|
| 70 |
return result; |
|
| 70 | 71 |
} |
| 71 | 72 |
#endif /* (AMIROOS_CFG_TESTS_ENABLE == true) && defined(AMIROLLD_CFG_P9221R) && (AMIROLLD_CFG_P9221R == 1) */ |
Also available in: Unified diff