This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

thumb build fix for mcb2100


My last so-called fix was broken.I hand-merged from other sources and then
failed to test if it builds.

sorry.
Jani


--- orig/packages/hal/arm/lpc2xxx/mcb2100/current/ChangeLog +++ mod/packages/hal/arm/lpc2xxx/mcb2100/current/ChangeLog @@ -1,3 +1,8 @@ +2004-11-19 Jani Monoses <jani@iv.ro> + + * include/hal_platform_setup.h: + Fix previous fix. LDR needs its operand prefixed with = not #. + 2004-11-15 Jani Monoses <jani@iv.ro>

* include/hal_platform_setup.h:


--- orig/packages/hal/arm/lpc2xxx/mcb2100/current/include/hal_platform_setup.h +++ mod/packages/hal/arm/lpc2xxx/mcb2100/current/include/hal_platform_setup.h @@ -59,17 +59,15 @@

 	.macro  _led_init
 	ldr r0,=CYGARC_HAL_LPC2XXX_REG_IO_BASE
-	ldr r1,#0x00FF0000	                        // GPIO1 pins
-                                                        // 16..23
-                                                        // outputs
+	ldr r1,=0x00FF0000	//GPIO1 pins 16..23 outputs
 	str r1,[r0,#CYGARC_HAL_LPC2XXX_REG_IO1DIR]
 	.endm

 	.macro _led x
 	ldr r0,=CYGARC_HAL_LPC2XXX_REG_IO_BASE
-	ldr r1,#0x00FF0000
+	ldr r1,=0x00FF0000
 	str r1,[r0,#CYGARC_HAL_LPC2XXX_REG_IO1CLR]
-	ldr r1,#(\x<<16)
+	ldr r1,=(\x<<16)
 	str r1,[r0,#CYGARC_HAL_LPC2XXX_REG_IO1SET]
 	.endm


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]