upsd_cfg.h

来自「upsd 3200序列的usb驱动」· C头文件 代码 · 共 32 行

H
32
字号
/*---------------------------------------------------------------*/
/*	 UPSD_CFG.H												     */
/*   This module contains all the defines for uPSD Configuration */ 
/* --------------------------------------------------------------*/

/*---------------------------------------------------------------------------
Copyright (c) 2002 ST Microelectronics
This example demo code is provided as is and has no warranty,
implied or otherwise.  You are free to use/modify any of the provided
code at your own risk in your applications with the expressed limitation
of liability (see below) so long as your product using the code contains
at least one uPSD products (device).

LIMITATION OF LIABILITY:   NEITHER STMicroelectronics NOR ITS VENDORS OR 
AGENTS SHALL BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF USE, LOSS OF DATA,
INTERRUPTION OF BUSINESS, NOR FOR INDIRECT, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES OF ANY KIND WHETHER UNDER THIS AGREEMENT OR
OTHERWISE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
--------------------------------------------------------------------------*/

//System Fclock
//#define OSC             24000000L   // Oscillator Frequency Hz of uPSD
#define OSC             36000000L   // Oscillator Frequency Hz of uPSD

//System timer0
#define TIMER0_PERIOD	1000		// Timer0 interval in Hz, 1ms

//USB IP
#define USB_clk_in		6000		// Khz,USB clock input, DO NOT CHANGE


⌨️ 快捷键说明

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