📄 upsd_cfg.lst
字号:
C51 COMPILER V7.00 Beta 6 UPSD_CFG 02/19/2003 15:59:28 PAGE 1
C51 COMPILER V7.00 Beta 6, COMPILATION OF MODULE UPSD_CFG
OBJECT MODULE PLACED IN upsd_cfg.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE upsd_cfg.c LARGE BROWSE DEBUG OBJECTEXTEND
stmt level source
1 /*---------------------------------------------------------------*/
2 /* UPSD_CFG.C */
3 /* This module contains all the defines for uPSD Configuration */
4 /* --------------------------------------------------------------*/
5
6 /*---------------------------------------------------------------------------
7 Copyright (c) 2002 ST Microelectronics
8 This example demo code is provided as is and has no warranty,
9 implied or otherwise. You are free to use/modify any of the provided
10 code at your own risk in your applications with the expressed limitation
11 of liability (see below) so long as your product using the code contains
12 at least one uPSD products (device).
13
14 LIMITATION OF LIABILITY: NEITHER STMicroelectronics NOR ITS VENDORS OR
15 AGENTS SHALL BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF USE, LOSS OF DATA,
16 INTERRUPTION OF BUSINESS, NOR FOR INDIRECT, SPECIAL, INCIDENTAL OR
17 CONSEQUENTIAL DAMAGES OF ANY KIND WHETHER UNDER THIS AGREEMENT OR
18 OTHERWISE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
19 --------------------------------------------------------------------------*/
20
21 //-- Includes ----------------------------------------------------------------
22
23 #include "general.h"
24 #include "upsd3200.h"
25 #include "upsd_hardware.h" // extended registers in uPSD
26 #include "upsd_cfg.h" // All defines for uPSD Configuration
27
28 /*---------------------------------------------------------------*/
29 /* This module contains all the constants */
30 /* for uPSD libraryConfiguration */
31 /* --------------------------------------------------------------*/
32
33 //-- Constants values for ipLIBs ----------------------------------------------
34
35 //USB
36 const uchar code cUSCL_value = (uchar)((((OSC*10L/2L)/(USB_clk_in*1000L))+5)/10) - 1;
37
38 /*---------------------------------------------------------------*/
39 /* This module contains all extened I/O devices */
40 /* for uPSD including PSD module regs in XDATA */
41 /* --------------------------------------------------------------*/
42
43 //-- Assign memory location for PSD module regs in XDATA -----------------------
44
45 PSD_REGS UPSD_xreg _at_ PSD_REG_ADDR;
46
47 //-- Assign memory location for user I/O devices -------------------------------
48
49 #include "lcd_io.h"
50 DISPLAY LCD_reg _at_ LCD_BASE_ADDR;
51
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = ---- ----
C51 COMPILER V7.00 Beta 6 UPSD_CFG 02/19/2003 15:59:28 PAGE 2
CONSTANT SIZE = 1 ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -