From: Christopher H. <ch...@us...> - 2002-07-26 07:01:09
|
Update of /cvsroot/blob/blob/src/blob In directory usw-pr-cvs1:/tmp/cvs-serv32023 Modified Files: ledasm.S Log Message: revert to 1.3 Index: ledasm.S =================================================================== RCS file: /cvsroot/blob/blob/src/blob/ledasm.S,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- ledasm.S 25 Jul 2002 17:24:36 -0000 1.4 +++ ledasm.S 26 Jul 2002 07:01:01 -0000 1.5 @@ -33,15 +33,16 @@ #endif #include <blob/arch.h> -#include <blob/sa1100.h> + + .text LED: .long LED_GPIO GPIO_BASE: .long 0x90040000 -#define _GPDR 0x00000004 -#define _GPSR 0x00000008 -#define _GPCR 0x0000000c +#define GPDR 0x00000004 +#define GPSR 0x00000008 +#define GPCR 0x0000000c @@ -53,8 +54,8 @@ ledinit: ldr r0, GPIO_BASE ldr r1, LED - str r1, [r0, #_GPDR] /* LED GPIO is output */ - str r1, [r0, #_GPSR] /* turn LED on */ + str r1, [r0, #GPDR] /* LED GPIO is output */ + str r1, [r0, #GPSR] /* turn LED on */ mov pc, lr @@ -65,7 +66,7 @@ led_on: ldr r0, GPIO_BASE ldr r1, LED - str r1, [r0, #_GPSR] + str r1, [r0, #GPSR] mov pc, lr @@ -76,7 +77,7 @@ led_off: ldr r0, GPIO_BASE ldr r1, LED - str r1, [r0, #_GPCR] + str r1, [r0, #GPCR] mov pc, lr |