Hi, forks,
Recentry, DebugConsole do not supports NON-BLOCKING input.
(DbgConsole_TryGetchar is gone...)
So, I've tried some quick hack DbgConsole_Getchar() to adapt Non-blocking operation.
2 files are modified.
(fsl_debug_console.h) :
GETCHAR_NB() DbgConsole_Getchar_NB()
(fsl_debug_console.c) :
Add struct entry, like below:
hal_uart_status_t (*getChar_NB)(hal_uart_handle_t handle,
uint8_t *data,
size_t length);
and, init it same manner, like below
s_debugConsole.getChar_NB = HAL_UartReceiveNonBlocking;
add new func. DbgConsole_Getchar_NB(void) like DbgConsole_Getchar() but modification like below :
int DbgConsole_Getchar_NB(void)
s_debugConsole.getChar_NB((hal_uart_handle_t)&s_debugConsole.uartHandleBuffer[0], (uint8_t *)(&dbgConsoleCh), 1))
This is quick hack, it seems working in my test env.
it not have well test.
please use and report hidden? problem.
Thank you.