Changeset befae6ab in rtems


Ignore:
Timestamp:
03/07/18 09:32:42 (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
a4151d0
Parents:
d440a9e
git-author:
Sebastian Huber <sebastian.huber@…> (03/07/18 09:32:42)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/07/18 12:03:32)
Message:

bsp/genmcf548x: Fix printk() support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/genmcf548x/console/console.c

    rd440a9e rbefae6ab  
    7272static ssize_t IntUartPollWrite(int minor, const char *buf, size_t len);
    7373static int IntUartPollRead (int minor);
     74static int IntUartSetAttributes(int minor, const struct termios *t);
    7475
    7576static void
    76 _BSP_null_char( char c )
    77 {
    78         int level;
     77psc_output_char( char c )
     78{
     79        rtems_interrupt_level level;
    7980
    8081        rtems_interrupt_disable(level);
     
    8687        rtems_interrupt_enable(level);
    8788}
    88 BSP_output_char_function_type     BSP_output_char = _BSP_null_char;
     89
     90static void
     91psc_output_char_init(char c)
     92{
     93        IntUartSetAttributes(CONSOLE_PORT, NULL);
     94        BSP_output_char = psc_output_char;
     95        psc_output_char(c);
     96}
     97
     98BSP_output_char_function_type     BSP_output_char = psc_output_char_init;
     99
    89100BSP_polling_getchar_function_type BSP_poll_char = NULL;
    90101
     
    486497        } /* of chan loop */
    487498
    488 
     499        BSP_output_char = psc_output_char;
    489500} /* IntUartInitialise */
    490501
Note: See TracChangeset for help on using the changeset viewer.