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

📄 lpc24xx_usb_cfg.h

📁 NXP LPC系列AMR7的开发程序源码(LCD
💻 H
字号:
/*************************************************************************
 *
 *    Used with ICCARM and AARM.
 *
 *    (c) Copyright IAR Systems 2007
 *
 *    File name   : lpc24xx_usb_cfg.h
 *    Description : Define main module
 *
 *    History :
 *    1. Date        : January 7, 2007
 *       Author      : Stanimir Bonev
 *       Description : Create
 *
 *    $Revision: 18137 $
**************************************************************************/

#include "includes.h"

#ifndef __LPC_USB_CFG_H
#define __LPC_USB_CFG_H

#define USB1_ERRATA         // USB_NEED_CLK is always asserted
#define USB2_ERRATA         // U1CONNECT/U2CONNECT signal is not functional
#define USB3_ERRATA         // USB VBUS signal is not functional

/* USB port select 1/2*/
#define USB_PORT_SEL              1

/* USB clk divider */
#define USB_CLK_DIV               6

/* USB Events */
#define USB_HIGH_PRIORITY_EVENT   0
#define USB_HIGH_PRIORITY_EP      0

#define USB_SOF_EVENT             0
#define USB_FAST_EP               1
#define USB_ERROR_EVENT           1
#define USB_REMOTE_WAKEUP         1

#if (USB_HIGH_PRIORITY_EVENT > 0) && (USB_HIGH_PRIORITY_EP > 0) && (USB_FAST_EP > 0)
#error "You can set only USB_FAST_EP or USB_HIGH_PRIORITY_EP"
#endif

/* DMA transfer */
#define USB_DMA   								0
#define DMA_DD_MAX_NUMB						0
#define DMA_INT_ENABLE_MASK       0

/* Endpoint definitions */
#define Ep0MaxSize        				8
#define ReportEp          				UsbEp1In
#define ReportEpMaxSize   				3

/* Other definitions */

#endif //__LPC_USB_CFG_H

⌨️ 快捷键说明

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