Skip to content

Conversation

@dineshgit411
Copy link
Contributor

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
Revert back tone implementation in XMC from PWM method to toggle method due to lack of PWM pins.

Related Issue

  1. As of know [1, 2, 4, 5, 10, 20, 25, 50, 100, 125, 250, 500] this frequencies only working due to non integer calculation for this macros #define FREQUENCY_TO_MILLIS(f) (1000 / (2 * f)).
  2. 1Hz to 500Hz only supports in XMC boards.

Context
Modified Frequencies in tone test case and tested in XMC4700 board
image

Signed-off-by: MDin <Dinesh.M-EE@infineon.com>
Copy link
Member

@jaenrig-ifx jaenrig-ifx left a comment

Choose a reason for hiding this comment

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

When some of these parameters are recurrently reused across tests, maybe we can define them once as macros (conditionally) at the beginning of the file and avoid excessive repetition of some of the #ifdef blocks in each of the tests.

Signed-off-by: MDin <Dinesh.M-EE@infineon.com>
Copy link
Collaborator

@ramya-subramanyam ramya-subramanyam left a comment

Choose a reason for hiding this comment

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

👍

@dineshgit411 dineshgit411 merged commit 1ab9524 into main Sep 8, 2025
@dineshgit411 dineshgit411 deleted the XMC-tone-test-modification branch September 8, 2025 03:50
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.

4 participants