Revision ce12e797 test/periphery-lld/bq27500_v1/aos_test_bq27500.c
test/periphery-lld/bq27500_v1/aos_test_bq27500.c | ||
---|---|---|
280 | 280 |
aosDbgCheck(test->data != NULL && ((aos_test_bq27500data_t*)(test->data))->driver != NULL); |
281 | 281 |
|
282 | 282 |
// local variables |
283 |
aos_testresult_t result = {0, 0};
|
|
283 |
aos_testresult_t result; |
|
284 | 284 |
int32_t status; |
285 | 285 |
bq27500_lld_batlow_t bl; |
286 | 286 |
bq27500_lld_batgood_t bg; |
... | ... | |
298 | 298 |
bool success; |
299 | 299 |
bool success2; |
300 | 300 |
|
301 |
aosTestResultInit(&result); |
|
302 |
|
|
301 | 303 |
chprintf(stream, "read battery low gpio...\n"); |
302 | 304 |
status = bq27500_lld_read_batlow(((aos_test_bq27500data_t*)test->data)->driver, &bl); |
303 | 305 |
chprintf(stream, "\t\tbattery low: 0x%X\n", bl); |
Also available in: Unified diff