Move GPIO_TypeDef and IO_GPIO out of common drivers into platform-specific headers to decouple IO implementation from hardware details - #14962
Conversation
…cific headers to decouple IO implementation from hardware details
|
Do you want to test this code? You can flash it directly from the Betaflight App:
WARNING: It may be unstable. Use only for testing! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughRefactors IO/GPIO handling by removing driver-level GPIO accessors, changing ioRec->gpio to void*, moving IO_GPIO and platform-specific EXTI helpers into platform/common/stm32 io_impl.*, and updating includes across drivers and platform files to use the new platform io_impl headers. No public API additions beyond platform-level accessors. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
SupaflyFPV
left a comment
There was a problem hiding this comment.
The intent and execution are solid. The main practical risk is the SITL build — if that still compiles and the simulated IO path works, the rest of this is a straightforward and beneficial cleanup.
Removed unnecessary include for 'drivers/io_impl.h'.
…cific headers to decouple IO implementation from hardware details (betaflight#14962) * Move GPIO_TypeDef and IO_GPIO out of common drivers into platform-specific headers to decouple IO implementation from hardware details * Platform headers to be located in platform/ * Remove redundant include for io_impl.h Removed unnecessary include for 'drivers/io_impl.h'.
Summary by CodeRabbit