mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
extmod/machine_i2s: Factor ports' I2S Python bindings to common code.
This factors the basic top-level I2S class code from the ports into extmod/machine_i2s.c: - I2S class definition and method table. - The init and deinit method wrappers. - The make_new code. Further factoring will follow. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -528,7 +528,7 @@ soft_reset:
|
||||
pyb_usb_init0();
|
||||
#endif
|
||||
|
||||
#if MICROPY_HW_ENABLE_I2S
|
||||
#if MICROPY_PY_MACHINE_I2S
|
||||
machine_i2s_init0();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user