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

📄 tpm.h

📁 用于WSN的PDA搜救器
💻 H
字号:
/* Description : head for symbolTime module functions.
 *
 * $Author: 王琢玉
 * $Date: 2007/02/23 
 * $Name:  SCI.h
 */

#ifndef   TPM_H
#define   TPM_H

#ifdef   TPM_GLOBALS
    #define   TPM_EXT
#else    
    #define   TPM_EXT   extern
#endif

#include "pub_def.h"

/********************************************
Defines
********************************************/
#ifdef USE_EXT_CLK 
    #define BUS_CLK         20000000
    #define TIME2_DIVIDER   320
#else
    #define BUS_CLK         2000000
    #define TIME2_DIVIDER   32
#endif

#define ONE_SECOND        62500
#define ONE_MILLISECOND   (ONE_SECOND >> 10) 



/********************************************
Typedefs
********************************************/
typedef union
{
    UINT32 u32Val;
    struct
    {
        UINT8  b3;
        UINT8  b2;
        UINT8  b1;
        UINT8  b0;
    }Byte;
    UINT8 v[4];
}TIME;

/********************************************
 Globals
********************************************/
TPM_EXT    UINT16    time2Ext; //time2Ext 是计时器的高16位

⌨️ 快捷键说明

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