From 1f38354416ba15f0cf506a97b73fb12f25ad4b78 Mon Sep 17 00:00:00 2001 From: Tobias Schneider Date: Mon, 27 Jul 2015 09:25:18 +0200 Subject: [PATCH] fix(hackrf-core): Disable unused clock outputs They generate noise and are most likely not used --- firmware/common/hackrf_core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/common/hackrf_core.c b/firmware/common/hackrf_core.c index 21d0500c..f30fd470 100644 --- a/firmware/common/hackrf_core.c +++ b/firmware/common/hackrf_core.c @@ -594,7 +594,11 @@ void pin_setup(void) { scu_pinmux(SCU_PINMUX_LED3, SCU_GPIO_NOPULL); scu_pinmux(SCU_PINMUX_EN1V8, SCU_GPIO_NOPULL); - + + /* Disable unused clock outputs. They generate noise. */ + scu_pinmux(CLK0, SCU_CLK_IN | SCU_CONF_FUNCTION7); + scu_pinmux(CLK2, SCU_CLK_IN | SCU_CONF_FUNCTION7); + /* Configure USB indicators */ #if (defined JELLYBEAN || defined JAWBREAKER) scu_pinmux(SCU_PINMUX_USB_LED0, SCU_CONF_FUNCTION3);