comparison target-utils/libcommon/serflush.S @ 26:1a3bbab2ea26

loadagent: jump command implemented
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 04 May 2013 05:38:58 +0000
parents
children
comparison
equal deleted inserted replaced
25:796da8d60b23 26:1a3bbab2ea26
1 #include "ns16550.h"
2
3 .text
4 .code 32
5 .global serial_flush
6 serial_flush:
7 ldr r1, =uart_base
8 ldr r2, [r1]
9 1: ldrb r3, [r2, #NS16550_LSR]
10 tst r3, #NS16550_LSR_TEMP
11 beq 1b
12 bx lr