Skip to content

Commit

Permalink
Documentation: so2: assign2-driver-uart: fix an expression mistake ca…
Browse files Browse the repository at this point in the history
…using confusion
  • Loading branch information
hanyujie2002 authored Apr 11, 2024
1 parent 0df51ba commit 4b82ae2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Documentation/teaching/so2/assign2-driver-uart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ The driver must use interrupts for both reception and transmission to reduce lat
`Read` and `write` calls must also be blocking. :command:`Assignments that do not meet these requirements will not be considered.`
It is recommended that you use a buffer for the read routine and another buffer for the write routine for each serial port in the driver.

A blocking read call means that the read routine called from the user-space will be blocked until :command:`at least` one byte is read
(the read buffer in the kernel is empty and no data can be read).
A blocking write call means that the write routine called from the user-space will be blocked until :command:`at least` one byte is written
(the write buffer in the kernel is full and no data can be written).
A blocking read call means that the read routine called from the user-space will be blocked until :command:`at least` one byte is available to be read
(the read buffer in the kernel is not empty and data is available to be read).
A blocking write call means that the write routine called from the user-space will be blocked until :command:`at least` one byte can be written
(the write buffer in the kernel is not full and data can be written).

Buffers Scheme
--------------
Expand Down

0 comments on commit 4b82ae2

Please sign in to comment.