change log for rtems (2011-05-23)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon May 23 18:11:22 UTC 2011


 *jennifer*:
2011-05-23	Jennifer Averett <Jennifer.Averett at 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.

M   1.85  c/src/lib/libbsp/sparc/ChangeLog
M   1.54  c/src/lib/libbsp/sparc/erc32/Makefile.am
A    1.1  c/src/lib/libbsp/sparc/erc32/startup/bspdelay.c
M   1.27  c/src/lib/libbsp/sparc/leon2/Makefile.am
A    1.1  c/src/lib/libbsp/sparc/leon2/startup/bspdelay.c
M   1.31  c/src/lib/libbsp/sparc/leon3/Makefile.am
A    1.1  c/src/lib/libbsp/sparc/leon3/startup/bspdelay.c

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
@@ -1,3 +1,11 @@
+2011-05-23	Jennifer Averett <Jennifer.Averett at 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.
+
 2011-03-16	Jennifer Averett <jennifer.averett at OARcorp.com>
 
 	PR 1729/cpukit

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
@@ -39,7 +39,8 @@
     ../../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 \
-    startup/erc32mec.c startup/boardinit.S startup/bspidle.c
+    startup/erc32mec.c startup/boardinit.S startup/bspidle.c \
+    startup/bspdelay.c
 # ISR Handler
 libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S
 # gnatsupp

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
@@ -0,0 +1,25 @@
+/*
+ *  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)
+    ;
+}

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
@@ -1,5 +1,5 @@
 ##
-## $Id$
+## $Id: Makefile.am,v 1.26 2011/03/16 20:05:24 joel Exp 
 ##
 
 ACLOCAL_AMFLAGS = -I ../../../../aclocal
@@ -59,7 +59,7 @@
     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 \
-    ../../shared/bspinit.c
+    ../../shared/bspinit.c startup/bspdelay.c
 # ISR Handler
 libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S
 # gnatsupp

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
@@ -0,0 +1,25 @@
+/*
+ *  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)
+    ;
+}

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
@@ -1,5 +1,5 @@
 ##
-## $Id$
+## $Id: Makefile.am,v 1.30 2011/03/16 20:05:26 joel Exp 
 ##
 
 ACLOCAL_AMFLAGS = -I ../../../../aclocal
@@ -41,8 +41,9 @@
     ../../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 \
-    startup/spurious.c startup/bspidle.S \
+    startup/spurious.c startup/bspidle.S startup/bspdelay.c \
     ../../shared/bspinit.c
+
 # ISR Handler
 libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S
 # gnatsupp

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
@@ -0,0 +1,25 @@
+/*
+ *  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)
+    ;
+}



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110523/c5c4cd04/attachment-0001.html>


More information about the vc mailing list