extmod/machine_adc_block: Factor esp32 ADCBlock bindings to common code.

This is a code factoring to have the Python bindings in one location, and
all the ports use those same bindings.  At this stage only esp32 implements
this class, so the code for the bindings comes from that port.

The documentation is also updated to reflect the esp32's behaviour of
ADCBlock.connect().

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2023-10-25 19:13:11 +11:00
parent 4212799fd8
commit 03eae48847
17 changed files with 371 additions and 257 deletions

View File

@@ -53,6 +53,7 @@ list(APPEND MICROPY_SOURCE_DRIVERS
)
list(APPEND MICROPY_SOURCE_PORT
adc.c
main.c
ppp_set_auth.c
uart.c
@@ -66,7 +67,6 @@ list(APPEND MICROPY_SOURCE_PORT
machine_timer.c
machine_pin.c
machine_touchpad.c
machine_adcblock.c
machine_dac.c
machine_i2c.c
modmachine.c