getchar unblock

Discussion around product based on ARM Cortex M4 core.

Moderators: nferre, ncollot

Posts: 4
Joined: Thu Oct 04, 2012 9:45 pm

getchar unblock

Thu Mar 05, 2015 8:53 am

I am trying to use getchar to wait for the input from keyboard in a while loop, however, I noticed that the getchar will block the other interrupts.

Is there anyway to skip it even wihtout any input from keyboard.
kbhit() is able to solve this however it's not available for GCC.

By the way, I am using USB but not USART.

Thank you.

Yong Han

Return to “SAM4 Cortex-M4 MCU”

Who is online

Users browsing this forum: No registered users and 1 guest