Revision 232ccea6 test/periphery-lld/AT42QT1050_v1/aos_test_AT42QT1050.c

View differences:

test/periphery-lld/AT42QT1050_v1/aos_test_AT42QT1050.c
312 312
    //wait for calibration to complete
313 313
    error = true;
314 314
    for(uint8_t i=0; i<0xFF; i++) {
315
        usleep(10);
315
        aosThdUSleep(10);
316 316
        status |= at42qt1050_lld_read_reg(((aos_test_at42qt1050data_t*)test->data)->at42qt1050d, AT42QT1050_LLD_REG_DETECTIONSTATUS, &test_8, ((aos_test_at42qt1050data_t*)test->data)->timeout);
317 317
        if(!(test_8 & AT42QT1050_LLD_DETECTIONSTATUS_CALIBRATE)) {
318 318
            error = false;

Also available in: Unified diff