summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lechner <david@pybricks.com>2025-11-25 23:33:34 +0000
committerDamien George <damien@micropython.org>2025-12-01 16:12:09 +1100
commit8dc05cdba35063e5a9218fa71488c13b008cb4c9 (patch)
tree56bc9680cacb9a8f7262e4454c6b9177223a855a
parentbfacf821f448c4d99055738e90de81e50dcb156c (diff)
rp2/main: Add guard around machine_i2s_init0().
Add a #if MICROPY_PY_MACHINE_I2S guard around the call to machine_i2s_init0() in ports/rp2/main.c. This matches the existing guard around machine_i2s_deinit_all() in the same function. Signed-off-by: David Lechner <david@pybricks.com>
-rw-r--r--ports/rp2/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/rp2/main.c b/ports/rp2/main.c
index f01522f24..50946b0a5 100644
--- a/ports/rp2/main.c
+++ b/ports/rp2/main.c
@@ -192,7 +192,9 @@ int main(int argc, char **argv) {
machine_pin_init();
rp2_pio_init();
rp2_dma_init();
+ #if MICROPY_PY_MACHINE_I2S
machine_i2s_init0();
+ #endif
#if MICROPY_PY_BLUETOOTH
mp_bluetooth_hci_init();