⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sa-1100.h

📁 完整的Bell实验室的嵌入式文件系统TFS
💻 H
📖 第 1 页 / 共 5 页
字号:
#define Ser2UTCR4               /* Ser. port 2 UART Control Reg. 4 */ \                    (*((volatile Word *) io_p2v (_Ser2UTCR4)))#define Ser2UTDR                /* Ser. port 2 UART Data Reg.      */ \                    (*((volatile Word *) io_p2v (_Ser2UTDR)))#define Ser2UTSR0               /* Ser. port 2 UART Status Reg. 0  */ \                    (*((volatile Word *) io_p2v (_Ser2UTSR0)))#define Ser2UTSR1               /* Ser. port 2 UART Status Reg. 1  */ \                    (*((volatile Word *) io_p2v (_Ser2UTSR1)))#define Ser3UTCR0               /* Ser. port 3 UART Control Reg. 0 */ \                    (*((volatile Word *) io_p2v (_Ser3UTCR0)))#define Ser3UTCR1               /* Ser. port 3 UART Control Reg. 1 */ \                    (*((volatile Word *) io_p2v (_Ser3UTCR1)))#define Ser3UTCR2               /* Ser. port 3 UART Control Reg. 2 */ \                    (*((volatile Word *) io_p2v (_Ser3UTCR2)))#define Ser3UTCR3               /* Ser. port 3 UART Control Reg. 3 */ \                    (*((volatile Word *) io_p2v (_Ser3UTCR3)))#define Ser3UTDR                /* Ser. port 3 UART Data Reg.      */ \                    (*((volatile Word *) io_p2v (_Ser3UTDR)))#define Ser3UTSR0               /* Ser. port 3 UART Status Reg. 0  */ \                    (*((volatile Word *) io_p2v (_Ser3UTSR0)))#define Ser3UTSR1               /* Ser. port 3 UART Status Reg. 1  */ \                    (*((volatile Word *) io_p2v (_Ser3UTSR1)))#endif /* LANGUAGE == C */#define UTCR0_PE    0x00000001  /* Parity Enable                   */#define UTCR0_OES   0x00000002  /* Odd/Even parity Select          */#define UTCR0_OddPar    (UTCR0_OES*0)   /*  Odd Parity                     */#define UTCR0_EvenPar   (UTCR0_OES*1)   /*  Even Parity                    */#define UTCR0_SBS   0x00000004  /* Stop Bit Select                 */#define UTCR0_1StpBit   (UTCR0_SBS*0)   /*  1 Stop Bit per frame           */#define UTCR0_2StpBit   (UTCR0_SBS*1)   /*  2 Stop Bits per frame          */#define UTCR0_DSS   0x00000008  /* Data Size Select                */#define UTCR0_7BitData  (UTCR0_DSS*0)   /*  7-Bit Data                     */#define UTCR0_8BitData  (UTCR0_DSS*1)   /*  8-Bit Data                     */#define UTCR0_SCE   0x00000010  /* Sample Clock Enable             */                                /* (ser. port 1: GPIO [18],        */                                /* ser. port 3: GPIO [20])         */#define UTCR0_RCE   0x00000020  /* Receive Clock Edge select       */#define UTCR0_RcRsEdg   (UTCR0_RCE*0)   /*  Receive clock Rising-Edge      */#define UTCR0_RcFlEdg   (UTCR0_RCE*1)   /*  Receive clock Falling-Edge     */#define UTCR0_TCE   0x00000040  /* Transmit Clock Edge select      */#define UTCR0_TrRsEdg   (UTCR0_TCE*0)   /*  Transmit clock Rising-Edge     */#define UTCR0_TrFlEdg   (UTCR0_TCE*1)   /*  Transmit clock Falling-Edge    */#define UTCR0_Ser2IrDA              /* Ser. port 2 IrDA settings       */ \                    (UTCR0_1StpBit + UTCR0_8BitData)#define UTCR1_BRD   Fld (4, 0)  /* Baud Rate Divisor/16 - 1 [11:8] */#define UTCR2_BRD   Fld (8, 0)  /* Baud Rate Divisor/16 - 1  [7:0] */                                /* fua = fxtl/(16*(BRD[11:0] + 1)) */                                /* Tua = 16*(BRD [11:0] + 1)*Txtl  */#define UTCR1_BdRtDiv(Div)          /*  Baud Rate Divisor [16..65536]  */ \                    (((Div) - 16)/16 >> FSize (UTCR2_BRD) << \                     FShft (UTCR1_BRD))#define UTCR2_BdRtDiv(Div)          /*  Baud Rate Divisor [16..65536]  */ \                    (((Div) - 16)/16 & FAlnMsk (UTCR2_BRD) << \                     FShft (UTCR2_BRD))                                /*  fua = fxtl/(16*Floor (Div/16)) */                                /*  Tua = 16*Floor (Div/16)*Txtl   */#define UTCR1_CeilBdRtDiv(Div)      /*  Ceil. of BdRtDiv [16..65536]   */ \                    (((Div) - 1)/16 >> FSize (UTCR2_BRD) << \                     FShft (UTCR1_BRD))#define UTCR2_CeilBdRtDiv(Div)      /*  Ceil. of BdRtDiv [16..65536]   */ \                    (((Div) - 1)/16 & FAlnMsk (UTCR2_BRD) << \                     FShft (UTCR2_BRD))                                /*  fua = fxtl/(16*Ceil (Div/16))  */                                /*  Tua = 16*Ceil (Div/16)*Txtl    */#define UTCR3_RXE   0x00000001  /* Receive Enable                  */#define UTCR3_TXE   0x00000002  /* Transmit Enable                 */#define UTCR3_BRK   0x00000004  /* BReaK mode                      */#define UTCR3_RIE   0x00000008  /* Receive FIFO 1/3-to-2/3-full or */                                /* more Interrupt Enable           */#define UTCR3_TIE   0x00000010  /* Transmit FIFO 1/2-full or less  */                                /* Interrupt Enable                */#define UTCR3_LBM   0x00000020  /* Look-Back Mode                  */#define UTCR3_Ser2IrDA              /* Ser. port 2 IrDA settings (RIE, */ \                                /* TIE, LBM can be set or cleared) */ \                    (UTCR3_RXE + UTCR3_TXE)#define UTCR4_HSE   0x00000001  /* Hewlett-Packard Serial InfraRed */                                /* (HP-SIR) modulation Enable      */#define UTCR4_NRZ   (UTCR4_HSE*0)   /*  Non-Return to Zero modulation  */#define UTCR4_HPSIR (UTCR4_HSE*1)   /*  HP-SIR modulation              */#define UTCR4_LPM   0x00000002  /* Low-Power Mode                  */#define UTCR4_Z3_16Bit  (UTCR4_LPM*0)   /*  Zero pulse = 3/16 Bit time     */#define UTCR4_Z1_6us    (UTCR4_LPM*1)   /*  Zero pulse = 1.6 us            */#define UTDR_DATA   Fld (8, 0)  /* receive/transmit DATA FIFOs     */#if 0                           /* Hidden receive FIFO bits        */#define UTDR_PRE    0x00000100  /*  receive PaRity Error (read)    */#define UTDR_FRE    0x00000200  /*  receive FRaming Error (read)   */#define UTDR_ROR    0x00000400  /*  Receive FIFO Over-Run (read)   */#endif /* 0 */#define UTSR0_TFS   0x00000001  /* Transmit FIFO 1/2-full or less  */                                /* Service request (read)          */#define UTSR0_RFS   0x00000002  /* Receive FIFO 1/3-to-2/3-full or */                                /* more Service request (read)     */#define UTSR0_RID   0x00000004  /* Receiver IDle                   */#define UTSR0_RBB   0x00000008  /* Receive Beginning of Break      */#define UTSR0_REB   0x00000010  /* Receive End of Break            */#define UTSR0_EIF   0x00000020  /* Error In FIFO (read)            */#define UTSR1_TBY   0x00000001  /* Transmitter BusY (read)         */#define UTSR1_RNE   0x00000002  /* Receive FIFO Not Empty (read)   */#define UTSR1_TNF   0x00000004  /* Transmit FIFO Not Full (read)   */#define UTSR1_PRE   0x00000008  /* receive PaRity Error (read)     */#define UTSR1_FRE   0x00000010  /* receive FRaming Error (read)    */#define UTSR1_ROR   0x00000020  /* Receive FIFO Over-Run (read)    *//* * Synchronous Data Link Controller (SDLC) control registers * * Registers *    Ser1SDCR0     Serial port 1 Synchronous Data Link Controller (SDLC) *                  Control Register 0 (read/write). *    Ser1SDCR1     Serial port 1 Synchronous Data Link Controller (SDLC) *                  Control Register 1 (read/write). *    Ser1SDCR2     Serial port 1 Synchronous Data Link Controller (SDLC) *                  Control Register 2 (read/write). *    Ser1SDCR3     Serial port 1 Synchronous Data Link Controller (SDLC) *                  Control Register 3 (read/write). *    Ser1SDCR4     Serial port 1 Synchronous Data Link Controller (SDLC) *                  Control Register 4 (read/write). *    Ser1SDDR      Serial port 1 Synchronous Data Link Controller (SDLC) *                  Data Register (read/write). *    Ser1SDSR0     Serial port 1 Synchronous Data Link Controller (SDLC) *                  Status Register 0 (read/write). *    Ser1SDSR1     Serial port 1 Synchronous Data Link Controller (SDLC) *                  Status Register 1 (read/write). * * Clocks *    fxtl, Txtl    Frequency, period of the system crystal (3.6864 MHz *                  or 3.5795 MHz). *    fsd, Tsd      Frequency, period of the SDLC communication. */#define _Ser1SDCR0  0x80020060  /* Ser. port 1 SDLC Control Reg. 0 */#define _Ser1SDCR1  0x80020064  /* Ser. port 1 SDLC Control Reg. 1 */#define _Ser1SDCR2  0x80020068  /* Ser. port 1 SDLC Control Reg. 2 */#define _Ser1SDCR3  0x8002006C  /* Ser. port 1 SDLC Control Reg. 3 */#define _Ser1SDCR4  0x80020070  /* Ser. port 1 SDLC Control Reg. 4 */#define _Ser1SDDR   0x80020078  /* Ser. port 1 SDLC Data Reg.      */#define _Ser1SDSR0  0x80020080  /* Ser. port 1 SDLC Status Reg. 0  */#define _Ser1SDSR1  0x80020084  /* Ser. port 1 SDLC Status Reg. 1  */#if LANGUAGE == C#define Ser1SDCR0               /* Ser. port 1 SDLC Control Reg. 0 */ \                    (*((volatile Word *) io_p2v (_Ser1SDCR0)))#define Ser1SDCR1               /* Ser. port 1 SDLC Control Reg. 1 */ \                    (*((volatile Word *) io_p2v (_Ser1SDCR1)))#define Ser1SDCR2               /* Ser. port 1 SDLC Control Reg. 2 */ \                    (*((volatile Word *) io_p2v (_Ser1SDCR2)))#define Ser1SDCR3               /* Ser. port 1 SDLC Control Reg. 3 */ \                    (*((volatile Word *) io_p2v (_Ser1SDCR3)))#define Ser1SDCR4               /* Ser. port 1 SDLC Control Reg. 4 */ \                    (*((volatile Word *) io_p2v (_Ser1SDCR4)))#define Ser1SDDR                /* Ser. port 1 SDLC Data Reg.      */ \                    (*((volatile Word *) io_p2v (_Ser1SDDR)))#define Ser1SDSR0               /* Ser. port 1 SDLC Status Reg. 0  */ \                    (*((volatile Word *) io_p2v (_Ser1SDSR0)))#define Ser1SDSR1               /* Ser. port 1 SDLC Status Reg. 1  */ \                    (*((volatile Word *) io_p2v (_Ser1SDSR1)))#endif /* LANGUAGE == C */#define SDCR0_SUS   0x00000001  /* SDLC/UART Select                */#define SDCR0_SDLC  (SDCR0_SUS*0)   /*  SDLC mode (TXD1 & RXD1)        */#define SDCR0_UART  (SDCR0_SUS*1)   /*  UART mode (TXD1 & RXD1)        */#define SDCR0_SDF   0x00000002  /* Single/Double start Flag select */#define SDCR0_SglFlg    (SDCR0_SDF*0)   /*  Single start Flag              */#define SDCR0_DblFlg    (SDCR0_SDF*1)   /*  Double start Flag              */#define SDCR0_LBM   0x00000004  /* Look-Back Mode                  */#define SDCR0_BMS   0x00000008  /* Bit Modulation Select           */#define SDCR0_FM0   (SDCR0_BMS*0)   /*  Freq. Modulation zero (0)      */#define SDCR0_NRZ   (SDCR0_BMS*1)   /*  Non-Return to Zero modulation  */#define SDCR0_SCE   0x00000010  /* Sample Clock Enable (GPIO [16]) */#define SDCR0_SCD   0x00000020  /* Sample Clock Direction select   */                                /* (GPIO [16])                     */#define SDCR0_SClkIn    (SDCR0_SCD*0)   /*  Sample Clock Input             */#define SDCR0_SClkOut   (SDCR0_SCD*1)   /*  Sample Clock Output            */#define SDCR0_RCE   0x00000040  /* Receive Clock Edge select       */#define SDCR0_RcRsEdg   (SDCR0_RCE*0)   /*  Receive clock Rising-Edge      */#define SDCR0_RcFlEdg   (SDCR0_RCE*1)   /*  Receive clock Falling-Edge     */#define SDCR0_TCE   0x00000080  /* Transmit Clock Edge select      */#define SDCR0_TrRsEdg   (SDCR0_TCE*0)   /*  Transmit clock Rising-Edge     */#define SDCR0_TrFlEdg   (SDCR0_TCE*1)   /*  Transmit clock Falling-Edge    */#define SDCR1_AAF   0x00000001  /* Abort After Frame enable        */                                /* (GPIO [17])                     */#define SDCR1_TXE   0x00000002  /* Transmit Enable                 */#define SDCR1_RXE   0x00000004  /* Receive Enable                  */#define SDCR1_RIE   0x00000008  /* Receive FIFO 1/3-to-2/3-full or */                                /* more Interrupt Enable           */#define SDCR1_TIE   0x00000010  /* Transmit FIFO 1/2-full or less  */                                /* Interrupt Enable                */#define SDCR1_AME   0x00000020  /* Address Match Enable            */#define SDCR1_TUS   0x00000040  /* Transmit FIFO Under-run Select  */#define SDCR1_EFrmURn   (SDCR1_TUS*0)   /*  End Frame on Under-Run         */#define SDCR1_AbortURn  (SDCR1_TUS*1)   /*  Abort on Under-Run             */#define SDCR1_RAE   0x00000080  /* Receive Abort interrupt Enable  */#define SDCR2_AMV   Fld (8, 0)  /* Address Match Value             */#define SDCR3_BRD   Fld (4, 0)  /* Baud Rate Divisor/16 - 1 [11:8] */#define SDCR4_BRD   Fld (8, 0)  /* Baud Rate Divisor/16 - 1  [7:0] */                                /* fsd = fxtl/(16*(BRD[11:0] + 1)) */                                /* Tsd = 16*(BRD[11:0] + 1)*Txtl   */#define SDCR3_BdRtDiv(Div)          /*  Baud Rate Divisor [16..65536]  */ \                    (((Div) - 16)/16 >> FSize (SDCR4_BRD) << \                     FShft (SDCR3_BRD))#define SDCR4_BdRtDiv(Div)          /*  Baud Rate Divisor [16..65536]  */ \                    (((Div) - 16)/16 & FAlnMsk (SDCR4_BRD) << \                     FShft (SDCR4_BRD))                                /*  fsd = fxtl/(16*Floor (Div/16)) */                                /*  Tsd = 16*Floor (Div/16)*Txtl   */#define SDCR3_CeilBdRtDiv(Div)      /*  Ceil. of BdRtDiv [16..65536]   */ \                    (((Div) - 1)/16 >> FSize (SDCR4_BRD) << \                     FShft (SDCR3_BRD))#define SDCR4_CeilBdRtDiv(Div)      /*  Ceil. of BdRtDiv [16..65536]   */ \                    (((Div) - 1)/16 & FAlnMsk (SDCR4_BRD) << \                     FShft (SDCR4_BRD))                                /*  fsd = fxtl/(16*Ceil (Div/16))  */                                /*  Tsd = 16*Ceil (Div/16)*Txtl    */#define SDDR_DATA   Fld (8, 0)  /* receive/transmit DATA FIFOs     */#if 0                           /* Hidden receive FIFO bits        */#define SDDR_EOF    0x00000100  /*  receive End-Of-Frame (read)    */#define SDDR_CRE    0x00000200  /*  receive CRC Error (read)       */#define SDDR_ROR    0x00000400  /*  Receive FIFO Over-Run (read)   */#endif /* 0 */#define SDSR0_EIF   0x00000001  /* Error In FIFO (read)            */#define SDSR0_TUR   0x00000002  /* Transmit FIFO Under-Run         */#define SDSR0_RAB   0x00000004  /* Receive ABort                   */#define SDSR0_TFS   0x00000008  /* Transmit FIFO 1/2-full or less  */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -