Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sample/drivers/counter/alarm: adapt test to driver change PR #25367 #25371

Closed

Conversation

ABOSTM
Copy link
Collaborator

@ABOSTM ABOSTM commented May 15, 2020

Due to counter driver implementation change introduced with PR #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.

Fixes #25366

@ABOSTM ABOSTM requested a review from nashif as a code owner May 15, 2020 16:01
@zephyrbot zephyrbot added the area: Samples Samples label May 15, 2020
@ABOSTM ABOSTM force-pushed the SAMPLE_COUNTER_TOLERANCE branch from c9470d7 to ecb912b Compare May 18, 2020 07:49
@erwango erwango added area: Counter bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug labels May 18, 2020
@erwango erwango added this to the v2.3.0 milestone May 18, 2020
@erwango erwango requested a review from nordic-krch May 18, 2020 11:49
@carlescufi carlescufi requested review from erwango and gmarull May 18, 2020 17:12
@@ -8,6 +8,8 @@ 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.
Now value can be slightly different than the one in Sample Output
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use RST notes, e.g.

.. note::
    In case of....

I'd suggest Therefore, the sample output may differ in 1 second instead of Now value can be slightly different than the one in Sample Output

Copy link
Collaborator Author

@ABOSTM ABOSTM May 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs build is broken, can you check?

@ABOSTM ABOSTM force-pushed the SAMPLE_COUNTER_TOLERANCE branch from ecb912b to 21f7a08 Compare May 19, 2020 07:48
…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>
@ABOSTM
Copy link
Collaborator Author

ABOSTM commented May 19, 2020

Commit added to #25367

@ABOSTM ABOSTM closed this May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Counter area: Samples Samples bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests/drivers/counter/counter_basic_api: instable test status on STM32 boards
4 participants