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

boards/olimex-msp430-h2618: fix ztimer config #20575

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

maribu
Copy link
Member

@maribu maribu commented Apr 14, 2024

Contribution description

The MSP430 timer prescaler can device the 16 MHz clock down to (16 / 2^x) MHz, with 0 <= x < 4. So no slower than 2 MHz.

With the current ztimer config the clock would run at twice the speed.

Testing procedure

The tests wouldn't really catch this, but the datasheet and the test in tests/periph/timer can confirm that it gets no slower than 2 MHz with a 16 MHz subsystem main clock.

Issues/PRs references

None

The MSP430 timer prescaler can device the 16 MHz clock down to
(16 / 2^x) MHz, with 0 <= x < 4. So no slower than 2 MHz.

With the current ztimer config the clock would run at twice the speed.
@maribu maribu added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: needs backport Integration Process: The PR is required to be backported to a release or feature branch labels Apr 14, 2024
@github-actions github-actions bot added the Area: boards Area: Board ports label Apr 14, 2024
@riot-ci
Copy link

riot-ci commented Apr 14, 2024

Murdock results

✔️ PASSED

43fa3bc boards/olimex-msp430-h2618: fix ztimer config

Success Failures Total Runtime
354 0 354 02m:19s

Artifacts

@maribu maribu added this pull request to the merge queue Apr 15, 2024
Merged via the queue into RIOT-OS:master with commit 714feaf Apr 15, 2024
30 checks passed
@maribu maribu deleted the boards/olimex-msp430-h2618/ztimer branch April 15, 2024 19:16
@maribu
Copy link
Member Author

maribu commented Apr 15, 2024

Backport provided in #20583

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: boards Area: Board ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Process: needs backport Integration Process: The PR is required to be backported to a release or feature branch Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants