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

Add call to tud_task in getchar() #918

Merged
merged 9 commits into from
Aug 8, 2022
Merged

Add call to tud_task in getchar() #918

merged 9 commits into from
Aug 8, 2022

Conversation

kilograham
Copy link
Contributor

@kilograham kilograham commented Jul 13, 2022

  • Depending on USB timing, the low priority may never call tud_task() during `getchar()
  • Also fixed a 1.4.0 regression which may cause tud_task() to not be called after an IRQ if the mutex wasn't available (previously we tried again automatically ever 1ms)

liamfraser
liamfraser previously approved these changes Jul 14, 2022
@kilograham
Copy link
Contributor Author

ha, as I looked at this again, i realize it should be canceling the existing alarm.. i will add a fix

@kilograham kilograham marked this pull request as draft July 15, 2022 11:57
@kilograham kilograham marked this pull request as ready for review July 20, 2022 21:03
liamfraser
liamfraser previously approved these changes Jul 27, 2022
Copy link
Contributor

@liamfraser liamfraser left a comment

Choose a reason for hiding this comment

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

lgtm but maybe get @Wren6991 to review also before merging

@kilograham kilograham merged commit 2dfaa1a into develop Aug 8, 2022
@kilograham kilograham deleted the stdio_usb_getchar branch August 8, 2022 15:12
cniles pushed a commit to cniles/pico-sdk that referenced this pull request Aug 31, 2022
… alarm_pool_core_num() API (raspberrypi#918)

This issue addresses possible starvation issues when using `getchar()` with `stdio_usb` and also fixes possible missing of IRQs as a result of raspberrypi#871
@kilograham kilograham modified the milestones: 1.4.1, 1.5.0 Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants