[rtems commit] gba/include/bsp.h: Remove rtems_bsp_delay()
Joel Sherrill
joel at rtems.org
Fri Mar 21 13:47:40 UTC 2014
Module: rtems
Branch: master
Commit: e31e6b94cd5f81c17cfd0726bc174dd7aad97149
Changeset: http://git.rtems.org/rtems/commit/?id=e31e6b94cd5f81c17cfd0726bc174dd7aad97149
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Mon Mar 17 13:19:51 2014 -0500
gba/include/bsp.h: Remove rtems_bsp_delay()
---
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 6fd6a5d..1b9f480 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 */
More information about the vc
mailing list