freescale

来自「Freescale 系列单片机常用模块与综合系统设计」· 代码 · 共 56 行

TXT
56
字号
#ifndef _TAXI_TABLES_H__
#define _TAXI_TABLES_H__

//====================================================
//====================   TABLES   ====================
//====================================================

extern const Byte TRANSLATE_NUMBER[];

extern const Byte TRANSLATE_LETTER[];

//====================================================
//=============  REPROGRAMMABLE TABLES  ==============
//====================================================

extern volatile const Byte FARE_MESSAGE_TABLE[];

extern volatile const Word INI_CH_TABLE[];

extern volatile const Word FARE_TABLE[];

extern volatile const Word EXTRA_TABLE[];

extern volatile const Byte INFO_TABLE[];                  

//====================================================
//================  FLASH VARIABLES  =================
//====================================================

/* 
 * Accumulators in flash.
 * These accumulators are transmitted to the programmer at the 
 * beginning of the programming process and are erased. If you
 * wish to keep these in the taximeter, the programmer should
 * send them back so they are re-programmed. All accumulators
 * are incremented in the state PAY, but the TOTAL_DISTANCE_
 * TRAVELED is also incremented in the state OFF. 
 * To be modified, these accumulators are read into RAM 
 * <BackupAccumulator()> starting at address 0x008C. There
 * are global variables defined in that space. Those global
 * variables are incremented and the they are re-programmed
 * into flash.
 */

extern ulong TOTAL_DISTANCE_TRAVELED   @0xEC81; 
extern ulong TOTAL_DISTANCE_IN_SERVICE @0xEC85; 
extern ulong TOTAL_NUMBER_TRAVELS      @0xEC89; 
extern ulong TOTAL_NUMBER_INCREMENTS   @0xEC8D; 
extern ulong TOTAL_INCOME              @0xEC91; 

extern volatile const Byte FARES_NUMBER  @ 0xEC9E; // Number of active fares
extern volatile const Byte EXTRAS_NUMBER @ 0xEC9F; // Number of active extras

extern volatile const Byte FLASH_PROGRAM;          // Key to verify flash programmation

#endif // _TAXI_TABLES_H__

⌨️ 快捷键说明

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