drivers: adc: mcux_adc12: add driver for the NXP ADC12 module

Add MCUX driver shim for the NXP Kinetis 12-bit ADC module (ADC12).

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2019-05-16 08:17:18 +02:00 committed by Maureen Helm
commit 683ca77620
7 changed files with 453 additions and 0 deletions

View file

@ -12,6 +12,11 @@ config HAS_MCUX
if HAS_MCUX
config HAS_MCUX_ADC12
bool
help
Set if the 12-bit ADC (ADC12) module is present in the SoC.
config HAS_MCUX_ADC16
bool
help

View file

@ -11,6 +11,7 @@ zephyr_library_compile_definitions_ifdef(
)
zephyr_sources_ifdef(CONFIG_HAS_MCUX_CACHE fsl_cache.c)
zephyr_sources_ifdef(CONFIG_ADC_MCUX_ADC12 fsl_adc12.c)
zephyr_sources_ifdef(CONFIG_ADC_MCUX_ADC16 fsl_adc16.c)
zephyr_sources_ifdef(CONFIG_ETH_MCUX fsl_enet.c)
zephyr_sources_ifdef(CONFIG_I2C_MCUX fsl_i2c.c)