summaryrefslogtreecommitdiff
path: root/documentation/6.components
diff options
context:
space:
mode:
authorChen Wang <[email protected]>2025-10-10 10:05:06 +0800
committerGitHub <[email protected]>2025-10-10 10:05:06 +0800
commit273185b45aa6f9ec445b47faba688b6b7dbd3f66 (patch)
tree7c0edcbcdd27e15edfb3b83482c5b148cef3c2aa /documentation/6.components
parent1aef0dba719d9080690ca370605fdee947296dec (diff)
doxygen: fix two issues when building with doxygen 1.9.8 (#10768)
* doxygen: remove @return command if function return void When doxygen is upgraded to v1.9.8 (on ubuntu 24.04), doxygen reports: "doxygen error: found documented return type for xxx that does not return anything" for those functions which return void but declare "@return" in doxygen comment. Solution: remove "@return" for those cases, and update guide document for how to write doxgen comment for functions. Signed-off-by: Chen Wang <[email protected]> * doxygen: fixed a minor typo for uart doc This error is found when building with doxygen 1.9.8, but not detecetd on 1.9.1. Signed-off-by: Chen Wang <[email protected]>
Diffstat (limited to 'documentation/6.components')
-rw-r--r--documentation/6.components/device-driver/uart/uart.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/6.components/device-driver/uart/uart.md b/documentation/6.components/device-driver/uart/uart.md
index 8f1784ced3..0a87440b71 100644
--- a/documentation/6.components/device-driver/uart/uart.md
+++ b/documentation/6.components/device-driver/uart/uart.md
@@ -86,7 +86,7 @@ There are three modes of uart data receiving and sending: interrupt mode, pollin
The DMA (Direct Memory Access) transfer mode does not require the CPU to directly control the transfer, and does not have the process of reserving the scene and restoring the scene as they have in the interrupt processing mode. The DMA controller opens a path for directly transferring data to the RAM and the I/O device, which saves CPU resources to do other things. Using DMA transfer can continuously acquire or send a piece of information without taking up interrupts or delays, which is useful when communication is frequent or when large pieces of information are to be transmitted.
->RT_DEVICE_FLAG_STREAM: Stream mode is used to output a string to the serial terminal: when the output character is `"\n"` (corresponding to the hexadecimal value 0x0A), a ``\r"` is automatically output in front (corresponding to hexadecimal value is 0x0D).
+> RT_DEVICE_FLAG_STREAM: Stream mode is used to output a string to the serial terminal: when the output character is `"\n"` (corresponding to the hexadecimal value 0x0A), a `"\r"` is automatically output in front (corresponding to hexadecimal value is 0x0D).
The stream mode `RT_DEVICE_FLAG_STREAM` can be used with the receive and send mode parameter with the "|" logic.