Skip to content

tests/periph_timer_periodic: Use fmt for in-irq printing#15061

Merged
kaspar030 merged 1 commit intoRIOT-OS:masterfrom
bergzand:pr/tests_timer_periodic/use_fmt
Sep 23, 2020
Merged

tests/periph_timer_periodic: Use fmt for in-irq printing#15061
kaspar030 merged 1 commit intoRIOT-OS:masterfrom
bergzand:pr/tests_timer_periodic/use_fmt

Conversation

@bergzand
Copy link
Member

Contribution description

This replaces the printf statement in the timer callback with fmt-based
printing and a single puts. This is less heavy on the stack usage than
printf, making this test a bit easier to digest on the smaller
platforms.

Flash size increases by almost 200 bytes on the samr21-xpro with LLVM because of the added fmt module.

Testing procedure

The printed test output should remain the same.

Issues/PRs references

reduces the stack size enough to let #14557 pass this test with LLVM on the samr21-xpro 😄

@bergzand bergzand added Area: tests Area: tests and testing framework Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Sep 22, 2020
This replaces the printf statement in the timer callback with fmt-based
printing and a single puts. This is less heavy on the stack usage than
printf, making this test a bit easier to digest on the smaller
platforms.
@bergzand bergzand force-pushed the pr/tests_timer_periodic/use_fmt branch from 5fdb1dc to 57f2bd9 Compare September 23, 2020 07:00
Copy link
Contributor

@kaspar030 kaspar030 left a comment

Choose a reason for hiding this comment

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

ACK. one less printf in ISR.

@kaspar030 kaspar030 merged commit 0806b4b into RIOT-OS:master Sep 23, 2020
@bergzand bergzand deleted the pr/tests_timer_periodic/use_fmt branch September 23, 2020 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants