Skip to content

Commit

Permalink
tests: drivers: dac channel structure has a buffered parameter boolean
Browse files Browse the repository at this point in the history
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 zephyrproject-rtos#57730

Signed-off-by: Francois Ramu <[email protected]>
  • Loading branch information
FRASTM committed Jun 7, 2023
1 parent 7b2034a commit 28119bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/drivers/dac/dac_api/src/test_dac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion tests/drivers/dac/dac_loopback/src/test_dac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 28119bf

Please sign in to comment.