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: Removed psoc6_gpio driver. #82

Merged
merged 1 commit into from
Sep 7, 2023
Merged

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 ---

CONTRIBUTING.md also tells you what to expect in the PR process.

Moving drivers/gpio directly to machine modules subclasses.

// function to check Pin.value
uint8_t gpio_get_value(uint32_t pin) {
if (gpio_is_out(pin)) { // if Pin.Mode is Pin.OUT, read output driver
return Cy_GPIO_ReadOut(CYHAL_GET_PORTADDR(pin), CYHAL_GET_PIN(pin));
Copy link
Member

Choose a reason for hiding this comment

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

I understand this is moved here from drivers but I don't feel quite happy seeing HAL and PDL calls mixed here mainly because these are two types of abstraction and each requires different set of includes and different ways of accessing pins. I am not suggesting any changes here but this needs to be refactored and mostly will be addressed as part of https://jirard.intra.infineon.com/browse/DESMAKERS-3557

Copy link
Member Author

Choose a reason for hiding this comment

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

Definitively!

@jaenrig-ifx jaenrig-ifx merged commit 49871ac into rm-drivers Sep 7, 2023
19 checks passed
@jaenrig-ifx jaenrig-ifx deleted the rm-driver-gpio branch September 8, 2023 07:21
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.

3 participants