Skip to content
Snippets Groups Projects
user avatar
Stefan Brüns authored
The compiler is not able to reuse the value of pwm_count, but reloads it
on every evaluation, if is stored in a static variable, as it cannot prove
it will be unchanged. A variable with local scope may not be modified from
the outside, so its value can be reused.
Doing so reduces text size and instruction count.

Signed-off-by: default avatarStefan Brüns <stefan.bruens@rwth-aachen.de>
0a74774a
History
Name Last commit Last update