Changeset d08e1320 in rtems
- Timestamp:
- 10/12/14 13:54:17 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 66402ef2
- Parents:
- d5e533d
- git-author:
- Joel Sherrill <joel.sherrill@…> (10/12/14 13:54:17)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (10/13/14 15:32:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/uC5282/console/console.c
rd5e533d rd08e1320 51 51 rtems_interrupt_enable(level); 52 52 } 53 BSP_output_char_function_type BSP_output_char = _BSP_null_char; 53 54 BSP_polling_getchar_function_type BSP_poll_char = NULL; 55 BSP_output_char_function_type BSP_output_char = _BSP_null_char; 54 56 55 57 /* … … 770 772 return( rtems_termios_ioctl (arg) ); 771 773 } 772 int DEBUG_OUTCHAR(int c) 773 { 774 if(c == '\n') 775 DEBUG_OUTCHAR('\r'); 776 _BSP_null_char(c); 777 return c; 778 } 779 void DEBUG_OUTSTR(const char *msg) 780 { 781 while (*msg) 782 DEBUG_OUTCHAR(*msg++); 783 } 784 void DEBUG_OUTNUM(int i) 785 { 786 int n; 787 static const char map[] = "0123456789ABCDEF"; 788 DEBUG_OUTCHAR(' '); 789 for (n = 28 ; n >= 0 ; n -= 4) 790 DEBUG_OUTCHAR(map[(i >> n) & 0xF]); 791 } 792 793 BSP_polling_getchar_function_type BSP_poll_char = NULL; 794 774
Note: See TracChangeset
for help on using the changeset viewer.