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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [h8300/] [aki3068net/] [v2_0/] [include/] [platform.inc] - Blame information for rev 27

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#ifndef CYGONCE_HAL_PLATFORM_INC
2
#define CYGONCE_HAL_PLATFORM_INC
3
##=============================================================================
4
##
5
##      platform.inc
6
##
7
##      AKI3068NET "board" assembler header file
8
##
9
##=============================================================================
10
#####ECOSGPLCOPYRIGHTBEGIN####
11
## -------------------------------------------
12
## This file is part of eCos, the Embedded Configurable Operating System.
13
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
14
##
15
## eCos is free software; you can redistribute it and/or modify it under
16
## the terms of the GNU General Public License as published by the Free
17
## Software Foundation; either version 2 or (at your option) any later version.
18
##
19
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
20
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
21
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
22
## for more details.
23
##
24
## You should have received a copy of the GNU General Public License along
25
## with eCos; if not, write to the Free Software Foundation, Inc.,
26
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
27
##
28
## As a special exception, if other files instantiate templates or use macros
29
## or inline functions from this file, or you compile this file and link it
30
## with other works to produce a work based on this file, this file does not
31
## by itself cause the resulting work to be covered by the GNU General Public
32
## License. However the source code for this file must still be made available
33
## in accordance with section (3) of the GNU General Public License.
34
##
35
## This exception does not invalidate any other reasons why a work based on
36
## this file might be covered by the GNU General Public License.
37
##
38
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
39
## at http://sources.redhat.com/ecos/ecos-license/
40
## -------------------------------------------
41
#####ECOSGPLCOPYRIGHTEND####
42
##=============================================================================
43
#######DESCRIPTIONBEGIN####
44
##
45
## Author(s):    jlarmour
46
## Contributors: Yoshinori Sato
47
## Date:         1999-09-09
48
## Purpose:      AKI3068NET "board" definitions.
49
## Description:  This file contains various definitions and macros that are
50
##               required for writing assembly code for the AKI3068NET board
51
##               Currently there are none
52
## Usage:
53
##               #include 
54
##               ...
55
##
56
##
57
######DESCRIPTIONEND####
58
##
59
##=============================================================================
60
 
61
#include 
62
 
63
#include 
64
#include 
65
 
66
##-----------------------------------------------------------------------------
67
 
68
#define CYGPKG_HAL_H8300_MEMC_DEFINED
69
        .macro  hal_memc_init
70
#if defined(CYG_HAL_STARTUP_ROM)
71
        mov.l   #init_regs,er0
72
        mov.w   #8,e1
73
1:
74
        mov.l   @er0+,er2
75
        mov.w   @er0+,r1
76
        mov.b   r1l,@er2
77
        dec.w   #1,e1
78
        bne     1b
79
        bra     2f
80
 
81
init_regs:
82
        .long   CYGARC_RTCOR
83
        .word   5               ; 1.5[ms] reflesh cycle
84
        .long   CYGARC_RTMCSR
85
        .word   0x30            ; clk x 2048
86
        .long   CYGARC_DRCRB
87
        .word   0x90
88
        .long   CYGARC_DRCRA
89
        .word   0x22
90
        .long   CYGARC_P1DDR
91
        .word   0xff
92
        .long   CYGARC_P2DDR
93
        .word   0xff
94
        .long   CYGARC_P5DDR
95
        .word   0x01
96
        .long   CYGARC_P8DDR
97
        .word   0x0c
98
init_regs_end:
99
 
100
2:
101
#endif
102
        .endm
103
 
104
#define CYGPKG_HAL_H8300_DIAG_DEFINED
105
 
106
        .macro  hal_diag_init
107
        mov.b   #0x83,r0l
108
        mov.b   r0l,@CYGARC_PADDR
109
        mov.b   #0,r0l
110
        mov.b   r0l,@CYGARC_PADR
111
        .endm
112
 
113
        .macro  hal_diag_excpt_start
114
        .endm
115
 
116
        .macro  hal_diag_intr_start
117
        .endm
118
 
119
        .macro  hal_diag_restore
120
        .endm
121
 
122
        .macro  hal_diag_data
123
        .endm
124
 
125
#------------------------------------------------------------------------------
126
#endif // ifndef CYGONCE_HAL_PLATFORM_INC
127
# end of platform.inc

powered by: WebSVN 2.1.0

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