URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/orpsocv2/sw/drivers
- from Rev 475 to Rev 482
- ↔ Reverse comparison
Rev 475 → Rev 482
/simple-spi/simple-spi.c
9,8 → 9,15
#include "simple-spi.h" |
#include "cpu-utils.h" |
|
const int spi_base_adr[1] = {SPI0_BASE}; |
|
const int spi_base_adr[1] = { |
#ifdef SPI0_BASE |
SPI0_BASE |
#else |
0 |
#endif |
}; |
|
void |
spi_core_enable(int core) |
{ |
/uart/uart.c
2,8 → 2,20
#include "board.h" |
#include "uart.h" |
|
const int UART_BASE_ADR[1] = {UART0_BASE}; |
const int UART_BAUDS[1] = {UART0_BAUD_RATE}; |
const int UART_BASE_ADR[1] = { |
#ifdef UART0_BASE |
UART0_BASE |
#else |
0 |
#endif |
}; |
const int UART_BAUDS[1] = { |
#ifdef UART0_BAUD_RATE |
UART0_BAUD_RATE |
#else |
0 |
#endif |
}; |
|
#define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE) |
|