changeset 2855:83b696d928ed

* eb40a/current/include/hal_platform_setup.h, eb42/current/include/hal_platform_setup.h, eb55/current/include/hal_platform_setup.h: Tweak LED manipulation routines to allow building for Thumb.
author jld
date Mon, 23 Mar 2009 17:19:53 +0000
parents a4738693c523
children 83eb6becc0ee
files packages/hal/arm/at91/eb40a/current/ChangeLog packages/hal/arm/at91/eb40a/current/include/hal_platform_setup.h packages/hal/arm/at91/eb42/current/ChangeLog packages/hal/arm/at91/eb42/current/include/hal_platform_setup.h packages/hal/arm/at91/eb55/current/ChangeLog packages/hal/arm/at91/eb55/current/include/hal_platform_setup.h
diffstat 6 files changed, 30 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/arm/at91/eb40a/current/ChangeLog
+++ b/packages/hal/arm/at91/eb40a/current/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-23  John Dallaway  <john@dallaway.org.uk>
+
+	* include/hal_platform_setup.h: Tweak LED manipulation routines to
+	allow building for Thumb.
+
 2009-01-31  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_at91_eb40a.cdl: update compiler flags for gcc 4.x
@@ -95,7 +100,7 @@ 2002-07-14  Tim Drury <tdrury@siliconmot
 // ####GPLCOPYRIGHTBEGIN####                                                
 // -------------------------------------------                              
 // This file is part of eCos, the Embedded Configurable Operating System.   
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2009 Free Software Foundation, Inc.
 //
 // This program is free software; you can redistribute it and/or modify     
 // it under the terms of the GNU General Public License as published by     
--- a/packages/hal/arm/at91/eb40a/current/include/hal_platform_setup.h
+++ b/packages/hal/arm/at91/eb40a/current/include/hal_platform_setup.h
@@ -11,7 +11,7 @@
 // ####ECOSGPLCOPYRIGHTBEGIN####                                            
 // -------------------------------------------                              
 // This file is part of eCos, the Embedded Configurable Operating System.   
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2009 Free Software Foundation, Inc.
 //
 // eCos is free software; you can redistribute it and/or modify it under    
 // the terms of the GNU General Public License as published by the Free     
@@ -57,7 +57,7 @@
 
         .macro  _led_init
         ldr     r0,=AT91_PIO
-        mov     r1,#0x000F0000
+        ldr     r1,=0x000F0000
         str     r1,[r0,#AT91_PIO_PER]
         str     r1,[r0,#AT91_PIO_OER]
         _led    0
@@ -66,9 +66,9 @@
         
         .macro _led y
         ldr     r0,=AT91_PIO
-        mov     r1,#0x000F0000
+        ldr     r1,=0x000F0000
         str     r1,[r0,#AT91_PIO_SODR]
-        mov     r1,#(\y<<16)
+        ldr     r1,=(\y<<16)
         str     r1,[r0,#AT91_PIO_CODR]
 #if 0                        
         mov     r0,#0x00100000        
--- a/packages/hal/arm/at91/eb42/current/ChangeLog
+++ b/packages/hal/arm/at91/eb42/current/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-23  John Dallaway  <john@dallaway.org.uk>
+
+	* include/hal_platform_setup.h: Tweak LED manipulation routines to
+	allow building for Thumb.
+
 2009-01-31  Bart Veer <bartv@ecoscentric.com>
 
 	* cdl/hal_arm_at91_eb42.cdl: update compiler flags for gcc 4.x
@@ -57,7 +62,7 @@ 2003-05-12  Nick Garnett  <nickg@balti.c
 // ####GPLCOPYRIGHTBEGIN####                                                
 // -------------------------------------------                              
 // This file is part of eCos, the Embedded Configurable Operating System.   
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2009 Free Software Foundation, Inc.
 //
 // This program is free software; you can redistribute it and/or modify     
 // it under the terms of the GNU General Public License as published by     
--- a/packages/hal/arm/at91/eb42/current/include/hal_platform_setup.h
+++ b/packages/hal/arm/at91/eb42/current/include/hal_platform_setup.h
@@ -11,7 +11,7 @@
 // ####ECOSGPLCOPYRIGHTBEGIN####                                            
 // -------------------------------------------                              
 // This file is part of eCos, the Embedded Configurable Operating System.   
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2009 Free Software Foundation, Inc.
 //
 // eCos is free software; you can redistribute it and/or modify it under    
 // the terms of the GNU General Public License as published by the Free     
@@ -59,7 +59,7 @@
                 
         .macro  _led_init
         ldr     r0,=AT91_PIOB
-        mov     r1,#0x0000FF00
+        ldr     r1,=0x0000FF00
         str     r1,[r0,#AT91_PIO_PER]
         str     r1,[r0,#AT91_PIO_OER]
         _led    0
@@ -68,9 +68,9 @@
         
         .macro _led y
         ldr     r0,=AT91_PIOB
-        mov     r1,#0x0000FF00
+        ldr     r1,=0x0000FF00
         str     r1,[r0,#AT91_PIO_SODR]
-        mov     r1,#(\y<<8)
+        ldr     r1,=(\y<<8)
         str     r1,[r0,#AT91_PIO_CODR]
 #if 0
         mov     r0,#0x00100000
--- a/packages/hal/arm/at91/eb55/current/ChangeLog
+++ b/packages/hal/arm/at91/eb55/current/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-23  John Dallaway  <john@dallaway.org.uk>
+
+	* include/hal_platform_setup.h: Tweak LED manipulation routines to
+	allow building for Thumb.
+
 2009-02-12  Nick Garnett  <nickg@ecoscentric.com>
 
 	* misc/redboot_RAM.ecm:
@@ -75,7 +80,7 @@ 2003-05-12  Nick Garnett  <nickg@balti.c
 // ####GPLCOPYRIGHTBEGIN####                                                
 // -------------------------------------------                              
 // This file is part of eCos, the Embedded Configurable Operating System.   
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2009 Free Software Foundation, Inc.
 //
 // This program is free software; you can redistribute it and/or modify     
 // it under the terms of the GNU General Public License as published by     
--- a/packages/hal/arm/at91/eb55/current/include/hal_platform_setup.h
+++ b/packages/hal/arm/at91/eb55/current/include/hal_platform_setup.h
@@ -11,7 +11,7 @@
 // ####ECOSGPLCOPYRIGHTBEGIN####                                            
 // -------------------------------------------                              
 // This file is part of eCos, the Embedded Configurable Operating System.   
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2009 Free Software Foundation, Inc.
 //
 // eCos is free software; you can redistribute it and/or modify it under    
 // the terms of the GNU General Public License as published by the Free     
@@ -59,7 +59,7 @@
                 
         .macro  _led_init
         ldr     r0,=AT91_PIOB
-        mov     r1,#0x0000FF00
+        ldr     r1,=0x0000FF00
         str     r1,[r0,#AT91_PIO_PER]
         str     r1,[r0,#AT91_PIO_OER]
         _led    0
@@ -67,9 +67,9 @@
         
         .macro _led y
         ldr     r0,=AT91_PIOB
-        mov     r1,#0x0000FF00
+        ldr     r1,=0x0000FF00
         str     r1,[r0,#AT91_PIO_SODR]
-        mov     r1,#(\y<<8)
+        ldr     r1,=(\y<<8)
         str     r1,[r0,#AT91_PIO_CODR]
 #if 0   
         mov     r0,#0x00100000