Revision ce12e797 test/periphery-lld/INA219_v1/aos_test_INA219.c
test/periphery-lld/INA219_v1/aos_test_INA219.c | ||
---|---|---|
52 | 52 |
aosDbgCheck(test->data != NULL && ((aos_test_ina219data_t*)(test->data))->inad != NULL); |
53 | 53 |
|
54 | 54 |
// local variables |
55 |
aos_testresult_t result = {0, 0};
|
|
55 |
aos_testresult_t result; |
|
56 | 56 |
int32_t status; |
57 | 57 |
uint16_t data[6]; |
58 | 58 |
uint16_t write_data = 0x1011; |
... | ... | |
65 | 65 |
int32_t shunt; |
66 | 66 |
uint32_t bus; |
67 | 67 |
|
68 |
aosTestResultInit(&result); |
|
69 |
|
|
68 | 70 |
chprintf(stream, "read registers...\n"); |
69 | 71 |
status = ina219_lld_read_register(((aos_test_ina219data_t*)test->data)->inad, INA219_LLD_REGISTER_CONFIGURATION, data, 6, ((aos_test_ina219data_t*)test->data)->timeout); |
70 | 72 |
if (status == APAL_STATUS_SUCCESS) { |
Also available in: Unified diff