This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_ADC_NPCX

Nuvoton NPCX embedded controller (EC) ADC driver

Type: bool

Help

Enable support for NPCX ADC driver. In NPCX7 series, it includes a
10-bit resolution Analog-to-Digital Converter (ADC). Up to 10 voltage
inputs can be measured and a internal voltage reference (VREF), 2.816V
(typical) is used for measurement.

Help

Enable support for NPCX ADC driver. In NPCX9 series, it includes a
10-bit resolution Analog-to-Digital Converter (ADC). Up to 12 voltage
inputs can be measured and a internal voltage reference (VREF), 2.816V
(typical) is used for measurement.

Help

This option enables the ADC driver for NPCX family of
processors.
Say y if you wish to use ADC channels on NPCX MCU.

Direct dependencies

(ADC && SOC_SERIES_NPCX7) || (ADC && SOC_SERIES_NPCX9) || (SOC_FAMILY_NPCX && ADC)

(Includes any dependencies from ifs and menus.)

Defaults

  • y

  • y

Kconfig definitions

At soc/arm/nuvoton_npcx/npcx7/Kconfig.defconfig.series:43

Included via Kconfig:8Kconfig.zephyr:27soc/arm/nuvoton_npcx/Kconfig.defconfig:6

Menu path: (Top)

config ADC_NPCX
    bool
    default y
    depends on ADC && SOC_SERIES_NPCX7
    help
      Enable support for NPCX ADC driver. In NPCX7 series, it includes a
      10-bit resolution Analog-to-Digital Converter (ADC). Up to 10 voltage
      inputs can be measured and a internal voltage reference (VREF), 2.816V
      (typical) is used for measurement.

At soc/arm/nuvoton_npcx/npcx9/Kconfig.defconfig.series:53

Included via Kconfig:8Kconfig.zephyr:27soc/arm/nuvoton_npcx/Kconfig.defconfig:6

Menu path: (Top)

config ADC_NPCX
    bool
    default y
    depends on ADC && SOC_SERIES_NPCX9
    help
      Enable support for NPCX ADC driver. In NPCX9 series, it includes a
      10-bit resolution Analog-to-Digital Converter (ADC). Up to 12 voltage
      inputs can be measured and a internal voltage reference (VREF), 2.816V
      (typical) is used for measurement.

At drivers/adc/Kconfig.npcx:6

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:48drivers/adc/Kconfig:59

Menu path: (Top) → Device Drivers → ADC drivers

config ADC_NPCX
    bool "Nuvoton NPCX embedded controller (EC) ADC driver"
    depends on SOC_FAMILY_NPCX && ADC
    help
      This option enables the ADC driver for NPCX family of
      processors.
      Say y if you wish to use ADC channels on NPCX MCU.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)