Revision ce12e797 test/periphery-lld/PCA9544A_v1/aos_test_PCA9544A.c
test/periphery-lld/PCA9544A_v1/aos_test_PCA9544A.c | ||
---|---|---|
50 | 50 |
aosDbgCheck(test->data != NULL && ((aos_test_pca9544adata_t*)test->data)->driver != 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 |
uint8_t ctrlreg; |
56 | 56 |
pca9544a_lld_intstatus_t interrupt; |
57 | 57 |
pca9544a_lld_chid_t channel; |
58 | 58 |
uint8_t test_mask = 0x00u; |
59 | 59 |
|
60 |
aosTestResultInit(&result); |
|
61 |
|
|
60 | 62 |
chprintf(stream, "reading control register...\n"); |
61 | 63 |
status = pca9544a_lld_read(((aos_test_pca9544adata_t*)test->data)->driver, &ctrlreg, ((aos_test_pca9544adata_t*)test->data)->timeout); |
62 | 64 |
if (status == APAL_STATUS_OK || status == APAL_STATUS_WARNING) { |
Also available in: Unified diff