Changeset cb6b9ba in rtems


Ignore:
Timestamp:
Jun 19, 2013, 10:57:54 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
1f4ee30
Parents:
3f6a823
git-author:
Sebastian Huber <sebastian.huber@…> (06/19/13 10:57:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/19/13 11:04:01)
Message:

bsp/xilinx-zynq: Use magic UART baud divisor

Use a baud divisor suitable for the evaluation board.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/xilinx-zynq/console/zynq-uart.c

    r3f6a823 rcb6b9ba  
    3737    | ZYNQ_UART_MODE_PAR(ZYNQ_UART_MODE_PAR_NONE)
    3838    | ZYNQ_UART_MODE_CHRL(ZYNQ_UART_MODE_CHRL_8);
    39   regs->baud_rate_gen = ZYNQ_UART_BAUD_RATE_GEN_CD(1);
    40   regs->baud_rate_div = ZYNQ_UART_BAUD_RATE_DIV_BDIV(0xff);
     39  regs->baud_rate_gen = ZYNQ_UART_BAUD_RATE_GEN_CD(0x3e);
     40  regs->baud_rate_div = ZYNQ_UART_BAUD_RATE_DIV_BDIV(0x6);
    4141  regs->rx_fifo_trg_lvl = ZYNQ_UART_RX_FIFO_TRG_LVL_RTRIG(0);
    4242  regs->rx_timeout = ZYNQ_UART_RX_TIMEOUT_RTO(0);
Note: See TracChangeset for help on using the changeset viewer.