FreeCalypso > hg > freecalypso-sw
view target-utils/libcommon/serflush.S @ 57:10996c267de4
loadtools old buglet: off by 1 error in the max-arguments logic in cmd parsing
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 24 Jun 2013 05:24:19 +0000 |
parents | 1a3bbab2ea26 |
children |
line wrap: on
line source
#include "ns16550.h" .text .code 32 .global serial_flush serial_flush: ldr r1, =uart_base ldr r2, [r1] 1: ldrb r3, [r2, #NS16550_LSR] tst r3, #NS16550_LSR_TEMP beq 1b bx lr