Skip to content

Commit

Permalink
Add documentation to pl011.S
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwio committed Feb 3, 2019
1 parent a51bb69 commit f0f8389
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/pl011.S
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ globalfunc pl011_init
endfunc pl011_init


/*
* Transmit a character; if the character is '\n', first transmit '\r'.
*/
globalfunc pl011_putc
LDR x1, =PLATFORM_PL011_BASE
.macro wait_for_tx_ready
Expand All @@ -60,6 +63,9 @@ globalfunc pl011_putc
endfunc pl011_putc


/*
* Transmit a null-terminated string.
*/
globalfunc pl011_puts
push x20, x30
MOV x20, x0
Expand All @@ -74,6 +80,9 @@ globalfunc pl011_puts
endfunc pl011_puts


/*
* Poll the PL011 UART for a character.
*/
globalfunc pl011_getc
LDR x1, =PLATFORM_PL011_BASE
1:
Expand Down

0 comments on commit f0f8389

Please sign in to comment.