atheros_wifi/custom_src/osal/osal.c
A_VOID qosal_usec_delay(A_UINT32 uSec) {
  uint32_t count_delay;
  uint32_t ms_delay;
  uint32_t start;

  if (uSec < 1000) {
    count_delay = (osKernelGetSysTimerFreq() / 1000000) * uSec;
    start = osKernelGetSysTimerCount();
    while ((osKernelGetSysTimerCount() - start) < count_delay);
  } else {
    ms_delay = uSec / 1000;
    if (uSec - (ms_delay * 1000) > 500) {
      ms_delay++;
    }
    osDelay(ms_delay);
  }
  return;
}
/*
 * Description: This function is used for delay the OS task for specific time 
 * in micro secs
 *
 * Params: uSec
 *          
 * Returns: None 
*/
This function is used for delay the OS task for specific time
in micro secs

uSec

None
This function is used for delay the OS task for specific time in micro secs uSec None
A_VOID qosal_usec_delay(A_UINT32 uSec) {
  uint32_t count_delay;
  uint32_t ms_delay;
  uint32_t start;
  if (uSec < 1000) {
    count_delay = (osKernelGetSysTimerFreq() / 1000000) * uSec;
    start = osKernelGetSysTimerCount();
    while ((osKernelGetSysTimerCount() - start) < count_delay);
  } else {
    ms_delay = uSec / 1000;
    if (uSec - (ms_delay * 1000) > 500) {
      ms_delay++;
    }
    osDelay(ms_delay);
  }
  return;
}
A_VOID qosal_usec_delay ( A_UINT32 uSec ) { uint32_t count_delay ; uint32_t ms_delay ; uint32_t start ; if ( uSec < 1000 ) { count_delay = ( osKernelGetSysTimerFreq ( ) / 1000000 ) * uSec ; start = osKernelGetSysTimerCount ( ) ; while ( ( osKernelGetSysTimerCount ( ) - start ) < count_delay ) ; } else { ms_delay = uSec / 1000 ; if ( uSec - ( ms_delay * 1000 ) > 500 ) { ms_delay ++ ; } osDelay ( ms_delay ) ; } return ; }
Description: This function is used for delay the OS task for specific time
 in micro secs
Description : This function is used for delay the OS task for specific time in micro secs