Skip to content

Commit

Permalink
[stm32] spektrum: remove unneeded gpio_enable_clock
Browse files Browse the repository at this point in the history
that is already done in gpio_setup_output
  • Loading branch information
flixr committed Jun 3, 2014
1 parent 5d10694 commit d78fbe4
Showing 1 changed file with 0 additions and 6 deletions.
Expand Up @@ -704,19 +704,13 @@ void radio_control_spektrum_try_bind(void) {
if (gpio_get(SPEKTRUM_BIND_PIN_PORT, SPEKTRUM_BIND_PIN) != 0)
return;

/* initialise the uarts rx pins as GPIOS */
gpio_enable_clock(SPEKTRUM_PRIMARY_BIND_CONF_PORT);

/* Master receiver Rx push-pull */
gpio_setup_output(SPEKTRUM_PRIMARY_BIND_CONF_PORT, SPEKTRUM_PRIMARY_BIND_CONF_PIN);

/* Master receiver RX line, drive high */
gpio_set(SPEKTRUM_PRIMARY_BIND_CONF_PORT, SPEKTRUM_PRIMARY_BIND_CONF_PIN);

#ifdef RADIO_CONTROL_SPEKTRUM_SECONDARY_PORT

gpio_enable_clock(SPEKTRUM_SECONDARY_BIND_CONF_PORT);

/* Slave receiver Rx push-pull */
gpio_setup_output(SPEKTRUM_SECONDARY_BIND_CONF_PORT, SPEKTRUM_SECONDARY_BIND_CONF_PIN);

Expand Down

0 comments on commit d78fbe4

Please sign in to comment.