Skip to content

Move board specific configuration info to new file boarddefs.h. #352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 9, 2016
Merged

Move board specific configuration info to new file boarddefs.h. #352

merged 5 commits into from
Nov 9, 2016

Conversation

bengtmartensson
Copy link
Contributor

This PR proposes to move board definitions to its own file, boarddefs.h. There are two reasons for this change:

  1. Code organization and maintenance: Presently, a lot of different stuff is lumped into IRremoteInt.h: typedefs, defines of different types including user preferences, and a "data base" of board specific information. This is not a well organized system. The fix moves all properties (present and, hopefully, future) to a new file.
  2. Code reusability: The multitude of different kind of information in IRremoteInt.h makes it very hard to reuse the board data base in another project. (Actually, the very name Int suggest that this is not intended.) With the proposed change, including boarddefs.h into another project is a sensible thing to do.

... and this exactly what I like to do in Infrared4Arduino

bengtmartensson and others added 3 commits August 23, 2016 15:23
@z3t0
Copy link
Collaborator

z3t0 commented Nov 6, 2016

Brilliant idea. But seems to be out of date with the base branch, feel free to rebase it or I will definitely do so when I get a chance

@z3t0
Copy link
Collaborator

z3t0 commented Nov 9, 2016

Thanks for your hard work again!

@z3t0 z3t0 merged commit fe27a84 into Arduino-IRremote:master Nov 9, 2016
@bengtmartensson bengtmartensson deleted the boarddefs branch July 5, 2020 11:44
Theaninova pushed a commit to Theaninova/Arduino-IRremote that referenced this pull request Dec 2, 2023
Move board specific configuration info to new file boarddefs.h
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.

2 participants