Changeset 575c12c1 in rtems
- Timestamp:
- 10/12/14 13:52:31 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- ce1ba304
- Parents:
- 91e4946f
- git-author:
- Joel Sherrill <joel.sherrill@…> (10/12/14 13:52:31)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (10/13/14 15:32:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/av5282/console/console.c
r91e4946f r575c12c1 44 44 BSP_output_char_function_type BSP_output_char = _BSP_null_char; 45 45 BSP_polling_getchar_function_type BSP_poll_char = NULL; 46 47 46 48 47 #define MAX_UART_INFO 3 … … 713 712 return rtems_termios_ioctl(arg); 714 713 } 715 716 int DEBUG_OUTCHAR(int c)717 {718 if (c == '\n')719 DEBUG_OUTCHAR('\r');720 _BSP_null_char(c);721 return c;722 }723 void DEBUG_OUTSTR(const char *msg)724 {725 while (*msg)726 DEBUG_OUTCHAR(*msg++);727 }728 void DEBUG_OUTNUM(int i)729 {730 int n;731 static const char map[] = "0123456789ABCDEF";732 733 DEBUG_OUTCHAR(' ');734 for (n = 28 ; n >= 0 ; n -= 4)735 DEBUG_OUTCHAR(map[(i >> n) & 0xF]);736 }
Note: See TracChangeset
for help on using the changeset viewer.