From 59e36120d9181be88e54076f65e29bda593d0a16 Mon Sep 17 00:00:00 2001 From: Sighthesia <87855491+Sighthesia@users.noreply.github.com> Date: Tue, 10 Jun 2025 22:57:31 +0800 Subject: [PATCH] ports: Add conditional compilation for py_fir_init0() --- ports/mimxrt/main.c | 2 ++ ports/rp2/main.c | 2 ++ ports/stm32/main.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/ports/mimxrt/main.c b/ports/mimxrt/main.c index e0af48db9..0db6537e6 100644 --- a/ports/mimxrt/main.c +++ b/ports/mimxrt/main.c @@ -95,7 +95,9 @@ soft_reset: mp_init(); // Initialise low-level sub-systems. + #if MICROPY_PY_FIR py_fir_init0(); + #endif // MICROPY_PY_FIR #if MICROPY_PY_TV py_tv_init0(); #endif diff --git a/ports/rp2/main.c b/ports/rp2/main.c index 1fe1721da..9ba627e35 100644 --- a/ports/rp2/main.c +++ b/ports/rp2/main.c @@ -180,7 +180,9 @@ soft_reset: fb_alloc_init0(); framebuffer_init0(); + #if MICROPY_PY_FIR py_fir_init0(); + #endif // MICROPY_PY_FIR #if MICROPY_PY_CSI if (omv_csi_init() != 0) { diff --git a/ports/stm32/main.c b/ports/stm32/main.c index ed0a13d9b..9667faf35 100644 --- a/ports/stm32/main.c +++ b/ports/stm32/main.c @@ -191,7 +191,9 @@ soft_reset: mp_init(); // Initialise low-level sub-systems. + #if MICROPY_PY_FIR py_fir_init0(); + #endif // MICROPY_PY_FIR #if MICROPY_PY_TV py_tv_init0(); #endif