[utest][dac] 增加 DAC 框架模拟设备测试 (#11976)

覆盖设备注册、通道控制、数据写入、错误传播及重复执行。
This commit is contained in:
usualtreee authored and GitHub committed 2026-11-05 11:18:17 +08:00
1 parent 7b0edb4979
commit 54862ee1e8
3 files changed
+300 -1

No files matched your search

+12
View File
@@ -1,3 +1,15 @@
menu "DAC Test"
config RT_UTEST_DAC
bool "DAC framework Test"
default n
depends on RT_USING_DAC
help
Run the DAC framework test with simulated devices. No DAC hardware
is required.
endmenu
menu "PWM Test"
config RT_UTEST_PWM
+4 -1
View File
@@ -5,9 +5,12 @@ cwd = GetCurrentDir()
src = []
CPPPATH = [cwd, cwd + '/../../include']
if GetDepend(['RT_UTEST_DAC']):
src += ['dac_tc.c']
if GetDepend(['RT_UTEST_PWM']):
src += ['pwm_tc.c']
group = DefineGroup('utestcases', src, depend = ['RT_USING_UTESTCASES', 'RT_USING_PWM'], CPPPATH = CPPPATH)
group = DefineGroup('utestcases', src, depend = ['RT_USING_UTESTCASES'], CPPPATH = CPPPATH)
Return('group')
File diff suppressed because it is too large. Load diff