Revision b23ca7cc test/periphery-lld/MPU6050_v1/aos_test_MPU6050.c
test/periphery-lld/MPU6050_v1/aos_test_MPU6050.c | ||
---|---|---|
50 | 50 |
aos_testresult_t result = {0, 0}; |
51 | 51 |
|
52 | 52 |
uint8_t data[1] = {0}; |
53 |
int32_t status = 0;
|
|
53 |
int32_t status; |
|
54 | 54 |
|
55 | 55 |
status = mpu6050_lld_read_register(((aos_test_mpu6050data_t*)test->data)->mpu, MPU6050_LLD_WHO_AM_I, data, 1, ((aos_test_mpu6050data_t*)test->data)->timeout); |
56 | 56 |
if (status == APAL_STATUS_OK && data[0] == MPU6050_I_AM) { |
Also available in: Unified diff