Skip to content

Commit 6189ebf

Browse files
committed
Refactor I/O documentation to include UART device driver details and enhance printf API section
1 parent 5246b17 commit 6189ebf

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

doc/contents/puts.tex

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@
22
% *** Section 2: I/O API ***
33
% ------------------------------------------------
44
\newpage
5-
\chapter{I/O API}
6-
\section{printf(char *s, ...)}
5+
\chapter{I/O \& Time Services}
6+
7+
\section{UART Device Driver}
8+
\subsubsection{Registers \& Constants}
9+
\begin{itemize}
10+
\item \textbf{UART0\_DR} (Data Register), \texttt{0x101f1000}
11+
\item \textbf{UART0\_FR} (Flag Register), \texttt{0x101f1018}
12+
\item \textbf{UART\_FR\_TXFF}, \textbf{UART\_FR\_RXFE}
13+
\end{itemize}
14+
15+
\subsection{API: \texttt{printf(char *s, ...)}}
716
Sends a null-terminated format string over UART. If an incorrect datatype is given
817
for a format specifier, \underline{the behavior is undefined}. If a format specifier
918
is given without a matching argument, it is simply skipped when the string is outputted.
@@ -59,5 +68,3 @@ \subsection*{Examples}
5968
printf("%\n");
6069
// Output: (null)
6170
\end{lstlisting}
62-
63-
\end{document}

0 commit comments

Comments
 (0)