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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
