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

GPIO Init after USIC CH Start #238

Merged
merged 2 commits into from
May 17, 2023
Merged

Conversation

9Volts9er
Copy link
Contributor

Put the GPIO_Init() after CH_Start for SPI, I2C and HardwareSerial in order to avoid false pulses as described in issue #234

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

Description
With this PR the GPIO_Init() functions are moved after XMC_CH_Start() of I2C, SPI and HardwareSerial.
This solves the issue #234 with wrong pulses output on the communication lines.
Also in the respective end() functions.

See also PR #237

Related Issue
#234

Put the GPIO_Init() after CH_Start for SPI, I2C and HardwareSerial in order to avoid false pulses as described in issue Infineon#234
@techpaul
Copy link
Contributor

Only thing missed is that SPI has THREE pins you forgot to move the SCLK pin init call in HW_SPI.cpp

Moved GPIO_Init() of SCLK pin after XMC_SPI_CH_Start()
Copy link
Contributor

@techpaul techpaul left a comment

Choose a reason for hiding this comment

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

Changes as tested in issue #234 Looking good

@techpaul
Copy link
Contributor

Just need same change on PR #237

@boramonideep boramonideep self-assigned this May 17, 2023
@boramonideep boramonideep self-requested a review May 17, 2023 12:44
@boramonideep boramonideep merged commit 70b950a into Infineon:develop May 17, 2023
7 checks passed
@boramonideep
Copy link
Collaborator

Thanks @9Volts9er for the code changes and @techpaul for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants