[PATCH 03/25] gba/include/bsp.h: Remove rtems_bsp_delay()

Joel Sherrill joel.sherrill at oarcorp.com
Thu Mar 20 18:28:59 UTC 2014


---
 c/src/lib/libbsp/arm/gba/include/bsp.h |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/c/src/lib/libbsp/arm/gba/include/bsp.h b/c/src/lib/libbsp/arm/gba/include/bsp.h
index f5c108d..00e7d61 100644
--- a/c/src/lib/libbsp/arm/gba/include/bsp.h
+++ b/c/src/lib/libbsp/arm/gba/include/bsp.h
@@ -37,18 +37,6 @@ extern "C" {
 /** Define operation count for Tests */
 #define OPERATION_COUNT 10
 
-/**
- *  Simple spin delay in microsecond units for device drivers.
- *  This is very dependent on the clock speed of the target.
- */
-#define rtems_bsp_delay( microseconds ) \
-  { \
-    uint32_t i; \
-    for(i = 0; i<microseconds;) {i++;} \
-    uint32_t  _cnt = _microseconds; \
-    __asm__ volatile ("0: nop; sub %0, %0, #1; cmp %0,#0; bne 0b" : "=c"(_cnt) : "0"(_cnt)); \
-  }
-
 /** gba_zero_memory library function in start.S  */
 extern void gba_zero_memory(int start, int stop);
 /** gba_move_memory library function in start.S  */
-- 
1.7.1




More information about the devel mailing list