getchar() or similar?
Posted: Tue Jul 11, 2017 5:48 am
Hi, I need to a function to block until the user hits the keyboard. From my brief search, it seems like are good candidates. I've had little success with and even though the code compiles, it seems like they don't really work. I notice that stdin has been redirected, so in theory should work? Has anyone been able to get any of the stdin functions to work? Or is there a way to make API calls for UART0 (which I believe is used for printf) so I can use the USB-Serial interface on my dev board?
Code: Select all
getchar/fgets
Code: Select all
getchar
Code: Select all
fgets
Code: Select all
getchar