Damien George
91a3f18391
extmod/machine_i2s: Factor comments, some enums and macros.
...
Signed-off-by: Damien George <damien@micropython.org>
2023-10-20 17:40:17 +11:00
Damien George
46ae3b5a34
extmod/machine_i2s: Factor init_helper argument parsing.
...
Signed-off-by: Damien George <damien@micropython.org>
2023-10-20 17:40:17 +11:00
Damien George
676f9bb78c
extmod/machine_i2s: Factor print function.
...
Signed-off-by: Damien George <damien@micropython.org>
2023-10-20 17:40:17 +11:00
Damien George
1477986815
extmod/machine_i2s: Factor I2S.irq method.
...
Signed-off-by: Damien George <damien@micropython.org>
2023-10-20 17:40:17 +11:00
Damien George
cdd9ad8d62
extmod/machine_i2s: Factor I2S.shift method.
...
It's exactly the same for all four port implementations.
Signed-off-by: Damien George <damien@micropython.org>
2023-10-20 17:40:17 +11:00
Damien George
a2d7e0da0b
extmod/machine_i2s: Factor stream and ring-buf code.
...
Signed-off-by: Damien George <damien@micropython.org>
2023-10-20 17:40:17 +11:00
Damien George
f2f3ef162d
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>
2023-10-20 17:39:57 +11:00