Commit 8af14f5
v203: reduce flash usage by 540 bytes
Replace HAL functions with direct register access to avoid pulling
in large library functions:
- TIM_TimeBaseInit/TIM_TimeBaseStructInit replaced with direct writes
- GPIO_Init/GPIO_StructInit replaced with existing gpio_mode_set_input
- RCC_APB2PeriphClockCmd replaced with direct register write
This reduces flash usage from 99.8% to 86.6%, providing ~550 bytes
of headroom for future development.
🤖 Generated with [Claude Code](https://claude.ai/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 62c82ae commit 8af14f5
1 file changed
Lines changed: 14 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
112 | 107 | | |
113 | 108 | | |
114 | 109 | | |
| |||
134 | 129 | | |
135 | 130 | | |
136 | 131 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
146 | 137 | | |
147 | 138 | | |
148 | 139 | | |
| |||
0 commit comments