Revision ed19a68b
periphery-lld/AMiRo-LLD | ||
---|---|---|
1 |
Subproject commit 5e585131fdeb6d40ab4f56e1edc6db6e4a5593b4 |
|
1 |
Subproject commit 119ec0d2a484fa5054ca0abb175eca8ea7b2ca5a |
unittests/periphery-lld/src/ut_alld_AT42QT1050_v1.c | ||
---|---|---|
59 | 59 |
event_listener_t event_listener; |
60 | 60 |
aos_timestamp_t tstart, tcurrent, tend; |
61 | 61 |
|
62 |
chprintf(stream, "reset device...\n"); |
|
63 |
at42qt1050_lld_reset(((ut_at42qt1050data_t*)ut->data)->at42qt1050d, ((ut_at42qt1050data_t*)ut->data)->timeout, true); |
|
64 |
|
|
62 | 65 |
chprintf(stream, "read register...\n"); |
63 | 66 |
status = at42qt1050_lld_read_reg(((ut_at42qt1050data_t*)ut->data)->at42qt1050d, AT42QT1050_LLD_REG_CHIPID, &buffer8[0], ((ut_at42qt1050data_t*)ut->data)->timeout); |
64 | 67 |
status |= at42qt1050_lld_read_reg(((ut_at42qt1050data_t*)ut->data)->at42qt1050d, AT42QT1050_LLD_REG_FIRMWAREVERSION, &buffer8[1], ((ut_at42qt1050data_t*)ut->data)->timeout); |
Also available in: Unified diff