Skip to content

Commit 191ec42

Browse files
committed
pwmout - UNITTESTS - add read methods for period and pulsewidth
1 parent f2bed4d commit 191ec42

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

UNITTESTS/stubs/pwmout_api_stub.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ void pwmout_period_us(pwmout_t *obj, int us)
5151
{
5252
}
5353

54+
int pwmout_read_period_us(pwmout_t *obj)
55+
{
56+
return 0;
57+
}
58+
5459
void pwmout_pulsewidth(pwmout_t *obj, float seconds)
5560
{
5661
}
@@ -63,4 +68,9 @@ void pwmout_pulsewidth_us(pwmout_t *obj, int us)
6368
{
6469
}
6570

71+
int pwmout_read_pulsewidth_us(pwmout_t *obj)
72+
{
73+
return 0;
74+
}
75+
6676
#endif // DEVICE_PWMOUT

0 commit comments

Comments
 (0)