Nate Goebel. 1981-2013.
My brother departed this world Sunday evening... he was with family, without pain, at peace,
and had no doubt he was headed to a better place.
I sincerely thank everyone who donated to help him
and his family.
February 03, 201011:31PM EDT
ldr r0, =GPIOA
ldr r1, [r0, #0x400] @ r1 = GPIOA_DIR
bic r2, r1, #(1<<1) @ A1 = input
str r2, [r0, #0x400] @ write back direction
ldr r2, [r0, #4*(1<<1)] @ read A1
str r1, [r0, #0x400] @ write back original GPIOA_DIR
ands r2, r2, #(1<<1) @ test A1 <--------Does this line look like a correct test?
beq immediate @ boot immediately if unset
mov r0, #0x5000000 /* Approximately 7 seconds */
1: subs r0, r0, #1 /* just to prove we are running */
b boot_of /* branch to OF */
With great power comes great responsibility.Pastie wisely.