📄 mcf537x_pit.h
字号:
/* * File: mcf537x_pit.h * Purpose: Register and bit definitions */#ifndef __MCF537X_PIT_H__#define __MCF537X_PIT_H__/*********************************************************************** Programmable Interrupt Timer Modules (PIT)**********************************************************************//* Register read/write macros */#define MCF_PIT0_PCSR (*(vuint16*)(0xFC080000))#define MCF_PIT0_PMR (*(vuint16*)(0xFC080002))#define MCF_PIT0_PCNTR (*(vuint16*)(0xFC080004))#define MCF_PIT1_PCSR (*(vuint16*)(0xFC084000))#define MCF_PIT1_PMR (*(vuint16*)(0xFC084002))#define MCF_PIT1_PCNTR (*(vuint16*)(0xFC084004))#define MCF_PIT2_PCSR (*(vuint16*)(0xFC088000))#define MCF_PIT2_PMR (*(vuint16*)(0xFC088002))#define MCF_PIT2_PCNTR (*(vuint16*)(0xFC088004))#define MCF_PIT3_PCSR (*(vuint16*)(0xFC08C000))#define MCF_PIT3_PMR (*(vuint16*)(0xFC08C002))#define MCF_PIT3_PCNTR (*(vuint16*)(0xFC08C004))#define MCF_PIT_PCSR(x) (*(vuint16*)(0xFC080000+((x)*0x4000)))#define MCF_PIT_PMR(x) (*(vuint16*)(0xFC080002+((x)*0x4000)))#define MCF_PIT_PCNTR(x) (*(vuint16*)(0xFC080004+((x)*0x4000)))/* Bit definitions and macros for MCF_PIT_PCSR */#define MCF_PIT_PCSR_EN (0x0001)#define MCF_PIT_PCSR_RLD (0x0002)#define MCF_PIT_PCSR_PIF (0x0004)#define MCF_PIT_PCSR_PIE (0x0008)#define MCF_PIT_PCSR_OVW (0x0010)#define MCF_PIT_PCSR_HALTED (0x0020)#define MCF_PIT_PCSR_DOZE (0x0040)#define MCF_PIT_PCSR_PRE(x) (((x)&0x000F)<<8)/* Bit definitions and macros for MCF_PIT_PMR */#define MCF_PIT_PMR_PM(x) (((x)&0xFFFF)<<0)/* Bit definitions and macros for MCF_PIT_PCNTR */#define MCF_PIT_PCNTR_PC(x) (((x)&0xFFFF)<<0)/********************************************************************/#endif /* __MCF537X_PIT_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -