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

Compiler warnings in output_pwm.cpp #436

Merged
merged 2 commits into from Jun 4, 2022

Conversation

KurtE
Copy link
Contributor

@KurtE KurtE commented Jun 4, 2022

Paul, not a big deal but when building and debugging I try to remove all of the warnings if possible

There are two warnings in output_pwm.cpp that were caused by the class
defining the member variable block as volatile,

but passed when it was going to release the block, it complained that you are passing it to a non-volatile...

So cast the pointer as to remove the warning.

Sorry sort of combined the warnings fix with maybe fix for PTS8211

KurtE added 2 commits June 4, 2022 07:18
There are two warnings in output_pwm.cpp that were caused by the class
defining the member variable block as volatile,

but passed when it was going to release the block, it complained that you are passing it to a non-volatile...

So cast the pointer as to remove the warning.
There appears like there is a timing window where we were enabling the IS2 Transmit before we enabled the DMA and also had not set the interrupt vector.

So probably depending on what all is happening, we were running into cases where t5he QUEUE underrun was detected probably because of this.

Changed it for the two PTS8211 classes, reran @mjs513 sektch on post 93 in pjrc forum thread on Dual Serial, RAWHID, Serial+Midi16+Audio and a few others and they all appear to now make noise
@PaulStoffregen PaulStoffregen merged commit b98a839 into PaulStoffregen:master Jun 4, 2022
@KurtE KurtE deleted the warnings branch June 5, 2022 01:30
@h4yn0nnym0u5e
Copy link
Contributor

The PT8211 change has left the call to update_responsibility() in a different position relative to the DMA setup. Should we be concerned?

@h4yn0nnym0u5e h4yn0nnym0u5e mentioned this pull request Jun 11, 2022
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.

None yet

3 participants