Revision 23ab29c0

View differences:

drivers/AT42QT1050/v1/alld_AT42QT1050.c
167 167
  const apalExitStatus_t status = at42qt1050_lld_write_reg(
168 168
    at42qt1050d, AT42QT1050_LLD_REG_RESET_CALIBRATE, AT42QT1050_LLD_RESETCALIBRATE_RESET, timeout);
169 169
  if(wait4wakeup)
170
    usleep(AT42QT1050_LLD_WATCHDOGTIME_MAX+AT42QT1050_LLD_INITIALIZATION_TIME_MAX+timeout); // watchdog timer+initialization -> datasheet
170
    apalSleep(AT42QT1050_LLD_WATCHDOGTIME_MAX+AT42QT1050_LLD_INITIALIZATION_TIME_MAX+timeout); // watchdog timer+initialization -> datasheet
171 171
  return status;
172 172
}
173 173

  
drivers/DW1000/v1/alld_DW1000.c
4518 4518
/*! @brief sleep or idle the thread in millisecond */
4519 4519
void deca_sleep(unsigned int time_ms)
4520 4520
{
4521
  usleep(time_ms * 1000);
4521
  apalSleep(time_ms * 1000);
4522 4522
}
4523 4523

  
4524 4524
/*! @brief sleep or idle the thread in millisecond */
4525 4525
void Sleep(unsigned int time_ms)
4526 4526
{
4527
  usleep(time_ms * 1000);
4527
  apalSleep(time_ms * 1000);
4528 4528
}
4529 4529

  
4530 4530

  
templates/periphAL.h
54 54
 *
55 55
 * @param[in]   us    Time to sleep until execution continues in microseconds.
56 56
 */
57
void usleep(apalTime_t us);
57
void apalSleep(apalTime_t us);
58 58

  
59 59
#ifdef __cplusplus
60 60
}

Also available in: Unified diff