summaryrefslogtreecommitdiff
path: root/ports/esp32/machine_i2s.c
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2025-11-12 15:47:27 +1100
committerDamien George <damien@micropython.org>2025-11-19 12:12:54 +1100
commita435e4ecfd87b8aa7720d0429acbd4043965b7e5 (patch)
treea3ae87afc989afa8ad3da9d82e9c30f33070ea43 /ports/esp32/machine_i2s.c
parent4766f5680e25d608bb4200d01ca414dd503b2e3f (diff)
esp32: Take global dependencies out of mpconfigport.h.
This is necessary so the ESP-IDF TinyUSB component can include py/mpconfig.h, but is also a good design goal (less creep of symbols into unrelated parts of the code). This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'ports/esp32/machine_i2s.c')
-rw-r--r--ports/esp32/machine_i2s.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/machine_i2s.c b/ports/esp32/machine_i2s.c
index ba6377a76..27b70f1c8 100644
--- a/ports/esp32/machine_i2s.c
+++ b/ports/esp32/machine_i2s.c
@@ -470,4 +470,4 @@ static void mp_machine_i2s_irq_update(machine_i2s_obj_t *self) {
}
}
-MP_REGISTER_ROOT_POINTER(struct _machine_i2s_obj_t *machine_i2s_obj[I2S_NUM_AUTO]);
+MP_REGISTER_ROOT_POINTER(struct _machine_i2s_obj_t *machine_i2s_obj[SOC_I2S_NUM]);