Last change
on this file since 519 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
1.2 KB
|
Line | |
---|
1 | /* or1k_uart.h -- UART definitions for OpenRISC 1000. |
---|
2 | * |
---|
3 | * Copyright (c) 2014 Authors |
---|
4 | * |
---|
5 | * Contributor Stefan Wallentowitz <stefan.wallentowitz@tum.de> |
---|
6 | * |
---|
7 | * The authors hereby grant permission to use, copy, modify, distribute, |
---|
8 | * and license this software and its documentation for any purpose, provided |
---|
9 | * that existing copyright notices are retained in all copies and that this |
---|
10 | * notice is included verbatim in any distributions. No written agreement, |
---|
11 | * license, or royalty fee is required for any of the authorized uses. |
---|
12 | * Modifications to this software may be copyrighted by their authors |
---|
13 | * and need not follow the licensing terms described here, provided that |
---|
14 | * the new terms are clearly indicated on the first page of each file where |
---|
15 | * they apply. |
---|
16 | */ |
---|
17 | |
---|
18 | /* This is the generic board support for the OpenCores UART device, internal |
---|
19 | * header. */ |
---|
20 | |
---|
21 | #include <stdint.h> |
---|
22 | |
---|
23 | #include "board.h" |
---|
24 | |
---|
25 | /** |
---|
26 | * Registered callback function |
---|
27 | */ |
---|
28 | extern void (*_or1k_uart_read_cb)(char c); |
---|
29 | |
---|
30 | /** |
---|
31 | * The UART interrupt handler |
---|
32 | */ |
---|
33 | void _or1k_uart_interrupt_handler(uint32_t data); |
---|
34 | |
---|
35 | /** |
---|
36 | * Initialize UART |
---|
37 | */ |
---|
38 | int _or1k_uart_init(void); |
---|
39 | |
---|
40 | /** |
---|
41 | * Write character to UART |
---|
42 | */ |
---|
43 | void _or1k_uart_write(char c); |
---|
Note: See
TracBrowser
for help on using the repository browser.