We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0986b5e commit 4a8f540Copy full SHA for 4a8f540
spi.c
@@ -65,6 +65,7 @@ uint32_t spi_setup(uint32_t speed_hz) {
65
gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_50_MHZ, GPIO_CNF_OUTPUT_ALTFN_PUSHPULL, GPIO_SPI1_SCK | GPIO_SPI1_MOSI);
66
gpio_set_mode(GPIOA, GPIO_MODE_INPUT, GPIO_CNF_INPUT_PULL_UPDOWN, GPIO_SPI1_MISO);
67
gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_50_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO_SPI1_NSS); /* SS is manual */
68
+ gpio_set(GPIOA, GPIO_SPI1_MISO);
69
70
/* Reset SPI, SPI_CR1 register cleared, SPI is disabled */
71
spi_reset(SPI1);
0 commit comments