📄 ep72xx.h
字号:
#define HwIrqUartModem 0x00004000#define HwIrqSpi 0x00008000//// Definitions of the bit fields in the HwLcdControl register.//#define HwLcdControlBufferSize 0x00001fff#define HwLcdControlLineLength 0x0007e000#define HwLcdControlPixelPrescale 0x01f80000#define HwLcdControlAcPrescale 0x3e000000#define HwLcdControlGreyEnable 0x40000000#define HwLcdControlGrey4Or2 0x80000000#define HwLcdControlBufferSizeShift 0#define HwLcdControlLineLengthShift 13#define HwLcdControlPixelPrescaleShift 19#define HwLcdControlAcPrescaleShift 25//// Definitions of the bit fields in the HwPumpControl register.//#define HwPumpControlVhBat 0x0000000f#define HwPumpControlVhDc 0x000000f0#define HwPumpControlLcd 0x00000f00//// Definitions of the bit fields in the HwUartData register.//#define HwUartDataFrameErr 0x00000100#define HwUartDataParityErr 0x00000200#define HwUartDataOverrunErr 0x00000400//// Definitions of the bit fields in the HwUartControl register.//#define HwUartControlRate 0x00000fff#define HwUartControlRate115200 0x00000001#define HwUartControlRate76800 0x00000002#define HwUartControlRate57600 0x00000003#define HwUartControlRate38400 0x00000005#define HwUartControlRate28800 0x00000007#define HwUartControlRate19200 0x0000000b#define HwUartControlRate14400 0x0000000f#define HwUartControlRate9600 0x00000017#define HwUartControlRate4800 0x0000002f#define HwUartControlRate2400 0x0000005f#define HwUartControlRate1200 0x000000bf#define HwUartControlRate600 0x0000017f#define HwUartControlRate300 0x000002ff#define HwUartControlRate150 0x000005ff#define HwUartControlRate110 0x0000082e#define HwUartControlBreak 0x00001000#define HwUartControlParityEnable 0x00002000#define HwUartControlParityEven 0x00004000#define HwUartControlTwoStopBits 0x00008000#define HwUartControlFifoEnable 0x00010000#define HwUartControlDataLength 0x00060000#define HwUartControlDataLength5 0x00000000#define HwUartControlDataLength6 0x00020000#define HwUartControlDataLength7 0x00040000#define HwUartControlDataLength8 0x00060000//// Definitions of the bit fields in the HwSpiData register.//#define HwSpiDataConfig 0x000000ff#define HwSpiDataFrameLength 0x00001f00#define HwSpiDataSampleClockFreerun 0x00002000#define HwSpiDataTxFrame 0x00004000//// Definitions of the bit fields in the HwControl2 register.//#define HwControl2CodecEnable 0x00000001#define HwControl2Kbd6 0x00000002#define HwControl2DRAM16 0x00000004#define HwControl2KeyboardWakeupEnable 0x00000008#define HwControl2PCMCIA1Enable 0x00000020#define HwControl2PCMCIA2Enable 0x00000040#define HwControl2Uart2Enable 0x00000100#define HwControl2OSTimerEnable 0x00001000#define HwControl2ClockSelect 0x00002000#define HwControl2BuzzerSelect 0x00004000//// Definitions of the bit fields in the HwStatus2 register.//#define HwStatus2ClockMode 0x00000040#define HwStatus2Uart2TxBusy 0x00000800#define HwStatus2Uart2RxFifoEmpty 0x00400000#define HwStatus2Uart2TxFifoFull 0x00800000//// Definitions of the bit fields in the HwIntStatus2 and HwIntMask2 registers.//#define HwIrqKeyboard 0x00000001#define HwIrqUart2Tx 0x00001000#define HwIrqUart2Rx 0x00002000//// Definitions of the bit fields in the HwDAIControl register.//#define HwDAIControlDAIEN 0x00010000#define HwDAIControlECS 0x00020000#define HwDAIControlLCTM 0x00080000#define HwDAIControlLCRM 0x00100000#define HwDAIControlRCTM 0x00200000#define HwDAIControlRCRM 0x00400000#define HwDAIControlLBM 0x00800000//// Definitions of the bit fields in the HwDAIData0 register.//#define HwDAIData0DataMask 0x0000ffff#define HwDAIData0DataShift 0//// Definitions of the bit fields in the HwDAIData1 register.//#define HwDAIData1DataMask 0x0000ffff#define HwDAIData1DataShift 0//// Definitions of the FIFO command for the HwDAIData2 register.//#define HwDAIData2RightEnable 0x000d8000#define HwDAIData2RightDisable 0x000d0000#define HwDAIData2LeftEnable 0x00118000#define HwDAIData2LeftDisable 0x00110000//// Definitions of the bit fields in the HwDAIStatus register.//#define HwDAIStatusRCTS 0x00000001#define HwDAIStatusRCRS 0x00000002#define HwDAIStatusLCTS 0x00000004#define HwDAIStatusLCRS 0x00000008#define HwDAIStatusRCTU 0x00000010#define HwDAIStatusRCRO 0x00000020#define HwDAIStatusLCTU 0x00000040#define HwDAIStatusLCRO 0x00000080#define HwDAIStatusRCNF 0x00000100#define HwDAIStatusRCNE 0x00000200#define HwDAIStatusLCNF 0x00000400#define HwDAIStatusLCNE 0x00000800#define HwDAIStatusFIFO 0x00001000//// Definitions of the bit fields in the HwControl3 register.//#define HwControl3ADCExtended 0x00000001#define HwControl3ClkCtlMask 0x00000006#define HwControl3ClkCtl18MHz 0x00000000#define HwControl3ClkCtl36MHz 0x00000002#define HwControl3ClkCtl49MHz 0x00000004#define HwControl3ClkCtl74MHz 0x00000006#define HwControl3ClkCtlDiv8 0x00000000#define HwControl3ClkCtlDiv4 0x00000002#define HwControl3ClkCtlDiv3 0x00000004#define HwControl3ClkCtlDiv2 0x00000006#define HwControl3DAISelect 0x00000008#define HwControl3ADCClkEdge 0x00000010#define HwControl3VersionMask 0x000000e0#define HwControl3FastWakeup 0x00000100#define HwControl3Required 0x00000200//// Definitions of the bit fields in the HwIntStatus3 and HwIntMask3 registers.//#define HwFiqDAI 0x00000001//// Definitions of the bit fields in the HwLEDFlash register.//#define HwLEDFlashRateMask 0x00000003#define HwLEDFlashRate1Sec 0x00000000#define HwLEDFlashRate2Sec 0x00000001#define HwLEDFlashRate3Sec 0x00000002#define HwLEDFlashRate4Sec 0x00000003#define HwLEDFlashRatioMask 0x0000003c#define HwLEDFlashRatio1_15 0x00000000#define HwLEDFlashRatio2_14 0x00000004#define HwLEDFlashRatio3_13 0x00000008#define HwLEDFlashRatio4_12 0x0000000c#define HwLEDFlashRatio5_11 0x00000010#define HwLEDFlashRatio6_10 0x00000014#define HwLEDFlashRatio7_9 0x00000018#define HwLEDFlashRatio8_8 0x0000001c#define HwLEDFlashRatio9_7 0x00000020#define HwLEDFlashRatio10_6 0x00000024#define HwLEDFlashRatio11_5 0x00000028#define HwLEDFlashRatio12_4 0x0000002c#define HwLEDFlashRatio13_3 0x00000030#define HwLEDFlashRatio14_2 0x00000034#define HwLEDFlashRatio15_1 0x00000038#define HwLEDFlashRatio16_0 0x0000003c#define HwLEDFlashEnable 0x00000040//****************************************************************************//// The LCD controller registers.////****************************************************************************//// Definitions of the bit fields in the LCD controller interface latch.//#define HwLCD_Data 0x000000ff#define HwLCD_nRES 0x00000100#define HwLCD_nCS 0x00000200#define HwLCD_RS 0x00000400#define HwLCD_nWR 0x00000800#define HwLCD_nRD 0x00001000#define HwLCD_BL_EN 0x00002000#define HwLCD_USB_nCS 0x00008000
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -