From e44fe57a4f0a063760d242c9fe8fa7cb794c54b9 Mon Sep 17 00:00:00 2001 From: NikhitaR-IFX Date: Fri, 15 Nov 2024 15:36:29 +0530 Subject: [PATCH] ports/psoc6: Remove led init used for testing. Signed-off-by: NikhitaR-IFX --- docs/psoc6/quickref.rst | 2 +- ports/psoc6/machine_pdm_pcm.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/psoc6/quickref.rst b/docs/psoc6/quickref.rst index 7948e46bcb13..a765fbaa2f5b 100644 --- a/docs/psoc6/quickref.rst +++ b/docs/psoc6/quickref.rst @@ -669,7 +669,7 @@ Methods Set the callback.``handler`` is called when ``buf`` becomes full (``readinto`` method). Setting a callback changes the ``readinto`` method to non-blocking operation. - ``handler`` is called in the context of the MicroPython scheduler. + ``handler`` is called in the context of the MicroPython scheduler. .. method:: PDM_PCM.gain(left_gain, right_gain) diff --git a/ports/psoc6/machine_pdm_pcm.c b/ports/psoc6/machine_pdm_pcm.c index cfb3608a2979..be115437b4d1 100644 --- a/ports/psoc6/machine_pdm_pcm.c +++ b/ports/psoc6/machine_pdm_pcm.c @@ -545,8 +545,6 @@ static void mp_machine_pdm_pcm_init_helper(machine_pdm_pcm_obj_t *self, mp_arg_v static void mp_machine_pdm_pcm_init(machine_pdm_pcm_obj_t *self) { mplogger_print("mp_machine_pdm_pcm_init \r\n"); pdm_pcm_rx_init(self); - cyhal_gpio_init(CYBSP_USER_LED, CYHAL_GPIO_DIR_OUTPUT, CYHAL_GPIO_DRIVE_STRONG, true); - cyhal_gpio_write(CYBSP_USER_LED, 1); } // deinit()