Skip to content
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

Fix #268: added platform support to Catena 4802 #269

Merged
merged 18 commits into from
Dec 23, 2020
Merged

Conversation

dhineshkumarmcci
Copy link
Member

Added support to new board Catena 4802, changes done:

  • added ReadVin() to read analog value
  • added GUID for 4802 base
  • added I2C expander to platform table
  • updated version number to v0.19.10.0
  • updated README with 4802 and version details
  • added 4802 to class hierarchy diagram

Copy link
Member

@terrillmoore terrillmoore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry ... the #ifs require that this be reworked. It's architecturally not permitted to add board-specific dependencies in higher-level include files. So this can't be merged as is.

The best policy is not ever to use #if unless there is no alternative due to the IDE limitations. That's not the case here; a combination of virtual methods and careful hierarchy will suffice.

.travis.yml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/Catena4802.h Outdated Show resolved Hide resolved
src/Catena480x.h Outdated Show resolved Hide resolved
src/Catena480x.h Outdated Show resolved Hide resolved
src/CatenaBase.h Outdated Show resolved Hide resolved
src/CatenaStm32L0.h Outdated Show resolved Hide resolved
@dhineshkumarmcci
Copy link
Member Author

dhineshkumarmcci commented Dec 21, 2020

made the suggested changes and tested build with example sketches. They compile successfully.
Have handled the API ReadVin() specific only to Catena 4802, added the declaration below:

float ReadVin(void) const;

Copy link
Member

@terrillmoore terrillmoore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@terrillmoore terrillmoore merged commit 9f18622 into master Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants