00001 #ifndef _CFG_RPORT_H_ 00002 #define _CFG_RPORT_H_ 00003 00004 /* 00005 * Copyright (C) 2004 by Jan Dubiec. All rights reserved. 00006 * 00007 * Redistribution and use in source and binary forms, with or without 00008 * modification, are permitted provided that the following conditions 00009 * are met: 00010 * 00011 * 1. Redistributions of source code must retain the above copyright 00012 * notice, this list of conditions and the following disclaimer. 00013 * 2. Redistributions in binary form must reproduce the above copyright 00014 * notice, this list of conditions and the following disclaimer in the 00015 * documentation and/or other materials provided with the distribution. 00016 * 3. Neither the name of the copyright holders nor the names of 00017 * contributors may be used to endorse or promote products derived 00018 * from this software without specific prior written permission. 00019 * 00020 * THIS SOFTWARE IS PROVIDED BY JAN DUBIEC AND CONTRIBUTORS 00021 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00022 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 00023 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JAN DUBIEC 00024 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00025 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00026 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00027 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00028 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00029 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00030 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00031 */ 00032 00033 /* 00034 * $Log$ 00035 * Revision 1.1 2004/03/16 16:56:21 haraldkipp 00036 * Added Jan Dubiec's H8/300 port. 00037 * 00038 */ 00039 00048 00049 #include <h83068f.h> 00050 00060 #define NutInitSysIrq() \ 00061 INTC.ISCR.BIT.IRQ0SC = 0; \ 00062 INTC.IPRA.BIT._IRQ0 = 0; 00063 00067 #define NIC_IO_BASE (0x800000UL + 0x300UL) 00068 00072 #define NicIntIsEnabled() (INTC.IER.BIT.IRQ0E == 1) 00073 00077 #define NicDisableInt() INTC.IER.BIT.IRQ0E = 0 00078 00082 #define NicEnableInt() INTC.IER.BIT.IRQ0E = 1 00083 00087 #define NicMcu16bitBus() BSC.ABWCR.BIT.ABW4 = 0 00088 00092 #define NicMcu8bitBus() BSC.ABWCR.BIT.ABW4 = 1 00093 00097 #define RTL_SIGNAL sig_INT0 00098 00101 #endif /* #ifndef _CFG_RPORT_H_ */