Skip to content

Conversation

@sw
Copy link
Contributor

@sw sw commented Dec 3, 2025

Reduce flash footprint by inlining LL_Init1msTick so that the SysTick LOAD register value can be calculated by the compiler, if constant frequency values are used.

Code size for Examples/PY32F002B/LL/GPIO/GPIO_Toggle

Before:

Memory region         Used Size  Region Size  %age Used
             RAM:         800 B         3 KB     26.04%
           FLASH:        1144 B        24 KB      4.65%

After:

Memory region         Used Size  Region Size  %age Used
             RAM:         800 B         3 KB     26.04%
           FLASH:         852 B        24 KB      3.47%

Reduce flash footprint by inlining `LL_Init1msTick` so that the
SysTick LOAD register value can be calculated by the compiler,
if constant frequency values are used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant