ADC: add macros to call ADC routines

This commit is contained in:
Max Neklyudov 2016-07-13 10:12:14 -06:00 committed by Gregory Nutt
parent b38c6da401
commit b18369d772

View File

@ -72,6 +72,12 @@
# define CONFIG_ADC_FIFOSIZE 255
#endif
#define ADC_RESET(dev) ((dev)->ad_ops->ao_reset((dev)))
#define ADC_SETUP(dev) ((dev)->ad_ops->ao_setup((dev)))
#define ADC_SHUTDOWN(dev) ((dev)->ad_ops->ao_shutdown((dev)))
#define ADC_RXINT(dev) ((dev)->ad_ops->ao_rxint((dev)))
#define ADC_IOCTL(dev,cmd,arg) ((dev)->ad_ops->ao_ioctl((dev),(cmd),(arg)))
/************************************************************************************
* Public Types
************************************************************************************/