Hi Doug :
Please refer to the GETCHAR usage from the hello world example,
SDK_2.0_MKL17Z256xxx4\boards\frdmkl43z\demo_apps\hello_world
int main(void)
{
char ch;
/* Init board hardware. */
BOARD_InitPins();
BOARD_BootClockRUN();
BOARD_InitDebugConsole();
PRINTF("hello world.\r\n");
while (1)
{
ch = GETCHAR();
PUTCHAR(ch);
}
}
Please also check the Kinetis SDK API Reference Manual for more details.
Chater 32. Debug console
Have a great day,
Daniel
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------