Revision ce12e797 test/periphery-lld/HMC5883L_v1/aos_test_HMC5883L.c
test/periphery-lld/HMC5883L_v1/aos_test_HMC5883L.c | ||
---|---|---|
58 | 58 |
aosDbgCheck(test->data != NULL && (((aos_test_hmc5883ldata_t*)(test->data))->drdyEvtSrc != NULL)); |
59 | 59 |
|
60 | 60 |
// local variables |
61 |
aos_testresult_t result = {0, 0};
|
|
61 |
aos_testresult_t result; |
|
62 | 62 |
int32_t status; |
63 | 63 |
uint8_t rxbuffer[3]; |
64 | 64 |
uint8_t data; |
... | ... | |
72 | 72 |
aos_timestamp_t start; |
73 | 73 |
aos_timestamp_t t; |
74 | 74 |
|
75 |
aosTestResultInit(&result); |
|
76 |
|
|
75 | 77 |
chprintf(stream, "check ID...\n"); |
76 | 78 |
status = hmc5883l_lld_check(((aos_test_hmc5883ldata_t*)test->data)->driver, rxbuffer, 3, ((aos_test_hmc5883ldata_t*)test->data)->timeout); |
77 | 79 |
if (status == APAL_STATUS_SUCCESS && rxbuffer[0] == HMC5883L_LLD_IDENTIFICATION_A |
Also available in: Unified diff