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

Subversion Repositories openrisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/trunk/bootloaders/orpmon/drivers
    from Rev 464 to Rev 467
    Reverse comparison

Rev 464 → Rev 467

/tick.c
2,7 → 2,6
#include "common.h"
#include "support.h"
#include "spr-defs.h"
#include "spincursor.h"
 
void tick_init(void)
{
15,7 → 14,7
{
timestamp++;
mtspr(SPR_TTMR, SPR_TTMR_IE | SPR_TTMR_RT | ((IN_CLK/TICKS_PER_SEC) & SPR_TTMR_PERIOD));
//spincursor(); // Check if we want to spin the cursor...
 
}
 
/*
/uart.c
33,14 → 33,16
float float_divisor;
 
/* Reset receiver and transmiter */
REG8(UART_BASE + UART_FCR) = UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT | UART_FCR_TRIGGER_4;
REG8(UART_BASE + UART_FCR) = UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_RCVR
| UART_FCR_CLEAR_XMIT | UART_FCR_TRIGGER_4;
/* Disable all interrupts */
REG8(UART_BASE + UART_IER) = 0x00;
/* Set 8 bit char, 1 stop bit, no parity */
REG8(UART_BASE + UART_LCR) = UART_LCR_WLEN8 & ~(UART_LCR_STOP | UART_LCR_PARITY);
REG8(UART_BASE + UART_LCR) = UART_LCR_WLEN8 & ~(UART_LCR_STOP |
UART_LCR_PARITY);
 
/* Set baud rate */
float_divisor = (float) IN_CLK/(16 * UART_BAUD_RATE);
float_divisor += 0.50f; // Ensure round up

powered by: WebSVN 2.1.0

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