forked from Imagelibrary/rtems
2009-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
* console/conio.c, console/console.c, include/conio.h: Let *getch return "int". Remove casts.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* console/conio.c, console/console.c, include/conio.h:
|
||||
Let *getch return "int". Remove casts.
|
||||
|
||||
2009-10-21 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* make/custom/gba.cfg: Remove RTEMS_BSP_FAMILY.
|
||||
|
||||
@@ -377,7 +377,7 @@ static unsigned char inputch = ASCII_CR; /**< input character value */
|
||||
* @param None
|
||||
* @return Selected char code
|
||||
*/
|
||||
char gba_getch(void)
|
||||
int gba_getch(void)
|
||||
{
|
||||
int keyx, key = 0;
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ static int gba_setAttributes(int minor, const struct termios *t)
|
||||
/** BSP_output_char for printk support */
|
||||
BSP_output_char_function_type BSP_output_char = (BSP_output_char_function_type) gba_putch;
|
||||
/** BSP_poll_char for printk support */
|
||||
BSP_polling_getchar_function_type BSP_poll_char = (BSP_polling_getchar_function_type) gba_getch;
|
||||
BSP_polling_getchar_function_type BSP_poll_char = gba_getch;
|
||||
|
||||
/**
|
||||
* @brief Console device driver INITIALIZE entry point
|
||||
|
||||
@@ -82,7 +82,7 @@ void gba_putch(char _c);
|
||||
void gba_puts(const char *_str);
|
||||
int gba_printf(const char *_format, ...);
|
||||
void gba_gotoxy(int _x, int _y);
|
||||
char gba_getch(void);
|
||||
int gba_getch(void);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user