Hi all,
I am trying to use the function GETCHAR() in the MCUXpresso IDE to accept user input, but I don't see how this is possible. The terminal does not allow anything to be typed inside of it, and the console appears to not accept any input. I am running the example project lpadc_interrupt.c, provided by NXP, and it has the function GETCHAR() in it.
Here is the part of the code that has this function in it:
PRINTF("Please press any key to get user channel's ADC value.\r\n");
while (1)
{
GETCHAR();
LPADC_DoSoftwareTrigger(DEMO_LPADC_BASE, 1U); /* 1U is trigger0 mask. */
while (!g_LpadcConversionCompletedFlag)
{
}
PRINTF("ADC value: %d\r\nADC interrupt count: %d\r\n",
((g_LpadcResultConfigStruct.convValue) >> g_LpadcResultShift), g_LpadcInterruptCounter);
g_LpadcConversionCompletedFlag = false;
}