Hi, I'm working with an ERC 32 target board and would like to read strings or any characters in the serial input (UART). regular C printf() function works well but when I try fgets(), scanf() or fgetc() the board just does not get the string or any character, is there any RTEMS specific ways to get characters or strings through the standard serial port ?
a sample code: #include <bsp.h> #include <stdlib.h> #include <stdio.h> char line[6]; rtems_task Init( rtems_task_argument ignored ) { fgets(line,6,stdin); printf( "string: %s\n",line ); } /* configuration information */ #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_MAXIMUM_TASKS 1 #define CONFIGURE_INIT #include <rtems/confdefs.h>
_______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users