From e12a8861075da009fc911541cb38059f2eb92362 Mon Sep 17 00:00:00 2001 From: IFX-Anusha Date: Fri, 18 Oct 2024 10:56:20 +0530 Subject: [PATCH] ports/psoc6: Modify i2s. Signed-off-by: IFX-Anusha --- ports/psoc6/modmachine.c | 1 - ports/psoc6/modmachine.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/psoc6/modmachine.c b/ports/psoc6/modmachine.c index 4e7097ccccaa8..9d34f412f1940 100644 --- a/ports/psoc6/modmachine.c +++ b/ports/psoc6/modmachine.c @@ -331,7 +331,6 @@ void audio_i2s_set_frequency(uint32_t freq) { mp_raise_msg_varg(&mp_type_ValueError, MP_ERROR_TEXT("Invalid PLL0 frequency %lu"), freq); } cyhal_clock_t clock_pll; - cyhal_clock_t audio_clock; cy_rslt_t result; static bool clock_set_i2s = false; diff --git a/ports/psoc6/modmachine.h b/ports/psoc6/modmachine.h index a374eae6fb371..f45f1b39d02df 100644 --- a/ports/psoc6/modmachine.h +++ b/ports/psoc6/modmachine.h @@ -73,5 +73,6 @@ void machine_deinit(void); mp_obj_t system_reset_cause(void); extern void audio_i2s_set_frequency(uint32_t audio_clock_freq_hz); +extern cyhal_clock_t audio_clock; #endif // MICROPY_INCLUDED_PSOC6_MODMACHINE_H