usb_processor.h

来自「学习资料S12源程序UF32 USB MCU方测试程序 CW环境」· C头文件 代码 · 共 24 行

H
24
字号
//#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 + =
减小字号Ctrl + -
显示快捷键?