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 2021/07/26 15:46:10 UTC

[GitHub] [incubator-nuttx] michallenc opened a new pull request #4231: adc: add ioctl command to get the number of configured channels

michallenc opened a new pull request #4231:
URL: https://github.com/apache/incubator-nuttx/pull/4231


   ## Summary
   Number of configured ADC channels is currently only defined in board
   level section, typically in xxx_adc.c file. This commit introduces
   ioctl command ANIOC_GET_NCHANNELS that returns the number of configured
   channels which is determined by the driver code. The change can allow the
   applications to be more flexible when it comes to multiple ADC devices
   with different number of configured channels.
   
   The problem was already mentioned in an issue #4217.
   
   ## Impact
   None on current functionality, just adds additional option to get the number of channels to all current ADC drivers.
   
   ## Testing
   Tested with pysimCoder application on iMXRT and STM32 boards.


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



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #4231: adc: add ioctl command to get the number of configured channels

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #4231:
URL: https://github.com/apache/incubator-nuttx/pull/4231


   


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