Skip to content
Snippets Groups Projects
Commit d43367e0 authored by Thomas Eichinger's avatar Thomas Eichinger
Browse files

cpu/stm32f1: fix wrong bit operation in SPI init

parent 4ef5a97e
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ int spi_conf_pins(spi_t dev)
}
else {
port[i]->CRH &= ~(0xf << ((pin[i] - 8) * 4));
port[i]->CRH &= (crbitval << ((pin[i] - 8) * 4));
port[i]->CRH |= (crbitval << ((pin[i] - 8) * 4));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment