[PATCH 3/3] bsp-howto/console: Fix typos
Matthew Joyce
matthew.joyce at embedded-brains.de
Thu Mar 30 12:51:14 UTC 2023
From: Matt Joyce <matthew.joyce at embedded-brains.de>
---
bsp-howto/console.rst | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/bsp-howto/console.rst b/bsp-howto/console.rst
index 71e156d..9056e0f 100644
--- a/bsp-howto/console.rst
+++ b/bsp-howto/console.rst
@@ -236,8 +236,8 @@ character has been received or the transmitter is ready for another character.
In the simplest case, the :c:func:`my_driver_interrupt_handler` will have to
check the status of the serial device and determine what caused the interrupt.
-The following describes the operation of an
-:c:func:`my_driver_interrupt_handler` which has to do this:
+The following describes the operation of
+:c:func:`my_driver_interrupt_handler`:
.. code-block:: c
@@ -279,15 +279,15 @@ The following describes the operation of an
}
The :c:func:`my_driver_interrupt_write()` handler is responsible for telling
-the device that the ``n`` characters at ``buf`` are to be transmitted. It the
-value ``n`` is zero to indicate that no more characters are to send. The
+the device that the ``n`` characters at ``buf`` are to be transmitted. If the
+value ``n`` is zero, it indicates that there are no more characters to send. The
driver can disable the transmit interrupts now. This routine is invoked either
from task context with disabled interrupts to start a new transmission process
with exactly one character in case of an idle output state or from the
interrupt handler to refill the transmitter. If the routine is invoked to
-start the transmit process the output state will become busy and Termios starts
+start the transmit process, the output state will become busy and Termios starts
to fill the output buffer. If the transmit interrupt arises before Termios was
-able to fill the transmit buffer you will end up with one interrupt per
+able to fill the transmit buffer, you will end up with one interrupt per
character.
.. code-block:: c
@@ -371,7 +371,7 @@ called by Termios. The device registered as :file:`/dev/console` (or
}
/*
- * Return true to indicate a successful set attributes, and false
+ * Return true to indicate a successful first open, and false
* otherwise.
*/
return true;
--
2.35.3
More information about the devel
mailing list