<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-05-23)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>jennifer</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-05-23 Jennifer Averett <Jennifer.Averett@OARcorp.com>

        PR 1795/bsps
        * erc32/Makefile.am, leon2/Makefile.am, leon3/Makefile.am: Add
        rtems_bsp_delay to sparc bsps.
        * erc32/startup/bspdelay.c, leon2/startup/bspdelay.c,
        leon3/startup/bspdelay.c: New files.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/ChangeLog.diff?r1=text&tr1=1.84&r2=text&tr2=1.85&diff_format=h">M</a></td><td width='1%'>1.85</td><td width='100%'>c/src/lib/libbsp/sparc/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/erc32/Makefile.am.diff?r1=text&tr1=1.53&r2=text&tr2=1.54&diff_format=h">M</a></td><td width='1%'>1.54</td><td width='100%'>c/src/lib/libbsp/sparc/erc32/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/erc32/startup/bspdelay.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">c/src/lib/libbsp/sparc/erc32/startup/bspdelay.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/leon2/Makefile.am.diff?r1=text&tr1=1.26&r2=text&tr2=1.27&diff_format=h">M</a></td><td width='1%'>1.27</td><td width='100%'>c/src/lib/libbsp/sparc/leon2/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/leon2/startup/bspdelay.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">c/src/lib/libbsp/sparc/leon2/startup/bspdelay.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/leon3/Makefile.am.diff?r1=text&tr1=1.30&r2=text&tr2=1.31&diff_format=h">M</a></td><td width='1%'>1.31</td><td width='100%'>c/src/lib/libbsp/sparc/leon3/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/sparc/leon3/startup/bspdelay.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">c/src/lib/libbsp/sparc/leon3/startup/bspdelay.c</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/ChangeLog:1.84 rtems/c/src/lib/libbsp/sparc/ChangeLog:1.85
--- rtems/c/src/lib/libbsp/sparc/ChangeLog:1.84 Wed Mar 16 15:05:30 2011
+++ rtems/c/src/lib/libbsp/sparc/ChangeLog      Mon May 23 12:41:29 2011
</font><font color='#997700'>@@ -1,3 +1,11 @@
</font><font color='#000088'>+2011-05-23    Jennifer Averett <Jennifer.Averett@OARcorp.com>
+
+       PR 1795/bsps
+       * erc32/Makefile.am, leon2/Makefile.am, leon3/Makefile.am: Add
+       rtems_bsp_delay to sparc bsps.
+       * erc32/startup/bspdelay.c, leon2/startup/bspdelay.c,
+       leon3/startup/bspdelay.c: New files.
+
</font> 2011-03-16        Jennifer Averett <jennifer.averett@OARcorp.com>
 
        PR 1729/cpukit

<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/erc32/Makefile.am:1.53 rtems/c/src/lib/libbsp/sparc/erc32/Makefile.am:1.54
--- rtems/c/src/lib/libbsp/sparc/erc32/Makefile.am:1.53 Wed Mar 16 15:05:21 2011
+++ rtems/c/src/lib/libbsp/sparc/erc32/Makefile.am      Mon May 23 12:41:30 2011
</font><font color='#997700'>@@ -39,7 +39,8 @@
</font>     ../../sparc/shared/bsppretaskinghook.c ../../shared/bsppost.c \
     ../../shared/bspstart.c ../../shared/bootcard.c ../../shared/bspinit.c \
     ../../shared/sbrk.c startup/setvec.c startup/spurious.c \
<font color='#880000'>-    startup/erc32mec.c startup/boardinit.S startup/bspidle.c
</font><font color='#000088'>+    startup/erc32mec.c startup/boardinit.S startup/bspidle.c \
+    startup/bspdelay.c
</font> # ISR Handler
 libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S
 # gnatsupp

<font color='#006600'>diff -u /dev/null rtems/c/src/lib/libbsp/sparc/erc32/startup/bspdelay.c:1.1
--- /dev/null   Mon May 23 13:11:22 2011
+++ rtems/c/src/lib/libbsp/sparc/erc32/startup/bspdelay.c       Mon May 23 12:41:30 2011
</font><font color='#997700'>@@ -0,0 +1,25 @@
</font><font color='#000088'>+/*
+ *  ERC32 BSP Delay Method
+ *
+ *  COPYRIGHT (c) 1989-2011.
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.com/license/LICENSE.
+ *
+ *  $Id
+ */
+
+#include <bsp.h>
+
+void rtems_bsp_delay(int usecs)
+{
+  uint32_t then;
+
+  then  = ERC32_MEC.Real_Time_Clock_Counter;
+  then += usecs;
+
+  while (ERC32_MEC.Real_Time_Clock_Counter >= then)
+    ;
+}
</font>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/leon2/Makefile.am:1.26 rtems/c/src/lib/libbsp/sparc/leon2/Makefile.am:1.27
--- rtems/c/src/lib/libbsp/sparc/leon2/Makefile.am:1.26 Wed Mar 16 15:05:24 2011
+++ rtems/c/src/lib/libbsp/sparc/leon2/Makefile.am      Mon May 23 12:41:30 2011
</font><font color='#997700'>@@ -1,5 +1,5 @@
</font> ##
<font color='#880000'>-## $Id$
</font><font color='#000088'>+## $Id: Makefile.am,v 1.26 2011/03/16 20:05:24 joel Exp<span style="background-color: #FF0000"> </span>
</font> ##
 
 ACLOCAL_AMFLAGS = -I ../../../../aclocal
