提交 9309657b 编写于 作者: jihaiyu's avatar jihaiyu

[add] add counter test

新增dual timer test
上级 533bbe8e
流水线 #9233 已失败 ,包含阶段
in 2 minute 和 36 second
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(counter_basic_api)
FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})
CONFIG_COUNTER_CSK6_GPTCHANNEL=y
# CONFIG_COUNTER_CSK6_DUAL=y
&gpt0 {
gptchannel0:gptchannel0 {
compatible = "listenai,csk-gptchannel";
status = "okay";
};
gptchannel1:gptchannel1 {
compatible = "listenai,csk-gptchannel";
status = "okay";
};
gptchannel2:gptchannel2 {
compatible = "listenai,csk-gptchannel";
status = "okay";
};
gptchannel3:gptchannel3 {
compatible = "listenai,csk-gptchannel";
status = "okay";
};
gptchannel4:gptchannel4 {
compatible = "listenai,csk-gptchannel";
status = "okay";
};
gptchannel5:gptchannel5 {
compatible = "listenai,csk-gptchannel";
status = "okay";
};
gptchannel6:gptchannel6 {
compatible = "listenai,csk-gptchannel";
status = "okay";
};
gptchannel7:gptchannel7 {
compatible = "listenai,csk-gptchannel";
status = "okay";
};
};
&dual_timer{
compatible = "listenai,csk-dual";
reg = <0x44100000 0x1000000>;
interrupts = <6 0>;
label = "DUL_TIM";
};
CONFIG_COUNTER_CSK6_GPTCHANNEL=y
&gpt0 {
gptchannel0:gptchannel0 {
status = "okay";
pwm0 {
status = "disabled";
};
};
gptchannel1:gptchannel1 {
status = "okay";
pwm1 {
status = "disabled";
};
};
gptchannel2:gptchannel2 {
status = "okay";
pwm2 {
status = "disabled";
};
};
gptchannel3:gptchannel3 {
status = "okay";
pwm3 {
status = "disabled";
};
};
gptchannel4:gptchannel4 {
status = "okay";
pwm4 {
status = "disabled";
};
};
gptchannel5:gptchannel5 {
status = "okay";
pwm5 {
status = "disabled";
};
};
gptchannel6:gptchannel6 {
status = "okay";
pwm6 {
status = "disabled";
};
};
gptchannel7:gptchannel7 {
status = "okay";
pwm7 {
status = "disabled";
};
};
};
CONFIG_COUNTER=y
CONFIG_BT=n
CONFIG_ZTEST=y
CONFIG_TEST_USERSPACE=y
CONFIG_LOG=y
CONFIG_COUNTER_LOG_LEVEL_DBG=y
\ No newline at end of file
tests:
drivers.counter.basic_api:
tags: drivers
depends_on: counter
min_ram: 16
platform_exclude: nucleo_f302r8
timeout: 600
drivers.counter.basic_api.nrf_zli:
tags: drivers
depends_on: counter
platform_allow: nrf52840dk_nrf52840
timeout: 400
extra_args: >
OVERLAY_CONFIG="zli.conf;boards/nrf52840dk_nrf52840_zli.conf"
CONFIG_ZERO_LATENCY_IRQS=y
支持 Markdown
0% or
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册