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

📄 acprd_timer.h

📁 source code for a sample alarm control panel system using Freescale MC9S12DP256 . The project was im
💻 H
字号:
//=============================================================================
// File: ACPRD_TIMER.H - V1.00
// Rem.: The ACPRD Project Page on the Web -> http://hc12web.de/acprd
//=============================================================================

#ifndef __ACPRD_TIMER_H
#define __ACPRD_TIMER_H

//-- Includes -----------------------------------------------------------------

#include "s12_crg.h"	// contains S12_ECLK value

//-- Definitions --------------------------------------------------------------

#define TIMER_INTS_PER_SEC	100			// every 10ms
#define TIMER_MDC_PRE		4
#define TIMER_MDC_COUNT 	(S12_ECLK / (TIMER_MDC_PRE * TIMER_INTS_PER_SEC))

//-- Extern Declarations ------------------------------------------------------

//-- Function Prototypes ------------------------------------------------------

void initTimer(void (*ufunc)(void));
void isrMDCU(void);

#endif //__ACPRD_TIMER_H ======================================================

⌨️ 快捷键说明

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