Revision a193bcf1 unittests/periphery-lld/src/ut_alld_TPS6211x_v1_INA219_v1.c
unittests/periphery-lld/src/ut_alld_TPS6211x_v1_INA219_v1.c | ||
---|---|---|
55 | 55 |
tps6211x_lld_power_en_t power; |
56 | 56 |
uint32_t v_buson, v_busoff; |
57 | 57 |
|
58 |
chprintf(stream, "read pin... \n");
|
|
58 |
chprintf(stream, "read pin...\n"); |
|
59 | 59 |
status = tps6211x_lld_get_power_en(((ut_tps6211xina219data_t*)ut->data)->tps6211x, &power); |
60 | 60 |
aosThdSSleep(1); |
61 | 61 |
status |= ina219_lld_read_bus_voltage(((ut_tps6211xina219data_t*)ut->data)->ina219, &v_buson, ((ut_tps6211xina219data_t*)ut->data)->timeout); |
... | ... | |
65 | 65 |
aosUtFailedMsg(stream, &result, "0x%08X\n", status); |
66 | 66 |
} |
67 | 67 |
|
68 |
chprintf(stream, "write pin... \n");
|
|
68 |
chprintf(stream, "write pin...\n"); |
|
69 | 69 |
status = tps6211x_lld_set_power_en(((ut_tps6211xina219data_t*)ut->data)->tps6211x, TPS6211x_LLD_POWER_DISABLED); |
70 | 70 |
status |= tps6211x_lld_get_power_en(((ut_tps6211xina219data_t*)ut->data)->tps6211x, &power); |
71 | 71 |
aosThdSSleep(1); |
Also available in: Unified diff