|
|
|
@ -59,7 +59,7 @@ static int stm32f0_spi_tx_rx(struct spi_dev *dev, void *rx_buf, size_t rx_len, |
|
|
|
|
const char *tx = tx_buf; |
|
|
|
|
size_t i; |
|
|
|
|
|
|
|
|
|
gpio_clear(GPIOA, GPIO4); |
|
|
|
|
gpio_clear(GPIOB, GPIO6); |
|
|
|
|
|
|
|
|
|
for (i = 0; i < tx_len; ++i) { |
|
|
|
|
spi_send8(dev->dev_id, *tx++); |
|
|
|
@ -73,7 +73,7 @@ static int stm32f0_spi_tx_rx(struct spi_dev *dev, void *rx_buf, size_t rx_len, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
gpio_set(GPIOA, GPIO4); |
|
|
|
|
gpio_set(GPIOB, GPIO6); |
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|