<font color='#997700'>@@ -59,7 +59,7 @@
</font>     startup/bspstart.c ../../sparc/shared/bsppretaskinghook.c \
     ../../sparc/shared/bspgetworkarea.c ../../shared/bootcard.c \
     ../../shared/sbrk.c startup/setvec.c startup/spurious.c startup/bspidle.c \
<font color='#880000'>-    ../../shared/bspinit.c
</font><font color='#000088'>+    ../../shared/bspinit.c startup/bspdelay.c
</font> # ISR Handler
 libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S
 # gnatsupp

<font color='#006600'>diff -u /dev/null rtems/c/src/lib/libbsp/sparc/leon2/startup/bspdelay.c:1.1
--- /dev/null   Mon May 23 13:11:22 2011
+++ rtems/c/src/lib/libbsp/sparc/leon2/startup/bspdelay.c       Mon May 23 12:41:30 2011
</font><font color='#997700'>@@ -0,0 +1,25 @@
</font><font color='#000088'>+/*
+ *  LEON2 BSP Delay Method
+ *
+ *  COPYRIGHT (c) 1989-2011.
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.com/license/LICENSE.
+ *
+ *  $Id
+ */
+
+#include <bsp.h>
+
+void rtems_bsp_delay(int usecs)
+{
+  uint32_t then;
+
+  then  = LEON_REG.Timer_Counter_1;
+  then += usecs;
+
+  while (LEON_REG.Timer_Counter_1 >= then)
+    ;
+}
</font>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/sparc/leon3/Makefile.am:1.30 rtems/c/src/lib/libbsp/sparc/leon3/Makefile.am:1.31
--- rtems/c/src/lib/libbsp/sparc/leon3/Makefile.am:1.30 Wed Mar 16 15:05:26 2011
+++ rtems/c/src/lib/libbsp/sparc/leon3/Makefile.am      Mon May 23 12:41:30 2011
</font><font color='#997700'>@@ -1,5 +1,5 @@
</font> ##
<font color='#880000'>-## $Id$
</font><font color='#000088'>+## $Id: Makefile.am,v 1.30 2011/03/16 20:05:26 joel Exp<span style="background-color: #FF0000"> </span>
</font> ##
 
 ACLOCAL_AMFLAGS = -I ../../../../aclocal
<font color='#997700'>@@ -41,8 +41,9 @@
</font>     ../../shared/bsppost.c ../../shared/bootcard.c startup/bspstart.c \
     ../../sparc/shared/bsppretaskinghook.c ../../shared/bsppredriverhook.c \
     ../../sparc/shared/bspgetworkarea.c ../../shared/sbrk.c startup/setvec.c \
<font color='#880000'>-    startup/spurious.c startup/bspidle.S \
</font><font color='#000088'>+    startup/spurious.c startup/bspidle.S startup/bspdelay.c \
</font>     ../../shared/bspinit.c
<font color='#000088'>+
</font> # ISR Handler
 libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S
 # gnatsupp

<font color='#006600'>diff -u /dev/null rtems/c/src/lib/libbsp/sparc/leon3/startup/bspdelay.c:1.1
--- /dev/null   Mon May 23 13:11:22 2011
+++ rtems/c/src/lib/libbsp/sparc/leon3/startup/bspdelay.c       Mon May 23 12:41:30 2011
</font><font color='#997700'>@@ -0,0 +1,25 @@
</font><font color='#000088'>+/*
+ *  LEON3 BSP Delay Method
+ *
+ *  COPYRIGHT (c) 1989-2011.
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.com/license/LICENSE.
+ *
+ *  $Id
+ */
+
+#include <bsp.h>
+
+void rtems_bsp_delay(int usecs)
+{
+  uint32_t then;
+
+  then  =LEON3_Timer_Regs->timer[0].value;
+  then += usecs;
+
+  while (LEON3_Timer_Regs->timer[0].value >= then)
+    ;
+}
</font></pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>