timer.h

来自「WinCE5.0BSP for Renesas SH7770」· C头文件 代码 · 共 33 行

H
33
字号
//
//  Copyright(C) Renesas Technology Corp. 2000-2003. All rights reserved.
//
//  NK Kernel for ITS-DS7 Ver.1.0.0
//
//  FILE      : timer.h
//  CREATED   : 2002.04.25
//  MODIFIED  : 2003.06.20
//  AUTHOR    : Renesas Technology Corp.
//  HARDWARE  : RENESAS ITS-DS7
//  HISTORY   : 
//              2003.06.20
//              - Created release code.
//                (based on RENESAS ITS-DS4 Source Kit Ver.1.2.0 for WCE4.2)
//
// Copyright (c) 2000-2000 Microsoft Corporation.  All rights reserved.
// Note: this must match RESCHED_PERIOD in timer0.src

#define RESCHED_PERIOD 1		// Reschedule period in ms

//####### P=50MHz #########################################
#define OEM_CLOCK_FREQ		50000000/16

// Timer count corresponding to 1 ms
#define OEM_COUNT_1MS (OEM_CLOCK_FREQ / 1000)

// Timer count corresponding to RESCHED PERIOD (in ms)
#define RESCHED_INCREMENT ((RESCHED_PERIOD * OEM_CLOCK_FREQ) / 1000)

// Frequency of the TMU0 clock, which is based on the peripheral module
// clock, divided by 16 (Set up in InitClock()).
#define TMU0_CLOCK_FREQ  (OEM_CLOCK_FREQ/16)

⌨️ 快捷键说明

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