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

Machine spi deinit #98

Merged
merged 4 commits into from
Oct 17, 2023
Merged

Machine spi deinit #98

merged 4 commits into from
Oct 17, 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 ---

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

To be reviewed after #97.

Added deinit functions and refactoring for pin_phy changes.

Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
@@ -183,6 +184,7 @@ void mpy_task(void *arg) {
mod_adc_block_deinit();
mod_i2c_deinit();
mod_pwm_deinit();
mod_spi_deinit();
mod_pin_phy_deinit();
Copy link
Member

Choose a reason for hiding this comment

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

I have the same concern here. If mod_spi_deinit ihas already deinited the physical pin, then what consequences would mod_pin_phy_deinit has if internally it is not checking a deinit operation was already done from module side.

Copy link
Member Author

Choose a reason for hiding this comment

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

As before, that pin_phy_deinit() can be called several times without unexpected behavior, if deinited already, then it has no unsafe effect.

Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
@jaenrig-ifx jaenrig-ifx merged commit 305f33f into machine_pwm_deinit Oct 17, 2023
17 of 23 checks passed
@jaenrig-ifx jaenrig-ifx deleted the machine_spi_deinit branch October 17, 2023 11:39
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