Revision a193bcf1 unittests/periphery-lld/src/ut_alld_TPS6211x_v1.c
unittests/periphery-lld/src/ut_alld_TPS6211x_v1.c | ||
---|---|---|
54 | 54 |
uint32_t status; |
55 | 55 |
tps6211x_lld_power_en_t power; |
56 | 56 |
|
57 |
chprintf(stream, "read pin... \n");
|
|
57 |
chprintf(stream, "read pin...\n"); |
|
58 | 58 |
status = tps6211x_lld_get_power_en((TPS6211xDriver*)ut->data, &power); |
59 | 59 |
if(status == APAL_STATUS_SUCCESS){ |
60 | 60 |
aosUtPassed(stream, &result); |
... | ... | |
62 | 62 |
aosUtFailedMsg(stream, &result, "0x%08X\n", status); |
63 | 63 |
} |
64 | 64 |
|
65 |
chprintf(stream, "write pin... \n");
|
|
65 |
chprintf(stream, "write pin...\n"); |
|
66 | 66 |
status = tps6211x_lld_set_power_en((TPS6211xDriver*)ut->data, TPS6211x_LLD_POWER_ENABLED); |
67 | 67 |
status |= tps6211x_lld_get_power_en((TPS6211xDriver*)ut->data, &power); |
68 | 68 |
if(status == APAL_STATUS_SUCCESS && power == TPS6211x_LLD_POWER_ENABLED){ |
Also available in: Unified diff