Browse Source

Bugfix: bfg_gpio_setpin_output: Clear alt-function bits via INP_GPIO macro

Luke Dashjr 11 years ago
parent
commit
2e71146a0c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lowl-spi.c

+ 1 - 0
lowl-spi.c

@@ -113,6 +113,7 @@ int spi_open(struct spi_port * const spi, const char * const devpath)
 
 void bfg_gpio_setpin_output(const unsigned pin)
 {
+	INP_GPIO(pin);
 	OUT_GPIO(pin);
 }