lpc_usb_cfg.h

来自「NXP LPC系列AMR7的开发程序源码(LCD」· C头文件 代码 · 共 56 行

H
56
字号
/*************************************************************************
 *
 *    Used with ICCARM and AARM.
 *
 *    (c) Copyright IAR Systems 2005
 *
 *    File name   : lpc_usb_cfg.h
 *    Description : Define main module
 *
 *    History :
 *    1. Date        : August 4, 2005
 *       Author      : Stanimir Bonev
 *       Description : Create
 *    1. Date        : November 18, 2005
 *       Author      : Stanimir Bonev
 *       Description : Modify
 *        Add DMA support
 *
 *    $Revision: 14946 $
**************************************************************************/

#include "includes.h"

#ifndef __LPC_USB_CFG_H
#define __LPC_USB_CFG_H

/* USB Events */
#define USB_SOF_EVENT             0
#define USB_ERROR_EVENT           1
#define USB_HIGH_PRIORITY_EVENT   0

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

/* USB Pll settings */
/* Fusb = Fosc*M */
#define USB_PLL_M                 4
#define USB_PLL_P                 2

/* Endpoint definitions */
#define Ep0MaxSize                64

#define ReportEp                  UsbEp1In
#define ReportEpMaxSize           16

#define CommOutEp                 UsbEp2Out
#define CommOutEpMaxSize          64

#define CommInEp                  UsbEp2In
#define CommInEpMaxSize           64


#endif //__LPC_USB_CFG_H

⌨️ 快捷键说明

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