samd21: spi: fix power regression
The MISO pin cannot be left floating as it increases power consumption
This commit is contained in:
parent
25e18dad88
commit
68f9916ab6
@ -158,7 +158,7 @@ int spi_init_master(spi_t dev, spi_conf_t conf, spi_speed_t speed)
|
||||
* - init cpha/cpol, BAUD.reg
|
||||
* - enable SPI
|
||||
*/
|
||||
|
||||
gpio_init(pin_miso, GPIO_IN_PD);
|
||||
gpio_init_sercom(pin_sclk, mux_sclk);
|
||||
gpio_init_sercom(pin_miso, mux_miso);
|
||||
gpio_init_sercom(pin_mosi, mux_mosi);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user