[rtems commit] mrm332/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: 3420b6b76f3205339704be3ab702679d15a859c9
Changeset: http://git.rtems.org/rtems/commit/?id=3420b6b76f3205339704be3ab702679d15a859c9
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Mon Mar 17 13:25:48 2014 -0500
mrm332/include/bsp.h: Remove rtems_bsp_delay()
---
c/src/lib/libbsp/m68k/mrm332/include/bsp.h | 20 +++-----------------
1 files changed, 3 insertions(+), 17 deletions(-)
diff --git a/c/src/lib/libbsp/m68k/mrm332/include/bsp.h b/c/src/lib/libbsp/m68k/mrm332/include/bsp.h
index 615c24a..456b315 100644
--- a/c/src/lib/libbsp/m68k/mrm332/include/bsp.h
+++ b/c/src/lib/libbsp/m68k/mrm332/include/bsp.h
@@ -1,7 +1,9 @@
/* bsp.h
*
* This include file contains all mrm board IO definitions.
- *
+ */
+
+/*
* COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
@@ -33,22 +35,6 @@ extern "C" {
#define CONSOLE_SCI
-/*
- * 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 ) \
- { register uint32_t _delay=(microseconds); \
- register uint32_t _tmp=123; \
- __asm__ volatile( "0: \
- nbcd %0 ; \
- nbcd %0 ; \
- dbf %1,0b" \
- : "=d" (_tmp), "=d" (_delay) \
- : "0" (_tmp), "1" (_delay) ); \
- }
-
/* externals */
extern char _etext[];
More information about the vc
mailing list