From 65aed475af80904727c88f68fb7d1475e9126362 Mon Sep 17 00:00:00 2001 From: Kinjal Pravinbhai Patel Date: Mon, 4 Aug 2014 12:47:02 +0530 Subject: [PATCH] BSP: removed nanosleep routine from usleep.c This patch removes unimplemented nanosleep routine from cortexa9/usleep.c Signed-off-by: Kinjal Pravinbhai Patel Acked-by: Anirudha Sarangi --- lib/bsp/standalone/src/changelog.txt | 5 ++++- lib/bsp/standalone/src/cortexa9/sleep.h | 1 - lib/bsp/standalone/src/cortexa9/usleep.c | 20 +++----------------- 3 files changed, 7 insertions(+), 19 deletions(-) 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; -} - /*****************************************************************************/ /** *