L3:
ldr r1,=0xfffff214
ldr r0,[r1]
tst r0,#0x2
beq L3
L4:
ldr r1,=0xffff21c
mov r2,#97
str r2,[r1]
b L4
L3:
ldr r1,=0xfffff214
ldr r0,[r1]
tst r0,#0x2
beq L3
ldr r1,=0xffff21c
mov r2,#97
str r2,[r1]
b L3
@Baud rate
ldr r1,=0xfffff220
ldr r2,=55
str r2,[r1]
@uart
ldr r1,=0xfffff404
ldr r2,=(1<<9)|(1<<10)
str r2,[r1]
@peripheral a
ldr r1,=0xfffff470
ldr r2,=(1<<9)|(1<<10)
str r2,[r1]
原帖由 whamse 于 2009-9-25 17:32 发表
问:
enable PIO to control pin ,disables peripheral control of the pin(LED是这种方法)
disable PIO to contro pin, enable peripheral control of the pin(串口用这种方法)
LED和串口都是外设 他们 ...
enable PIO to control pin ,disables peripheral control of the pin
disable PIO to contro pin, enable peripheral control of the pin
原帖由 voidjackjiang 于 2009-9-25 17:32 发表
还遇见一个问题,就是汇编源文件如果使用了宏,当文件以小s做为后缀时,编译会报如下错误:
internal_relocation (type: OFFSET_IMM) not fixed up
而以大S做为文件后缀,编译则不会报错。
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |