Commit fec542c
committed
ports/stm32: Fix USB VBUS sensing for newer STM32F4/F7 HAL versions.
The USB_OTG_GCCFG register bit definitions changed between older and newer
STM32F4/F7 HAL versions:
- Older chips use: NOVBUSSENS, VBUSBSEN, VBUSASEN
- Newer chips use: VBDEN
This adds conditional compilation to support both register naming schemes,
allowing TinyUSB builds to compile on all STM32F4/F7 variants.
Signed-off-by: Andrew Leech <[email protected]>1 parent a3d87f8 commit fec542c
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
184 | 195 | | |
185 | 196 | | |
186 | 197 | | |
| |||
192 | 203 | | |
193 | 204 | | |
194 | 205 | | |
| 206 | + | |
195 | 207 | | |
196 | 208 | | |
197 | 209 | | |
| |||
0 commit comments