forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: adc: add adc support in npcm4 series
NPCM4 includes a 10-bit resolution Analog-to-Digital Converter (ADC). Up to 14 voltage inputs can be measured and an internal voltage reference (VREF), 2.048V (typical) is used for measurement. Each input channel is assigned a separate result register, which is updated at the end of the conversion. The CL also includes: — Add npcm adc device tree declarations. — Zephyr adc api implementation. Signed-off-by: Tyrone Ting <[email protected]>
- Loading branch information
Showing
9 changed files
with
565 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# NPCM ADC driver configuration options | ||
|
||
# Copyright (c) 2024 Nuvoton Technology Corporation. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config ADC_NPCM | ||
bool "Nuvoton NPCM ADC driver" | ||
default y | ||
depends on DT_HAS_NUVOTON_NPCM_ADC_ENABLED | ||
help | ||
This option enables the ADC driver for NPCM family of | ||
processors. | ||
Say y if you wish to use ADC channels on NPCM MCU. |
Oops, something went wrong.