This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 44ef021bc5 analog: add configuration option to set DAC FIFO size
44ef021bc5 is described below

commit 44ef021bc5868f3e2ee2deb3fcf03f976e12f925
Author: Michal Lenc <[email protected]>
AuthorDate: Mon May 27 13:14:34 2024 +0200

    analog: add configuration option to set DAC FIFO size
    
    DAC driver uses CONFIG_DAC_FIFOSIZE, but this is not configurable
    from Kconfig. This adds the missing option and allows to set DAC
    FIFO size from the configuration.
    
    Signed-off-by: Michal Lenc <[email protected]>
---
 drivers/analog/Kconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/analog/Kconfig b/drivers/analog/Kconfig
index a95be948d1..c7a5f0885b 100644
--- a/drivers/analog/Kconfig
+++ b/drivers/analog/Kconfig
@@ -245,6 +245,16 @@ config DAC
 
 if DAC
 
+config DAC_FIFOSIZE
+       int "DAC buffer size"
+       default 8
+       range 1 255
+       ---help---
+               This variable defines the size of the DAC ring buffer that is 
used
+               to queue sent DAC data until they can be retrieved by the
+               controller. This size is limited to 255 to fit uint8_t type used
+               in DAC driver.
+
 config DAC_AD5410
        bool "AD5410 support"
        default n

Reply via email to