Skip to content

Commit

Permalink
sample: drivers: counter: alarm: adapt test to driver change PR zephy…
Browse files Browse the repository at this point in the history
…rproject-rtos#25367

Due to counter driver implementation change introduced with PR zephyrproject-rtos#25367
"driver/counter/counter_ll_stm32_rtc.c: Add 1 tick to alarm"
It is necessary to adapt sample test (sanitycheck)
to take into consideration 1 tick precision/tolerance.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
  • Loading branch information
ABOSTM committed May 19, 2020
1 parent a8583ae commit 8301aa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions samples/drivers/counter/alarm/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Overview
This sample provides an example of alarm application using counter API.
It sets an alarm with an initial delay of 2 seconds. At each alarm
expiry, a new alarm is configured with a delay multiplied by 2.
.. note::
In case of 1Hz frequency (RTC for example), precision is 1 second.
Therefore, the sample output may differ in 1 second

Requirements
************
Expand Down
2 changes: 1 addition & 1 deletion samples/drivers/counter/alarm/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ tests:
- "Counter alarm sample"
- "Set alarm in 2 sec"
- "!!! Alarm !!!"
- "Now: 2"
- "Now: [2|3]"
depends_on: counter

0 comments on commit 8301aa1

Please sign in to comment.