mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
Break console io example out into own app
This commit is contained in:
parent
40e8795f3f
commit
274f347d90
5 changed files with 44 additions and 10 deletions
15
apps/conio/conio.c
Normal file
15
apps/conio/conio.c
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#define USE_MAIN
|
||||
#include "uvm32_target.h"
|
||||
|
||||
void main(void) {
|
||||
uint32_t c;
|
||||
println("Press a key!");
|
||||
while(c = getc()) {
|
||||
if (c != 0xFFFFFFFF) {
|
||||
print("Got: ");
|
||||
printx(c);
|
||||
println("");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue