Ticket #1783: ClockDelayPatch.txt

File ClockDelayPatch.txt, 2.4 KB (added by Jennifer Averett, on Apr 25, 2011 at 6:19:17 PM)

Removes calls to and prototype for Clock_delay method.

Line 
1Index: c/src/lib/libbsp/sparc/erc32/include/bsp.h
2===================================================================
3RCS file: /usr1/CVS/rtems/c/src/lib/libbsp/sparc/erc32/include/bsp.h,v
4retrieving revision 1.32
5diff -u -r1.32 bsp.h
6--- c/src/lib/libbsp/sparc/erc32/include/bsp.h  19 Aug 2009 16:05:38 -0000      1.32
7+++ c/src/lib/libbsp/sparc/erc32/include/bsp.h  25 Apr 2011 19:12:30 -0000
8@@ -51,14 +51,6 @@
9 #define RTEMS_BSP_NETWORK_DRIVER_NAME  "sonic1"
10 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH        rtems_erc32_sonic_driver_attach
11 
12-/*
13- *  Simple spin delay in microsecond units for device drivers.
14- *  This is very dependent on the clock speed of the target.
15- */
16-extern void Clock_delay(uint32_t microseconds);
17-
18-#define delay( microseconds ) Clock_delay(microseconds)
19-
20 /* Constants */
21 
22 /*
23Index: c/src/lib/libbsp/sparc/leon2/include/bsp.h
24===================================================================
25RCS file: /usr1/CVS/rtems/c/src/lib/libbsp/sparc/leon2/include/bsp.h,v
26retrieving revision 1.11
27diff -u -r1.11 bsp.h
28--- c/src/lib/libbsp/sparc/leon2/include/bsp.h  29 Nov 2009 15:33:26 -0000      1.11
29+++ c/src/lib/libbsp/sparc/leon2/include/bsp.h  25 Apr 2011 19:12:30 -0000
30@@ -62,14 +62,6 @@
31  *  The synchronous trap is an arbitrarily chosen software trap.
32  */
33 
34-/*
35- *  Simple spin delay in microsecond units for device drivers.
36- *  This is very dependent on the clock speed of the target.
37- */
38-extern void Clock_delay(uint32_t microseconds);
39-
40-#define delay( microseconds ) Clock_delay(microseconds)
41-
42 extern int   CPU_SPARC_HAS_SNOOPING;
43 
44 /* Constants */
45Index: c/src/lib/libbsp/sparc/leon3/include/bsp.h
46===================================================================
47RCS file: /usr1/CVS/rtems/c/src/lib/libbsp/sparc/leon3/include/bsp.h,v
48retrieving revision 1.13
49diff -u -r1.13 bsp.h
50--- c/src/lib/libbsp/sparc/leon3/include/bsp.h  29 Nov 2009 15:33:27 -0000      1.13
51+++ c/src/lib/libbsp/sparc/leon3/include/bsp.h  25 Apr 2011 19:12:30 -0000
52@@ -71,14 +71,6 @@
53 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH RTEMS_BSP_NETWORK_DRIVER_ATTACH_GRETH
54 #endif
55 
56-/*
57- *  Simple spin delay in microsecond units for device drivers.
58- *  This is very dependent on the clock speed of the target.
59- */
60-
61-extern void Clock_delay(uint32_t microseconds);
62-
63-#define delay( microseconds ) Clock_delay(microseconds)
64 extern int   CPU_SPARC_HAS_SNOOPING;
65 
66