@@ -20,10 +20,10 @@ extern "C" {
2020#endif
2121
2222 /**
23- * @enum fmt_state_t
24- * @brief Finite-state machine for parsing format strings.
25- *
26- * The printf parser moves between these states as it consumes characters.
23+ * @enum fmt_state_t
24+ * @brief Finite-state machine for parsing format strings.
25+ *
26+ * The printf parser moves between these states as it consumes characters.
2727 */
2828 typedef enum {
2929 FMT_TEXT , /**< Normal character output. */
@@ -32,7 +32,7 @@ extern "C" {
3232 } fmt_state_t ;
3333
3434 /**
35- * @brief Bit flags controlling number formatting.
35+ * @brief Bit flags controlling number formatting.
3636 */
3737 enum {
3838 FLAG_LONG = 1 << 0 , /**< 'l' length modifier (long / long long). */
@@ -42,48 +42,48 @@ extern "C" {
4242 };
4343
4444 /**
45- * @struct Format_State
46- * @brief Stores the current numeric value and formatting flags.
47- *
48- * This structure is passed to integer-formatting functions during printf
49- * processing. It represents the transient state for one format specifier.
45+ * @struct Format_State
46+ * @brief Stores the current numeric value and formatting flags.
47+ *
48+ * This structure is passed to integer-formatting functions during printf
49+ * processing. It represents the transient state for one format specifier.
5050 */
5151 typedef struct {
5252 unsigned long long num ; /**< The numeric value to be printed. */
5353 uint8_t flags ; /**< Bitmask of FLAG_* constants describing format. */
5454 } Format_State ;
5555
5656 /**
57- * @brief Prints a null-terminated string over UART.
58- *
59- * @param s The string to output. If NULL, no output occurs.
57+ * @brief Transmit a null-terminated string over UART.
58+ *
59+ * @param s The string to output. If NULL, no output occurs.
6060 */
6161 void puts (const char * s );
6262
6363 /**
64- * @brief Prints a formatted string to the UART output.
65- *
66- * @param fmt Format string (supports %c, %s, %d, %u, %x, %X, %p, %%).
67- * @param ... Variable arguments matching the format specifiers.
68- *
69- * This function supports a minimal subset of standard C printf:
70- * - Signed/unsigned integers (`%d`, `%u`)
71- * - Hexadecimal (`%x`, `%X`)
72- * - Pointers (`%p`)
73- * - Characters (`%c`)
74- * - Strings (`%s`)
75- * - Length modifier (`%l`)
64+ * @brief Prints a formatted string to the UART output.
65+ *
66+ * @param fmt Format string (supports %c, %s, %d, %u, %x, %X, %p, %%).
67+ * @param ... Variable arguments matching the format specifiers.
68+ *
69+ * This function supports a minimal subset of standard C printf:
70+ * - Signed/unsigned integers (`%d`, `%u`)
71+ * - Hexadecimal (`%x`, `%X`)
72+ * - Pointers (`%p`)
73+ * - Characters (`%c`)
74+ * - Strings (`%s`)
75+ * - Length modifier (`%l`)
7676 */
7777 void printf (const char * fmt , ...);
7878
7979 /**
80- * @brief Reads a line of text from UART into the given buffer.
81- *
82- * @param buffer Destination buffer.
83- * @param length Maximum buffer length (including null terminator).
84- *
85- * Blocks until a newline or carriage return is received.
86- * Supports backspace editing and echoes input characters.
80+ * @brief Reads a line of text from UART into the given buffer.
81+ *
82+ * @param buffer Destination buffer.
83+ * @param length Maximum buffer length (including null terminator).
84+ *
85+ * @note Blocks until a newline or carriage return is received.
86+ * Supports backspace editing and echoes input characters.
8787 */
8888 void getlines (char * restrict buffer , size_t length );
8989
0 commit comments