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

ports/psoc6/modules/machine/machine_adc: WIP refactor relationship. #70

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

jaenrig-ifx
Copy link
Member

By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---

Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
uint8_t id;
uint8_t bits;
// machine_adc_obj_t *channel[ADC_BLOCK_CHANNEL_MAX];
machine_adc_obj_t *channel[ADC_BLOCK_CHANNEL_MAX];
Copy link
Member

Choose a reason for hiding this comment

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

I still miss to see what is this holding or where is the assignment happening

Copy link
Member

@NikhitaR-IFX NikhitaR-IFX left a comment

Choose a reason for hiding this comment

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

Rest refactoring looks good to me. While testing it out, I realized still 2nd time instantiation of the same pin for ADC does not return any error or message "pin associated to block already created" - which we could ofcourse include, but the read functions don't work anymore then. I have attached here a screenshot.
image
But I think this could also be a warning/note to user in docs since I don't know if this happens for other ports and if it his is addressed?

Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
@NikhitaR-IFX
Copy link
Member

I will merge this now as this is working as expected.

@NikhitaR-IFX NikhitaR-IFX reopened this Jul 31, 2023
@NikhitaR-IFX NikhitaR-IFX merged commit dd2cd4a into machine-adc-refactor Jul 31, 2023
23 of 25 checks passed
@jaenrig-ifx jaenrig-ifx deleted the machine-adc-rerefactor branch August 2, 2023 16:27
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