Skip to content

Commit 9896fbd

Browse files
committed
tests: Add colibri_imx7d_m4 config in pwm_api
Adds the appropriated configuration for colibri_imx7d_m4 board in pwm_api tests. Signed-off-by: Diego Sueiro <[email protected]>
1 parent 9f95d62 commit 9896fbd

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

tests/drivers/pwm/pwm_api/src/test_pwm.c

+11
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,23 @@
3232
#include <zephyr.h>
3333
#include <ztest.h>
3434

35+
#ifdef CONFIG_PWM_QMSI_DEV_NAME
3536
#define PWM_DEV_NAME CONFIG_PWM_QMSI_DEV_NAME
37+
#elif defined CONFIG_BOARD_COLIBRI_IMX7D_M4
38+
#define PWM_DEV_NAME PWM_1_LABEL
39+
#endif
3640

41+
#ifdef CONFIG_BOARD_COLIBRI_IMX7D_M4
42+
#define DEFAULT_PERIOD_CYCLE 1024
43+
#define DEFAULT_PULSE_CYCLE 512
44+
#define DEFAULT_PERIOD_USEC 2000
45+
#define DEFAULT_PULSE_USEC 500
46+
#else
3747
#define DEFAULT_PERIOD_CYCLE 64000
3848
#define DEFAULT_PULSE_CYCLE 32000
3949
#define DEFAULT_PERIOD_USEC 2000
4050
#define DEFAULT_PULSE_USEC 1000
51+
#endif
4152

4253
#ifdef CONFIG_BOARD_QUARK_D2000_CRB
4354
#include <pinmux.h>

tests/drivers/pwm/pwm_api/testcase.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ tests:
22
peripheral.pwm:
33
# FIXME: We should remove those and just rely on depends_on
44
platform_whitelist: quark_se_c1000_devboard quark_se_c1000_ss_devboard
5-
arduino_101 arduino_101_sss
5+
arduino_101 arduino_101_sss colibri_imx7d_m4
66
tags: drivers pwm
77
depends_on: pwm

0 commit comments

Comments
 (0)