Ignore:
Timestamp:
04/27/17 11:14:53 (6 years ago)
Author:
Martin Aberg <maberg@…>
Branches:
5, master
Children:
ad203e58
Parents:
011efee8
git-author:
Martin Aberg <maberg@…> (04/27/17 11:14:53)
git-committer:
Daniel Hellstrom <daniel@…> (05/14/17 10:31:57)
Message:

bsp/leon3: Cleaner namespace for LEON3 debug UART

Prefix BSP specific symbols with BSP name:
dbg_uart -> leon3_debug_uart
debug_uart_index -> leon3_debug_uart_index

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/uart/apbuart_cons.c

    r011efee8 r229c4249  
    4949  int wait_sent);
    5050extern int apbuart_inbyte_nonblocking(struct apbuart_regs *regs);
    51 extern struct apbuart_regs *dbg_uart; /* The debug UART */
     51#ifdef LEON3
     52extern struct apbuart_regs *leon3_debug_uart; /* The debug UART */
     53#endif
    5254
    5355/* Probed hardware capabilities */
     
    264266        db = 0;
    265267#ifdef LEON3
    266         if (priv->regs == dbg_uart) {
     268        if (priv->regs == leon3_debug_uart) {
    267269                db = priv->regs->ctrl & (LEON_REG_UART_CTRL_RE |
    268270                                        LEON_REG_UART_CTRL_TE |
     
    511513#ifdef LEON3
    512514        /* Disable TX/RX if not used for DEBUG */
    513         if (uart->regs != dbg_uart)
     515        if (uart->regs != leon3_debug_uart)
    514516                uart->regs->ctrl &= ~(APBUART_CTRL_RE | APBUART_CTRL_TE);
    515517#endif
Note: See TracChangeset for help on using the changeset viewer.