Revision ce12e797 test/periphery-lld/TPS6211x_v1_INA219_v1/aos_test_TPS6211x_INA219.c
test/periphery-lld/TPS6211x_v1_INA219_v1/aos_test_TPS6211x_INA219.c | ||
---|---|---|
50 | 50 |
aosDbgCheck(test->data != NULL && ((aos_test_tps6211xina219data_t*)test->data)->tps6211x != NULL && ((aos_test_tps6211xina219data_t*)test->data)->ina219 != NULL); |
51 | 51 |
|
52 | 52 |
// local variables |
53 |
aos_testresult_t result = {0, 0};
|
|
53 |
aos_testresult_t result; |
|
54 | 54 |
int32_t status; |
55 | 55 |
tps6211x_lld_power_en_t power; |
56 | 56 |
uint32_t v_buson, v_busoff; |
57 | 57 |
|
58 |
aosTestResultInit(&result); |
|
59 |
|
|
58 | 60 |
chprintf(stream, "read pin...\n"); |
59 | 61 |
status = tps6211x_lld_get_power_en(((aos_test_tps6211xina219data_t*)test->data)->tps6211x, &power); |
60 | 62 |
aosThdSSleep(1); |
Also available in: Unified diff