You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/03/09 06:47:03 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a change in pull request #5697: boards/arm/stm32[f7|l4]: fix SPI chip select GPIO access

pkarashchenko commented on a change in pull request #5697:
URL: https://github.com/apache/incubator-nuttx/pull/5697#discussion_r822332740



##########
File path: boards/arm/stm32/nucleo-f429zi/src/stm32_spi.c
##########
@@ -217,35 +248,41 @@ uint8_t stm32_spi1status(FAR struct spi_dev_s *dev, uint32_t devid)
 
 #ifdef CONFIG_STM32F4_SPI2
 void stm32_spi2select(FAR struct spi_dev_s *dev,
-                      uint32_t devid,
-                      bool selected)
+                      uint32_t devid, bool selected)
 {
+  uint32_t index = SPIDEVID_INDEX(devid) + 4;
+

Review comment:
       Ok. I will rework.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org