Skip to content

Commit

Permalink
analog: add configuration option to set DAC FIFO size
Browse files Browse the repository at this point in the history
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 <michallenc@seznam.cz>
  • Loading branch information
michallenc committed May 27, 2024
1 parent 0fc2e74 commit a7b8655
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/analog/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7b8655

Please sign in to comment.