📄 mod_regs_bsc.h
字号:
#ifndef CYGONCE_MOD_REGS_BSC_H
#define CYGONCE_MOD_REGS_BSC_H
//==========================================================================
//
// mod_regs_bsc.h
//
// Bus Controler Register
//
//==========================================================================
//####ECOSGPLCOPYRIGHTBEGIN####
// -------------------------------------------
// This file is part of eCos, the Embedded Configurable Operating System.
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
//
// eCos is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2 or (at your option) any later version.
//
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
// for more details.
//
// You should have received a copy of the GNU General Public License along
// with eCos; if not, write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
//
// As a special exception, if other files instantiate templates or use macros
// or inline functions from this file, or you compile this file and link it
// with other works to produce a work based on this file, this file does not
// by itself cause the resulting work to be covered by the GNU General Public
// License. However the source code for this file must still be made available
// in accordance with section (3) of the GNU General Public License.
//
// This exception does not invalidate any other reasons why a work based on
// this file might be covered by the GNU General Public License.
//
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
// at http://sources.redhat.com/ecos/ecos-license/
// -------------------------------------------
//####ECOSGPLCOPYRIGHTEND####
//==========================================================================
//#####DESCRIPTIONBEGIN####
//
// Author(s): Uwe Kindler
// Contributors: Uwe Kindler
// Date: 2004-11-04
//
//####DESCRIPTIONEND####
//
//==========================================================================
//==========================================================================
// DOXYGEN FILE HEADER
/// \file mod_regs_bsc.h
/// \brief Bus Controler Register definitions.
/// \author Uwe Kindler
/// \date 2004-11-02
//==========================================================================
//==========================================================================
// REGISTER ADDRESSES
//==========================================================================
#define CYGARC_ABWCR 0xFFFED0
#define CYGARC_ASTCR 0xFFFED1
#define CYGARC_WCRH 0xFFFED2
#define CYGARC_WCRL 0xFFFED3
#define CYGARC_BCRH 0xFFFED4
#define CYGARC_BCRL 0xFFFED5
#define CYGARC_PFCR 0xFFFDEB
#ifndef __ASSEMBLER__
//==========================================================================
// REGISTER STRUCTURE
//==========================================================================
struct st_bsc { // struct BSC
char wk1; //
union { // PFCR
unsigned char BYTE; // Byte Access
struct { // Bit Access
unsigned char :4; //
unsigned char AE3:1; // AE3
unsigned char AE2:1; // AE2
unsigned char AE1:1; // AE1
unsigned char AE0:1; // AE0
} BIT; //
} PFCR; //
char wk2[228]; //
union { // ABWCR
unsigned char BYTE; // Byte Access
struct { // Bit Access
unsigned char ABW7:1; // ABW7
unsigned char ABW6:1; // ABW6
unsigned char ABW5:1; // ABW5
unsigned char ABW4:1; // ABW4
unsigned char ABW3:1; // ABW3
unsigned char ABW2:1; // ABW2
unsigned char ABW1:1; // ABW1
unsigned char ABW0:1; // ABW0
} BIT; //
} ABWCR; //
union { // ASTCR
unsigned char BYTE; // Byte Access
struct { // Bit Access
unsigned char AST7:1; // AST7
unsigned char AST6:1; // AST6
unsigned char AST5:1; // AST5
unsigned char AST4:1; // AST4
unsigned char AST3:1; // AST3
unsigned char AST2:1; // AST2
unsigned char AST1:1; // AST1
unsigned char AST0:1; // AST0
} BIT; //
} ASTCR; //
union { // WCR
unsigned int WORD; // Word Access
struct { // Byte Access
unsigned char H; // WCRH
unsigned char L; // WCRL
} BYTE; //
struct { // Bit Access
unsigned char W7:2; // W7
unsigned char W6:2; // W6
unsigned char W5:2; // W5
unsigned char W4:2; // W4
unsigned char W3:2; // W3
unsigned char W2:2; // W2
unsigned char W1:2; // W1
unsigned char W0:2; // W0
} BIT; //
} WCR; //
union { // BCR
unsigned int WORD; // Word Access
struct { // Byte Access
unsigned char H; // BCRH
unsigned char L; // BCRL
} BYTE; //
struct { // Bit Access
unsigned char ICIS1 :1; // ICIS1
unsigned char ICIS0 :1; // ICIS0
unsigned char BRSTRM:1; // BRSTRM
unsigned char BRSTS1:1; // BRSTS1
unsigned char BRSTS0:1; // BRSTS0
unsigned char :3; //
unsigned char :6; //
unsigned char WDBE :1; // WDBE
} BIT; //
} BCR; //
};
//==========================================================================
// STRUCTURED REGISTER ACCESS
//==========================================================================
#define HAL_H8S_REG_BSC (*(volatile struct st_bsc *)0xFFFDEA) // BSC Address
#endif // #ifndef __ASSEMBLER__
//---------------------------------------------------------------------------
#endif // End of #define CYGONCE_MOD_REGS_BSC_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -