📄 mcf548x_slt.h
字号:
/*
* File: mcf548x_slt.h
* Purpose: Register and bit definitions for the MCF548X
*
* Notes:
*
*/
#ifndef __MCF548X_SLT_H__
#define __MCF548X_SLT_H__
/*********************************************************************
*
* Slice Timers (SLT)
*
*********************************************************************/
/* Register read/write macros */
#define MCF_SLT_SLTCNT0 (*(vuint32*)(void*)(&__MBAR[0x000900]))
#define MCF_SLT_SCR0 (*(vuint32*)(void*)(&__MBAR[0x000904]))
#define MCF_SLT_SCNT0 (*(vuint32*)(void*)(&__MBAR[0x000908]))
#define MCF_SLT_SSR0 (*(vuint32*)(void*)(&__MBAR[0x00090C]))
#define MCF_SLT_SLTCNT1 (*(vuint32*)(void*)(&__MBAR[0x000914]))
#define MCF_SLT_SCR1 (*(vuint32*)(void*)(&__MBAR[0x000918]))
#define MCF_SLT_SCNT1 (*(vuint32*)(void*)(&__MBAR[0x00091C]))
#define MCF_SLT_SSR1 (*(vuint32*)(void*)(&__MBAR[0x000920]))
#define MCF_SLT_SLTCNT(x) (*(vuint32*)(void*)(&__MBAR[0x000900+((x)*0x014)]))
#define MCF_SLT_SCR(x) (*(vuint32*)(void*)(&__MBAR[0x000904+((x)*0x014)]))
#define MCF_SLT_SCNT(x) (*(vuint32*)(void*)(&__MBAR[0x000908+((x)*0x014)]))
#define MCF_SLT_SSR(x) (*(vuint32*)(void*)(&__MBAR[0x00090C+((x)*0x014)]))
/* Bit definitions and macros for MCF_SLT_SCR */
#define MCF_SLT_SCR_TEN (0x01000000)
#define MCF_SLT_SCR_IEN (0x02000000)
#define MCF_SLT_SCR_RUN (0x04000000)
/* Bit definitions and macros for MCF_SLT_SSR */
#define MCF_SLT_SSR_ST (0x01000000)
#define MCF_SLT_SSR_BE (0x02000000)
/********************************************************************/
#endif /* __MCF548X_SLT_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -