高中生
最后登录1970-1-1
在线时间 小时
注册时间2017-9-15
|
按教程点亮了R灯,然后我想点亮G灯,但一直点不亮不知道为什么,求帮忙看下:
.global _start
_start:
ldr r0, =0X020C4068
ldr r1, =0XFFFFFFFF
str r1, [r0]
ldr r0, =0X020C406C
str r1, [r0]
ldr r0, =0X020C4070
str r1, [r0]
ldr r0, =0X020C4074
str r1, [r0]
ldr r0, =0X020C4078
str r1, [r0]
ldr r0, =0X020C407C
str r1, [r0]
ldr r0, =0X020C4080
str r1, [r0]
ldr r0, =0X020E01E0 //GOIO AF
ldr r1, =0X05
str r1, [r0]
ldr r0, =0X020E040C //GPIO PAD
ldr r1, =0X1F838
str r1, [r0]
ldr r0, =0X020A8004 //GPIO DIR
ldr r1, =0X10
str r1, [r0]
ldr r0, =0X020A8000 //GPIO OUTPUT LOW
ldr r1, =0X00
str r1, [r0]
loop:
b loop
这己经是最简程序了,可以点亮R灯,但G,B灯都点不亮,求助!!!!!!!!
|
|