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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [include/] [l4/] [platform/] [tests/] [uart.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
#ifndef __PLATFORM__PB926__UART__H__
2
#define __PLATFORM__PB926__UART__H__
3
 
4
/*
5
 * Platform specific ties to generic uart functions that putc expects.
6
 *
7
 * Copyright (C) 2005 Bahadir Balban
8
 *
9
 */
10
 
11
/* C library on host */
12
#include <stdio.h>
13
 
14
#include INC_PLAT(offsets.h)
15
#include INC_GLUE(basiclayout.h)
16
/* TODO: PL011_BASE must point at a well-known virtual uart base address */
17
//#define PL011_BASE                    PB926_UART0_BASE
18
#define PL011_BASE                      (IO_AREA0_VADDR + 0xF1000)
19
#include <drivers/uart/pl011/pl011_uart.h>
20
 
21
static inline void uart_initialise(void)
22
{
23
 
24
}
25
 
26
#define uart_putc(c)    printf("%c",(char)c)
27
 
28
 
29
 
30
#endif /* __PLATFORM__PB926__UART__H__ */

powered by: WebSVN 2.1.0

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