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

📄 regs.h

📁 COG-VP12864液晶屏驱动代码及对应RTC实例
💻 H
字号:
/*
********************************************************
// Copyright (c)2004 Ark Pioneer Microelectronics Ltd.,
// All Rights Reserved
//
// Filename:regs.h
// Version:1.0
// Created:2004.01.12   By: Philip
*********************************************************
*/

#ifndef _REGS_H_
#define _REGS_H_

#define USB_RAM_OFFSET      (0xBFF28000)
#define USB_BUFFER_OFFSET   (0xBFF28800)
#define USB_REG_OFFSET 		(0xBFF28980)

/*----------------------------------------------------------------
    USB RAM (512 x 32) (32-bits width)
----------------------------------------------------------------*/
#define RAM512     (USB_RAM_OFFSET)

/*----------------------------------------------------------------
    USB BUFFER (6 x 16 x 32) (32-bits width)
----------------------------------------------------------------*/
#define IN0BUF  (USB_BUFFER_OFFSET + 0x000)
#define OUT0BUF (USB_BUFFER_OFFSET + 0x040)
#define IN1BUF  (USB_BUFFER_OFFSET + 0x080)
#define OUT1BUF (USB_BUFFER_OFFSET + 0x0c0)
#define IN2BUF  (USB_BUFFER_OFFSET + 0x100)
#define OUT2BUF (USB_BUFFER_OFFSET + 0x140)

/*----------------------------------------------------------------
    USB Registers (32-bits width)
----------------------------------------------------------------*/
#define IVEC		(USB_REG_OFFSET + 0x000)
#define INIRQ   	(USB_REG_OFFSET + 0x004)
#define OUTIRQ  	(USB_REG_OFFSET + 0x008)
#define USBIRQ  	(USB_REG_OFFSET + 0x00c)

#define INIEN    	(USB_REG_OFFSET + 0x010)
#define OUTIEN     	(USB_REG_OFFSET + 0x014)
#define USBIEN    	(USB_REG_OFFSET + 0x018)
#define USBBAV    	(USB_REG_OFFSET + 0x01c)

#define USBINTCLR   (USB_REG_OFFSET + 0x020)
#define IBNIRQ     	(USB_REG_OFFSET + 0x024)
#define IBNIEN    	(USB_REG_OFFSET + 0x028)
#define EP0CS    	(USB_REG_OFFSET + 0x02c)

#define IN0BC     	(USB_REG_OFFSET + 0x030)
#define IN1CS    	(USB_REG_OFFSET + 0x034)
#define IN1BC    	(USB_REG_OFFSET + 0x038)
#define IN2CS    	(USB_REG_OFFSET + 0x03c)

#define IN2BC 		(USB_REG_OFFSET + 0x040)
#define OUT0BC    	(USB_REG_OFFSET + 0x044)
#define OUT1CS    	(USB_REG_OFFSET + 0x048)
#define OUT1BC     	(USB_REG_OFFSET + 0x04c)

#define OUT2CS     	(USB_REG_OFFSET + 0x050)
#define OUT2BC     	(USB_REG_OFFSET + 0x054)
#define TOGCTL     	(USB_REG_OFFSET + 0x058)
#define FNADDR     	(USB_REG_OFFSET + 0x05c)

#define SETUPDAT0   (USB_REG_OFFSET + 0x060)
#define SETUPDAT1   (USB_REG_OFFSET + 0x064)
#define SETUPDAT2   (USB_REG_OFFSET + 0x068)
#define SETUPDAT3   (USB_REG_OFFSET + 0x06c)
                                               
#define SETUPDAT4   (USB_REG_OFFSET + 0x070)
#define SETUPDAT5   (USB_REG_OFFSET + 0x074)
#define SETUPDAT6   (USB_REG_OFFSET + 0x078)
#define SETUPDAT7   (USB_REG_OFFSET + 0x07c)

// tclk domain                                               
#define DMASRCH 	(USB_REG_OFFSET + 0x080)
#define DMASRCL 	(USB_REG_OFFSET + 0x084)
#define DMADESTH 	(USB_REG_OFFSET + 0x088)
#define DMADESTL 	(USB_REG_OFFSET + 0x08c)

#define DMALEN 		(USB_REG_OFFSET + 0x090)
#define DMAGO 		(USB_REG_OFFSET + 0x094)
#define DMAIEN 		(USB_REG_OFFSET + 0x098)
#define DMAIRQ 		(USB_REG_OFFSET + 0x09c)

//usb uses buffer need write "0", while software control needs write "1"
#define CLKSWITCH	(USB_REG_OFFSET + 0x0a0)

#endif

⌨️ 快捷键说明

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