lpc_usb_cfg.h

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

H
52
字号
/*************************************************************************
 *
 *    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   								1
#define DMA_DD_MAX_NUMB						4
#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 BulkInEp          				UsbEp2In
#define BulkOutEp         				UsbEp2Out
#define BulkInEpMaxSize   				64
#define BulkOutEpMaxSize  				64

/* Othe defenitions */

#endif //__LPC_USB_CFG_H

⌨️ 快捷键说明

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