Skip to content

Conversation

LinjingZhang
Copy link
Collaborator

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.

Description
Solve the problem that the default spi is overwritten when the XMC4700 relax kit sets the SD card PIN to the default value.
Tested the default SPI pins and the SD card function, both work fine!

Related Issue
https://jirard.intra.infineon.com/browse/DESMAKERS-4316

Context

enable-deltas-report: false
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}

- name: Modify the environment variable
Copy link
Member

Choose a reason for hiding this comment

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

These changes are in a separate PR. #324. Are they needed here as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

otherwise compilation tests are not working. will first merge the other one to master

uint8_t SCK = PIN_SPI_SCK_SD;
SPIClass SPI(&XMC_SPI_default);
SPIClass SPI1(&XMC_SPI_for_xmc_SD);
#else // normal behaviour
Copy link
Member

Choose a reason for hiding this comment

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

Is this formatted? with the clang?
The indentation of the preprocessor and not the rest of the code it is quite unclear. The code should be indented together with the preprocessor sections. If not better not to indent the nested pre-processor directives.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, this is actually after format, otherwise clang-format will report an error.
I can look into clang config. i also think this part is not clear enough

Copy link
Member

Choose a reason for hiding this comment

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

Yep, we have to configure that properly... But okay, that is not in the scope of this PR, so nothing to be changed for this PR.

@LinjingZhang LinjingZhang merged commit 1e6d346 into master Feb 12, 2025
12 of 14 checks passed
@LinjingZhang LinjingZhang deleted the bugfix/DESMAKERS-4316-spi-normal-pins-11-12-13-not-functioning-on-xmc4700-relax-kit branch February 12, 2025 14:15
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