1 | /* tmpl.c -- Template for new boards. |
---|
2 | * |
---|
3 | * Copyright (c) 2014 Authors |
---|
4 | * |
---|
5 | * Contributor Stefan Wallentowitz <stefan.wallentowitz@saunalahti.fi> |
---|
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 | // TODO: set memory base here |
---|
19 | unsigned long __attribute__((weak)) _or1k_board_mem_base = 0x0; |
---|
20 | |
---|
21 | // TODO: set memory size here |
---|
22 | unsigned long __attribute__((weak)) _or1k_board_mem_size = 0x0; |
---|
23 | |
---|
24 | // TODO: set board clock frequency here |
---|
25 | unsigned long __attribute__((weak)) _or1k_board_clk_freq = 0x0; |
---|
26 | |
---|
27 | // TODO: UART configuration |
---|
28 | unsigned long __attribute__((weak)) _or1k_board_uart_base = 0x0; |
---|
29 | unsigned long __attribute__((weak)) _or1k_board_uart_baud = 0x0; |
---|
30 | unsigned long __attribute__((weak)) _or1k_board_uart_IRQ = 0x0; |
---|
31 | |
---|
32 | // TODO: Board exit function, default: loop |
---|
33 | void __attribute__((weak)) _or1k_board_exit(void) { |
---|
34 | while (1) {} |
---|
35 | } |
---|
36 | |
---|
37 | // TODO: Board initialization |
---|
38 | void __attribute__((weak)) _or1k_board_init(void) { |
---|
39 | return; |
---|
40 | } |
---|