From 7c483c3b07089c90303f2a0a9435e2b3477e910a Mon Sep 17 00:00:00 2001 From: "Kwabena W. Agyeman" Date: Wed, 19 Jul 2023 13:39:51 -0700 Subject: [PATCH] misc: Fix warnings with MicroPython 1.20 documentation update. --- docs/conf.py | 4 ++++ docs/genrst/index.rst | 1 + docs/library/machine.UART.rst | 23 ----------------------- 3 files changed, 5 insertions(+), 23 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 784bd9b4700d..013eba02c29d 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -144,6 +144,10 @@ "rp2/quickref.rst", "rp2/tutorial/intro.rst", "rp2/tutorial/pio.rst", + "samd/general.rst", + "samd/quickref.rst", + "samd/pinout.rst", + "samd/tutorial/intro.rst", "unix/quickref.rst", "zephyr/general.rst", "zephyr/quickref.rst", diff --git a/docs/genrst/index.rst b/docs/genrst/index.rst index 4e6742c7765e..4994610bfcbe 100644 --- a/docs/genrst/index.rst +++ b/docs/genrst/index.rst @@ -15,6 +15,7 @@ above. The sections below describe the current status of these features. ../differences/python_37.rst ../differences/python_38.rst ../differences/python_39.rst + ../differences/python_310.rst For the features of Python that are implemented by MicroPython, there are sometimes differences in their behaviour compared to standard Python. The diff --git a/docs/library/machine.UART.rst b/docs/library/machine.UART.rst index aa912e174855..3e1d516a8ae5 100644 --- a/docs/library/machine.UART.rst +++ b/docs/library/machine.UART.rst @@ -145,29 +145,6 @@ Methods Send a break condition on the bus. This drives the bus low for a duration longer than required for a normal transmission of a character. -.. method:: UART.flush() - - Waits until all data has been sent. In case of a timeout, an exception is raised. The timeout - duration depends on the tx buffer size and the baud rate. Unless flow control is enabled, a timeout - should not occur. - -.. method:: UART.txdone() - - .. note:: - - The handler will be called whenever any of the following two conditions are met: - - - 8 new characters have been received. - - At least 1 new character is waiting in the Rx buffer and the Rx line has been - silent for the duration of 1 complete frame. - - This means that when the handler function is called there will be between 1 to 8 - characters waiting. - - Returns an irq object. - - Availability: WiPy. - .. method:: UART.flush() Waits until all data has been sent. In case of a timeout, an exception is raised. The timeout