📄 _mb894xx.h
字号:
/*
MB8948x Series I/O register declaration file V30L07
ALL RIGHTS RESERVED, COPYRIGHT (C) FUJITSU LIMITED 1998-2000
LICENSED MATERIAL - PROGRAM PROPERTY OF FUJITSU LIMITED
*//*updated by Norman Yang*/
#include "_f8ldefa.h"
/*****************************************************/
/* Sample program for control registers of I/O port. */
/*****************************************************/
/* structure of PDR0 */
__UNION io_pdr0 __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( P00 ,1)
#define P00 PDR0.bit.P00
__UCHARBIT( P01 ,1)
#define P01 PDR0.bit.P01
__UCHARBIT( P02 ,1)
#define P02 PDR0.bit.P02
__UCHARBIT( P03 ,1)
#define P03 PDR0.bit.P03
__UCHARBIT( P04 ,1)
#define P04 PDR0.bit.P04
__UCHARBIT( P05 ,1)
#define P05 PDR0.bit.P05
__UCHARBIT( P06 ,1)
#define P06 PDR0.bit.P06
__UCHARBIT( P07 ,1)
#define P07 PDR0.bit.P07
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of DDR0 */
__UNION io_ddr0 __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( DDR00,1)
__UCHARBIT( DDR01,1)
__UCHARBIT( DDR02,1)
__UCHARBIT( DDR03,1)
__UCHARBIT( DDR04,1)
__UCHARBIT( DDR05,1)
__UCHARBIT( DDR06,1)
__UCHARBIT( DDR07,1)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of PDR1 */
__UNION io_pdr1 __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( P10 ,1)
#define P10 PDR1.bit.P10
__UCHARBIT( P11 ,1)
#define P11 PDR1.bit.P11
__UCHARBIT( P12 ,1)
#define P12 PDR1.bit.P12
__UCHARBIT( P13 ,1)
#define P13 PDR1.bit.P13
__UCHARBIT( P14 ,1)
#define P14 PDR1.bit.P14
__UCHARBIT( P15 ,1)
#define P15 PDR1.bit.P15
__UCHARBIT( P16 ,1)
#define P16 PDR1.bit.P16
__UCHARBIT( P17 ,1)
#define P17 PDR1.bit.P17
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of DDR1 */
__UNION io_ddr1 __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( DDR10,1)
__UCHARBIT( DDR11,1)
__UCHARBIT( DDR12,1)
__UCHARBIT( DDR13,1)
__UCHARBIT( DDR14,1)
__UCHARBIT( DDR15,1)
__UCHARBIT( DDR16,1)
__UCHARBIT( DDR17,1)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of PDR2 */
__UNION io_pdr2 __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( P20 ,1)
#define P20 PDR2.bit.P20
__UCHARBIT( P21 ,1)
#define P21 PDR2.bit.P21
__UCHARBIT( P22 ,1)
#define P22 PDR2.bit.P22
__UCHARBIT( P23 ,1)
#define P23 PDR2.bit.P23
__UCHARBIT( P24 ,1)
#define P24 PDR2.bit.P24
__UCHARBIT( P25 ,1)
#define P25 PDR2.bit.P25
__UCHARBIT( P26 ,1)
#define P26 PDR2.bit.P26
__UCHARBIT( P27 ,1)
#define P27 PDR2.bit.P27
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of DDR2 */
__UNION io_ddr2 __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( DDR20,1)
__UCHARBIT( DDR21,1)
__UCHARBIT( DDR22,1)
__UCHARBIT( DDR23,1)
__UCHARBIT( DDR24,1)
__UCHARBIT( DDR25,1)
__UCHARBIT( DDR26,1)
__UCHARBIT( DDR27,1)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of PDR3 */
__UNION io_pdr3 __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( P30 ,1)
#define P30 PDR3.bit.P30
__UCHARBIT( P31 ,1)
#define P31 PDR3.bit.P31
__UCHARBIT( P32 ,1)
#define P32 PDR3.bit.P32
__UCHARBIT( P33 ,1)
#define P33 PDR3.bit.P33
__UCHARBIT( P34 ,1)
#define P34 PDR3.bit.P34
__UCHARBIT( P35 ,1)
#define P35 PDR3.bit.P35
__UCHARBIT( P36 ,1)
#define P36 PDR3.bit.P36
__UCHARBIT_NONAME( 1)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of PDR4 */
__UNION io_pdr4 __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( P40 ,1)
#define P40 PDR4.bit.P40
__UCHARBIT( P41 ,1)
#define P41 PDR4.bit.P41
__UCHARBIT( P42 ,1)
#define P42 PDR4.bit.P42
__UCHARBIT_NONAME( 5)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of PDR5 */
__UNION io_pdr5 __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( P50 ,1)
#define P50 PDR5.bit.P50
__UCHARBIT( P51 ,1)
#define P51 PDR5.bit.P51
__UCHARBIT( P52 ,1)
#define P52 PDR5.bit.P52
__UCHARBIT( P53 ,1)
#define P53 PDR5.bit.P53
__UCHARBIT( P54 ,1)
#define P54 PDR5.bit.P54
__UCHARBIT_NONAME( 3)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of DDR5 */
__UNION io_ddr5 __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( DDR50,1)
__UCHARBIT( DDR51,1)
__UCHARBIT( DDR52,1)
__UCHARBIT( DDR53,1)
__UCHARBIT( DDR54,1)
__UCHARBIT( ,3)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/************************************************************/
/* Sample program for I/O variables of clock control block. */
/************************************************************/
/* structure of SYCC */
__UNION io_sycc __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( SYCC_CS ,2)
#define SYCC_CS SYCC.bit.SYCC_CS
__UCHARBIT( SYCC_SCS ,1)
#define SYCC_SCS SYCC.bit.SYCC_SCS
__UCHARBIT( SYCC_WT ,2)
#define SYCC_WT SYCC.bit.SYCC_WT
__UCHARBIT_NONAME( 2)
__UCHARBIT (SYCC_SCM, 1)
#define SYCC_SCM SYCC.bit.SYCC_CS
__STRUCT_TYPE_E(bit)
__STRUCT_E
/*************************************************************/
/* Sample program for I/O variables of low power controller. */
/*************************************************************/
/* structure of STBC */
__UNION io_stbc __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT_NONAME( 3)
__UCHARBIT( STBC_TMD ,1)
#define STBC_TMD STBC.bit.STBC_TMD
__UCHARBIT( STBC_RST ,1)
#define STBC_RST STBC.bit.STBC_RST
__UCHARBIT( STBC_SPL ,1)
#define STBC_SPL STBC.bit.STBC_SPL
__UCHARBIT( STBC_SLP ,1)
#define STBC_SLP STBC.bit.STBC_SLP
__UCHARBIT( STBC_STP ,1)
#define STBC_STP STBC.bit.STBC_STP
__STRUCT_TYPE_E(bit)
__STRUCT_E
/*************************************************************/
/* Sample program for I/O variables of watchdog controller. */
/*************************************************************/
/* structure of WDTC */
__UNION io_wdtc __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( WTE0 ,1)
__UCHARBIT( WTE1 ,1)
__UCHARBIT( WTE2 ,1)
__UCHARBIT( WTE3 ,1)
__UCHARBIT_NONAME( 3)
__UCHARBIT( CS ,1)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/***********************************************************/
/* Sample program for control register of time-base timer. */
/***********************************************************/
/* structure of TBTC */
__UNION io_tbtc __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( TBTC_TBR ,1)
#define TBTC_TBR TBTC.bit.TBTC_TBR
__UCHARBIT( TBTC_TBC ,2)
#define TBTC_TBC TBTC.bit.TBTC_TBC
__UCHARBIT_NONAME( 3)
__UCHARBIT( TBTC_TBIE,1)
#define TBTC_TBIE TBTC.bit.TBTC_TBIE
__UCHARBIT( TBTC_TBOF,1)
#define TBTC_TBOF TBTC.bit.TBTC_TBOF
__STRUCT_TYPE_E(bit)
__STRUCT_E
/***********************************************************/
/* Sample program for control register of watch prescaler timer. */
/***********************************************************/
/* structure of WPCR */
__UNION io_wpcr __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( WPCR_WCLR ,1)
#define WPCR_WCLR WPCR.bit.WPCR_WCLR
__UCHARBIT( WPCR_WS ,3)
#define WPCR_WS WPCR.bit.WPCR_WS
__UCHARBIT_NONAME( 2)
__UCHARBIT( WPCR_WIE,1)
#define WPCR_WIE WPCR.bit.WPCR_WIE
__UCHARBIT( WPCR_WIF,1)
#define WPCR_WIF WPCR.bit.WPCR_WIF
__STRUCT_TYPE_E(bit)
__STRUCT_E
/***********************************************************/
/* Sample program for control register of reset flag register. */
/***********************************************************/
/* structure of RSFR */
__UNION io_rsfr __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT_NONAME( 4)
__UCHARBIT( SFTR ,1)
__UCHARBIT( WDOG,1)
__UCHARBIT( ERST,1)
__UCHARBIT( PONR,1)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/******************************************************************/
/* Sample program for data and control registers of BUZ . */
/******************************************************************/
/* structure of BUZZER */
__UNION io_bzcr __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( BZCR_BZ ,3)
#define BZCR_BZ BZCR_BZ.bit.BZCR_BZ
__UCHARBIT_NONAME( 5)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/********************************************************************/
/* Sample program for data and control registers of 8/16-bit timer. */
/********************************************************************/
/* structure of T1CR */
__UNION io_t1cr __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( T1CR_T1STR,1)
#define T1CR_STR T1CR.bit.T1CR_T1STR
__UCHARBIT( T1CR_T1STP,1)
#define T1CR_STP T1CR.bit.T1CR_T1STP
__UCHARBIT( T1CR_T1CS ,2)
#define T1CR_CS T1CR.bit.T1CR_T1CS
__UCHARBIT( T1CR_T1OS ,2)
#define T1CR_OS T1CR.bit.T1CR_T1OS
__UCHARBIT( T1CR_T1IE ,1)
#define T1CR_IE T1CR.bit.T1CR_T1IE
__UCHARBIT( T1CR_T1IF ,1)
#define T1CR_IF T1CR.bit.T1CR_T1IF
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of T2CR */
__UNION io_t2cr __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( T2CR_T2STR,1)
#define T2CR_STR T2CR.bit.T2CR_T2STR
__UCHARBIT( T2CR_T2STP,1)
#define T2CR_STP T2CR.bit.T2CR_T2STP
__UCHARBIT( T2CR_T2CS ,2)
#define T2CR_CS T2CR.bit.T2CR_T2CS
__UCHARBIT( T2CR_T2OS ,2)
#define T2CR_OS T2CR.bit.T2CR_T2OS
__UCHARBIT( T2CR_T2IE ,1)
#define T2CR_IE T2CR.bit.T2CR_T2IE
__UCHARBIT( T2CR_T2IF ,1)
#define T2CR_IF T2CR.bit.T2CR_T2IF
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of T1DR */
__UNION io_t1dr __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( T1DRV,8)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of T2DR */
__UNION io_t2dr __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( T2DRV,8)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/********************************************************************/
/* Sample program for data and control registers of 8/16-bit timer. */
/********************************************************************/
/* structure of T3CR */
__UNION io_t3cr __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( T3CR_T3STR,1)
#define T3CR_STR T3CR.bit.T3CR_T3STR
__UCHARBIT( T3CR_T3STP,1)
#define T3CR_STP T3CR.bit.T3CR_T3STP
__UCHARBIT( T3CR_T3CS ,2)
#define T3CR_CS T3CR.bit.T3CR_T3CS
__UCHARBIT( T3CR_T3OS ,2)
#define T3CR_OS T3CR.bit.T3CR_T3OS
__UCHARBIT( T3CR_T3IE ,1)
#define T3CR_IE T3CR.bit.T3CR_T3IE
__UCHARBIT( T3CR_T3IF ,1)
#define T3CR_IF T3CR.bit.T3CR_T3IF
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of T4CR */
__UNION io_t4cr __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( T4CR_T4STR,1)
#define T4CR_STR T4CR.bit.T4CR_T4STR
__UCHARBIT( T4CR_T4STP,1)
#define T4CR_STP T4CR.bit.T4CR_T4STP
__UCHARBIT( T4CR_T4CS ,2)
#define T4CR_CS T4CR.bit.T4CR_T4CS
__UCHARBIT( T4CR_T4OS ,2)
#define T4CR_OS T4CR.bit.T4CR_T4OS
__UCHARBIT( T4CR_T4IE ,1)
#define T4CR_IE T4CR.bit.T4CR_T4IE
__UCHARBIT( T4CR_T4IF ,1)
#define T4CR_IF T4CR.bit.T4CR_T4IF
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of T3DR */
__UNION io_t3dr __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( T3DRV,8)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of T4DR */
__UNION io_t4dr __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( T4DRV,8)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/******************************************************/
/* Sample program for I/O variables of A/D converter. */
/******************************************************/
/* structure of ADC1 */
__UNION io_adc1 __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( AD_STARTBIT ,1)
#define AD_STARTBIT ADC1.bit.AD_STARTBIT
__UCHARBIT_NONAME( 1)
__UCHARBIT( AD_ADMV,1)
#define AD_ADMV ADC1.bit.AD_ADMV
__UCHARBIT( AD_ConverOverFlag ,1)
#define AD_ConverOverFlag ADC1.bit.AD_ConverOverFlag
__UCHARBIT( AD_ANS ,3)
#define AD_ANS ADC1.bit.AD_ANS
__UCHARBIT_NONAME( 1)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of ADC2 */
__UNION io_adc2 __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT_NONAME( 1)
__UCHARBIT( AD_EXT ,1)
#define AD_EXT ADC2.bit.AD_EXT
__UCHARBIT( AD_ADMD,1)
#define AD_ADMD ADC2.bit.AD_ADMD
__UCHARBIT( AD_ADIE,1)
#define AD_ADIE ADC2.bit.AD_ADIE
__UCHARBIT( AD_ADCK,1)
#define AD_ADCK ADC2.bit.AD_ADCK
__UCHARBIT_NONAME( 3)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of ADER */
__UNION io_ader __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( ADER0 ,1)
__UCHARBIT( ADER1 ,1)
__UCHARBIT( ADER2 ,1)
__UCHARBIT( ADER3 ,1)
__UCHARBIT( ADER4 ,1)
__UCHARBIT( ADER5 ,1)
__UCHARBIT( ADER6 ,1)
__UCHARBIT( ADER7 ,1)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of ADDV */
__UNION io_addv __STRUCT_B
__WORD_MEM
__STRUCT_TYPE_B
__USHORTBIT(ADDATA10,10)
__USHORTBIT_NONAME(6)
__STRUCT_TYPE_E(bit)
__STRUCT_E
/* structure of ADDH AND ADDL
__UNION io_addh __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( ADDH0 ,2)
__UCHARBIT_NONAME(6)
__STRUCT_TYPE_E(bit)
__STRUCT_E
__UNION io_addl __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( ADDL0 ,8)
__STRUCT_TYPE_E(bit)
__STRUCT_E
*/
/*********************************************/
/* Sample program for I/O variables of UART.1 */
/*********************************************/
/* structure of SMC11 */
__UNION io_smc11 __STRUCT_B
__BYTE_MEM
__STRUCT_TYPE_B
__UCHARBIT( Uart1_CLK ,3)
#define UART1_CLK SMC11.bit.Uart1_CLK
__UCHARBIT( Uart1_CL,1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -