OpenCores
URL https://opencores.org/ocsvn/neorv32/neorv32/trunk

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [sw/] [lib/] [source/] [neorv32_uart.c] - Diff between revs 72 and 73

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 72 Rev 73
Line 55... Line 55...
static void __neorv32_uart_touppercase(uint32_t len, char *ptr) __attribute__((unused)); // GCC: do not output a warning when this variable is unused
static void __neorv32_uart_touppercase(uint32_t len, char *ptr) __attribute__((unused)); // GCC: do not output a warning when this variable is unused
/// \endcond
/// \endcond
 
 
 
 
// #################################################################################################
// #################################################################################################
 
// Override default STDIO functions
 
// #################################################################################################
 
 
 
/**********************************************************************//**
 
 * Send char via UART0
 
 *
 
 * @param[in] Char to be send.
 
 * @return Char that has been sent.
 
 **************************************************************************/
 
int putchar(int ch) {
 
 
 
  neorv32_uart0_putc((char)ch);
 
  return ch;
 
}
 
 
 
 
 
/**********************************************************************//**
 
 * Read char from UART0.
 
 *
 
 * @return Read char.
 
 **************************************************************************/
 
int getchar(void) {
 
 
 
  return (int)neorv32_uart0_getc();
 
}
 
 
 
 
 
// #################################################################################################
// Primary UART (UART0)
// Primary UART (UART0)
// #################################################################################################
// #################################################################################################
 
 
/**********************************************************************//**
/**********************************************************************//**
 * Check if UART0 unit was synthesized.
 * Check if UART0 unit was synthesized.

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.