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

📄 variable.h

📁 耐心说明您提供的文件包含的内容和具体功能(至少要20
💻 H
字号:
/**************** (c) 1998  SGS-Thomson Microelectronics **********************

PROJECT  : ST72101
COMPILER : ST7 HICROSS C (HIWARE)

MODULE  :  variable.h
VERSION :  V 2.0

CREATION DATE :  03/07/98

AUTHOR : PPG 8-bit Micro Application Team 
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

DESCRIPTION : Application Global Variables Definition

              
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

MODIFICATIONS :

******************************************************************************/


#ifndef VARIABLE_H
#define VARIABLE_H

    extern unsigned char data1;   // Those registers will start from add 0x100 as
    extern unsigned char data2;   // no special pragma was ever declared before.
    extern unsigned char data3;   // This comes from the .prm file where the default segment 
                                  // is located at address 0x100.
#define PWM_lgh 0x2E              // All defined values must be placed in the .h file rather
#define PWM_lgl 0xD0              // than the .c files.
#define PWM_pdh 0x34
#define PWM_pdl 0xE2 

#pragma DATA_SEG SHORT _ZEROPAGE  // According to the prm file, the _ZEROPAGE starts at
                                  // address 0x080 so the next three registers will be located
                                  // at address 80h, 81h and 83h.
    extern unsigned char ramloc1;
    extern unsigned char ramloc2;
    extern unsigned char ramloc3;

#pragma CONST_SEG ROM             // Once again, the prm file indicates the start address of 
                                  // the ROM segment.
                                  // The table defined below, will be a table of 10 constants.
    extern const unsigned char table[10];
    
#pragma DATA_SEG DEFAULT

#endif


/*** (c) 1998  SGS-Thomson Microelectronics ****************** END OF FILE ***/    

⌨️ 快捷键说明

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