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

📄 usb_processor.h

📁 学习资料S12源程序UF32 USB MCU方测试程序 CW环境
💻 H
字号:
//#include "UF32reg.h"
#ifndef _USB_PROCESSOR
#define _USB_PROCESSOR
	  
#include "MC9S12UF32.h"
#include	"usb_includes.h"	  
#include	"usb_descriptor.h"
#include 	"SCI.h"
#include  "data.h"

#define	USB2_BASE	  	0x0300		                      // USB 2.0寄存器模块基地址
#define	IQUE_BASE	  	0x0200		                      // IQUE寄存器模块基地址
#define UEPCSELR_l *(volatile UINT8*)(USB2_BASE+0x0F)	/*  USB Module Endpoint Configuration selection Register */
#define UEPLB0	*(volatile UINT8*)(USB2_BASE+0x80)		/*  USB Module Endpoint local Data Buffer 0 */
#define UEPCSELR_h *(volatile UINT8*)(USB2_BASE+0x0E)	/*  USB Module Endpoint Configuration selection Register */
#define UEPCSELR_l *(volatile UINT8*)(USB2_BASE+0x0F)	/*  USB Module Endpoint Configuration selection Register */
#define UEPLB0	*(volatile UINT8*)(USB2_BASE+0x80)		/*  USB Module Endpoint local Data Buffer 0 */
#define UEPLB1	*(volatile UINT8*)(USB2_BASE+0xc0)		/*  USB Module Endpoint local Data Buffer 1 */
#define QC1DR_H	*(volatile UINT8*)(IQUE_BASE+0x02)
#define QC2DR_H	*(volatile UINT8*)(IQUE_BASE+0x0C)
#define QC34DTR	*(volatile UINT8*)(IQUE_BASE+0x31)		/*  QC double buffer Test Register */
#define RXDA	6	                                      // Receive acknowledge

#endif

⌨️ 快捷键说明

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