File tree 10 files changed +65
-5
lines changed
10 files changed +65
-5
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025 Renesas Electronics Corporation
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ mainmenu "DAC API test"
5
+
6
+ source "Kconfig.zephyr"
7
+
8
+ config DAC_BUFFER_NOT_SUPPORT
9
+ bool "DAC on board/SoC does not support output buffer mode"
10
+ help
11
+ If this config is turned on, the test will run with no output buffer enabled
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025 Renesas Electronics Corporation
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ CONFIG_DAC_BUFFER_NOT_SUPPORT=y
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025 Renesas Electronics Corporation
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ CONFIG_DAC_BUFFER_NOT_SUPPORT=y
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025 Renesas Electronics Corporation
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ CONFIG_DAC_BUFFER_NOT_SUPPORT=y
Original file line number Diff line number Diff line change 110
110
#endif
111
111
112
112
static const struct dac_channel_cfg dac_ch_cfg = {
113
- .channel_id = DAC_CHANNEL_ID ,
114
- .resolution = DAC_RESOLUTION ,
115
- .buffered = true
113
+ .channel_id = DAC_CHANNEL_ID ,
114
+ .resolution = DAC_RESOLUTION ,
115
+ #if defined(CONFIG_DAC_BUFFER_NOT_SUPPORT )
116
+ .buffered = false,
117
+ #else
118
+ .buffered = true,
119
+ #endif /* CONFIG_DAC_BUFFER_NOT_SUPPORT */
116
120
};
117
121
118
122
const struct device * get_dac_device (void )
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025 Renesas Electronics Corporation
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ mainmenu "DAC Loopback test"
5
+
6
+ source "Kconfig.zephyr"
7
+
8
+ config DAC_BUFFER_NOT_SUPPORT
9
+ bool "DAC on board/SoC does not support output buffer mode"
10
+ help
11
+ If this config is turned on, the test will run with no output buffer enabled
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025 Renesas Electronics Corporation
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ CONFIG_DAC_BUFFER_NOT_SUPPORT=y
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025 Renesas Electronics Corporation
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ CONFIG_DAC_BUFFER_NOT_SUPPORT=y
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025 Renesas Electronics Corporation
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ CONFIG_DAC_BUFFER_NOT_SUPPORT=y
Original file line number Diff line number Diff line change 176
176
#define ADC_GAIN ADC_GAIN_1
177
177
#define ADC_REFERENCE ADC_REF_INTERNAL
178
178
#define ADC_ACQUISITION_TIME ADC_ACQ_TIME_DEFAULT
179
- #define ADC_CHANNEL_ID 0
179
+ #if defined(CONFIG_BOARD_EK_RA4L1 )
180
+ #define ADC_CHANNEL_ID 1
181
+ #elif defined(CONFIG_BOARD_EK_RA4W1 )
182
+ #define ADC_CHANNEL_ID 4
183
+ #else
184
+ #define ADC_CHANNEL_ID 0
185
+ #endif
180
186
181
187
#else
182
188
#error "Unsupported board."
185
191
static const struct dac_channel_cfg dac_ch_cfg = {
186
192
.channel_id = DAC_CHANNEL_ID ,
187
193
.resolution = DAC_RESOLUTION ,
188
- .buffered = true
194
+ #if defined(CONFIG_DAC_BUFFER_NOT_SUPPORT )
195
+ .buffered = false,
196
+ #else
197
+ .buffered = true,
198
+ #endif /* CONFIG_DAC_BUFFER_NOT_SUPPORT */
189
199
};
190
200
191
201
static const struct adc_channel_cfg adc_ch_cfg = {
You can’t perform that action at this time.
0 commit comments