Skip to content

refactor: split header-only drivers into source + header files#2373

Open
kira-autonoma wants to merge 1 commit intocommaai:masterfrom
kira-autonoma:refactor-source-header
Open

refactor: split header-only drivers into source + header files#2373
kira-autonoma wants to merge 1 commit intocommaai:masterfrom
kira-autonoma:refactor-source-header

Conversation

@kira-autonoma
Copy link
Copy Markdown

Summary

Refactors the board drivers from all-header style to proper source + header file structure:

  • Moved function implementations from .h files into corresponding .c files
  • Headers now contain only declarations, macros, type definitions, and static inline functions
  • 21 driver/sys modules refactored (44 files changed)
  • No functional changes — pure structural refactor

Files Changed

  • board/drivers/*.h → declarations only
  • board/drivers/*.c → new implementation files
  • board/sys/*.h → declarations only
  • board/sys/*.c → new implementation files

Closes #2171

Move function implementations from .h files into corresponding .c files,
keeping only declarations, macros, and type definitions in headers.

Affected: all board/drivers/*.h and board/sys/*.h files.
No functional changes — pure structural refactor.

Closes commaai#2171
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.

[$500 Bounty] Refactor panda to use source + header file structure

1 participant