Ignore:
Timestamp:
Sep 6, 2007, 1:23:43 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ce40d30
Parents:
ee8933f2
Message:

2007-09-06 Daniel Hellstrom <daniel@…>

  • Makefile.am, preinstall.am: New files, split of printk.
  • console/console.c, console/debugputs.c: Split printk support out.
  • include/spacewire.h: Removed.
  • Makefile.am, preinstall.am: Use the following new drivers from sparc/shared: PCI, b1553BRM, SpaceWire?(GRSPW), CAN (GRCAN), Raw UART.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/console/debugputs.c

    ree8933f2 r344ba65  
    7070  return -1;
    7171}
     72
     73/* putchar/getchar for printk */
     74
     75static void bsp_out_char(char c)
     76{
     77  console_outbyte_polled(0, c);
     78}
     79
     80BSP_output_char_function_type BSP_output_char = bsp_out_char;
     81
     82static char bsp_in_char(void)
     83{
     84  int tmp;
     85
     86  while ((tmp = console_inbyte_nonblocking(0)) < 0);
     87  return (char) tmp;
     88}
     89
     90BSP_polling_getchar_function_type BSP_poll_char = bsp_in_char;
Note: See TracChangeset for help on using the changeset viewer.