source: rtems/c/src/lib/libbsp/m68k/mcf52235/console/debugio.c @ 66093623

5
Last change on this file since 66093623 was a6e7c575, checked in by Joel Sherrill <joel@…>, on Mar 29, 2016 at 7:05:34 PM

m68k/mcf52235/console/debugio.c: Remove unneeded include of <rtems/mw_uid.h>

  • Property mode set to 100644
File size: 700 bytes
Line 
1 /*
2  *  Multi UART console serial I/O.
3  *
4  * TO DO: Add DMA input/output
5  */
6
7#include <stdio.h>
8#include <fcntl.h>
9#include <rtems/libio.h>
10#include <rtems/termiostypes.h>
11#include <termios.h>
12#include <bsp.h>
13#include <malloc.h>
14
15#include <rtems/bspIo.h>
16
17static void _BSP_null_char(char c)
18{
19  int level;
20
21  rtems_interrupt_disable(level);
22  while ((MCF_UART_USR(CONSOLE_PORT) & MCF_UART_USR_TXRDY) == 0)
23    continue;
24  MCF_UART_UTB(CONSOLE_PORT) = c;
25  while ((MCF_UART_USR(CONSOLE_PORT) & MCF_UART_USR_TXRDY) == 0)
26    continue;
27  rtems_interrupt_enable(level);
28}
29
30BSP_output_char_function_type     BSP_output_char = _BSP_null_char;
31BSP_polling_getchar_function_type BSP_poll_char = NULL;
32
Note: See TracBrowser for help on using the repository browser.