diff --git a/lib/bsp/standalone/src/changelog.txt b/lib/bsp/standalone/src/changelog.txt index 7bed6031..9221f19c 100755 --- a/lib/bsp/standalone/src/changelog.txt +++ b/lib/bsp/standalone/src/changelog.txt @@ -189,4 +189,7 @@ * 4.2 pkp 07/21/14 Included xil_types.h file in xil_mmu.h which had contained a function * containing type def u32 defined in xil_types.g to resolve issue of * CR#805869 - *****************************************************************************************/ + * 4.2 pkp 08/04/14 Removed unimplemented nanosleep routine from cortexa9/usleep.c as + * it is not possible to generate timer in nanosecond due to limited + * cpu frequency + ******************************************************************************************/ diff --git a/lib/bsp/standalone/src/cortexa9/sleep.h b/lib/bsp/standalone/src/cortexa9/sleep.h index ed7d8118..337fc571 100755 --- a/lib/bsp/standalone/src/cortexa9/sleep.h +++ b/lib/bsp/standalone/src/cortexa9/sleep.h @@ -37,7 +37,6 @@ extern "C" { #endif -void nanosleep(unsigned int nanoseconds); int usleep(unsigned int useconds); int sleep(unsigned int seconds); diff --git a/lib/bsp/standalone/src/cortexa9/usleep.c b/lib/bsp/standalone/src/cortexa9/usleep.c index 21de591c..a8cddf0c 100755 --- a/lib/bsp/standalone/src/cortexa9/usleep.c +++ b/lib/bsp/standalone/src/cortexa9/usleep.c @@ -44,6 +44,9 @@ * ----- -------- -------- ----------------------------------------------- * 1.00a ecm/sdm 11/11/09 First release * 3.07a sgd 07/05/12 Upadted micro sleep function to make use Global Timer +* 4.2 pkp 08/04/14 Removed unimplemented nanosleep routine as it is not +* possible to generate timer in nanosecond due to +* limited cpu frequency * * ******************************************************************************/ @@ -58,23 +61,6 @@ /* Global Timer is always clocked at half of the CPU frequency */ #define COUNTS_PER_USECOND (XPAR_CPU_CORTEXA9_CORE_CLOCK_FREQ_HZ / (2*1000000)) -/*****************************************************************************/ -/** -* -* This is not implemented . -* -* @param nanoseconds -* -* @return None -* -* @note None. -* -****************************************************************************/ -void nanosleep(unsigned int nanoseconds){ - /* not implemented */ - (void)nanoseconds; -} - /*****************************************************************************/ /** *