Hi,
I'm having problem defining a BYTE in this embedded C application that I writing.
I know that the byte representation for carriage return is : A0
What I'm doing is:
Basically i'm trying to read the console and if there is a keyboard input, I'll do a while loop to keep reading the input until I receive an "enter" key.
Thanks.
I'm having problem defining a BYTE in this embedded C application that I writing.
I know that the byte representation for carriage return is : A0
What I'm doing is:
Code:
BYTE enterKey = AO;
ConsolePutROMString( (ROM char *)"LISTEN TO KEYBOARD\r\n" );
if(ConsoleIsGetReady()){
keyboard = ConsoleGet();
while(!keyboard==enterKey) {
keyboard = ConsoleGet();
PrintChar( keyboard );
ConsolePutROMString( (ROM char *)" - KEYBOARD MESSAGE\r\n" );
}
}
Thanks.
Comment