From 28119bfdb91c13e0def655252da43822ba5d8e8b Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Wed, 7 Jun 2023 09:31:44 +0200 Subject: [PATCH] tests: drivers: dac channel structure has a buffered parameter boolean Add the '.buffered' field to the dac_channel_cfg structure when testing the DAC. This boolean parameter is initialised to 'true' to PASS the test. It follows the https://github.com/zephyrproject-rtos/zephyr/pull/57730 Signed-off-by: Francois Ramu --- tests/drivers/dac/dac_api/src/test_dac.c | 3 ++- tests/drivers/dac/dac_loopback/src/test_dac.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/drivers/dac/dac_api/src/test_dac.c b/tests/drivers/dac/dac_api/src/test_dac.c index 44277d7c7fbe3a4..ae03ee582645fd3 100644 --- a/tests/drivers/dac/dac_api/src/test_dac.c +++ b/tests/drivers/dac/dac_api/src/test_dac.c @@ -87,7 +87,8 @@ static const struct dac_channel_cfg dac_ch_cfg = { .channel_id = DAC_CHANNEL_ID, - .resolution = DAC_RESOLUTION + .resolution = DAC_RESOLUTION, + .buffered = true }; const struct device *get_dac_device(void) diff --git a/tests/drivers/dac/dac_loopback/src/test_dac.c b/tests/drivers/dac/dac_loopback/src/test_dac.c index 122218c36457966..13b53180e5d398f 100644 --- a/tests/drivers/dac/dac_loopback/src/test_dac.c +++ b/tests/drivers/dac/dac_loopback/src/test_dac.c @@ -148,7 +148,8 @@ static const struct dac_channel_cfg dac_ch_cfg = { .channel_id = DAC_CHANNEL_ID, - .resolution = DAC_RESOLUTION + .resolution = DAC_RESOLUTION, + .buffered = true }; static const struct adc_channel_cfg adc_ch_cfg = {