Skip to content

Commit

Permalink
refact(rad1o): Disable the CPU clock outputs in pin_setup()
Browse files Browse the repository at this point in the history
  • Loading branch information
schneider42 committed Aug 5, 2017
1 parent 03e472e commit 4b0bb0e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions firmware/common/hackrf_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,12 +648,6 @@ void cpu_clock_init(void)
// CCU2_CLK_APLL_CFG = 0;
// CCU2_CLK_SDIO_CFG = 0;
#endif

#ifdef RAD1O
/* 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);
#endif
}


Expand Down Expand Up @@ -816,6 +810,10 @@ void pin_setup(void) {
/* Safe state: start with VAA turned off: */
disable_rf_power();

/* 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);

scu_pinmux(SCU_PINMUX_GPIO3_10, SCU_GPIO_PDN | SCU_CONF_FUNCTION0);
scu_pinmux(SCU_PINMUX_GPIO3_11, SCU_GPIO_PDN | SCU_CONF_FUNCTION0);

Expand Down

0 comments on commit 4b0bb0e

Please sign in to comment.