btashton commented on pull request #1788:
URL: https://github.com/apache/incubator-nuttx/pull/1788#issuecomment-692768262


   @v01d @davids5 I agree that compile time is preferred but I don't see how to 
do it.
   
   There are two things that need to be controlled
   
   1) The pin itself. This is clear how it can be ifdefed away.
   2) The pin to peripheral mapping (iomux in other chips). This problem here 
is that the peripheral struct requires all the pins to to supplied. I cannot 
have MISO for SPI0 and not for SPI1.  So unless we create unique functions for 
SPI0 and SPI1 I don't see how at compile time we could do this. Plus you still 
need to configure the pin mapping on the peripheral to be disconnected.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to