vf.S 599 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright 2013 Freescale Semiconductor, Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. */
  9. .macro addruart, rp, rv, tmp
  10. ldr \rp, =0x40028000 @ physical
  11. ldr \rv, =0xfe028000 @ virtual
  12. .endm
  13. .macro senduart, rd, rx
  14. strb \rd, [\rx, #0x7] @ Data Register
  15. .endm
  16. .macro busyuart, rd, rx
  17. 1001: ldrb \rd, [\rx, #0x4] @ Status Register 1
  18. tst \rd, #1 << 6 @ TC
  19. beq 1001b @ wait until transmit done
  20. .endm
  21. .macro waituart,rd,rx
  22. .endm