|
RTEMS 6.1-rc6
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
43#include "xil_assert.h"
46#include <bsp/xil-compat.h>
53 #if !defined (ARMR5) && !defined (__aarch64__) && !defined (ARMA53_32)
63#define XTTCPS_CLK_CNTRL_OFFSET 0x00000000U
64#define XTTCPS_CNT_CNTRL_OFFSET 0x0000000CU
65#define XTTCPS_COUNT_VALUE_OFFSET 0x00000018U
66#define XTTCPS_INTERVAL_VAL_OFFSET 0x00000024U
67#define XTTCPS_MATCH_0_OFFSET 0x00000030U
68#define XTTCPS_MATCH_1_OFFSET 0x0000003CU
69#define XTTCPS_MATCH_2_OFFSET 0x00000048U
70#define XTTCPS_ISR_OFFSET 0x00000054U
71#define XTTCPS_IER_OFFSET 0x00000060U
78#define XTTCPS_CLK_CNTRL_PS_EN_MASK 0x00000001U
79#define XTTCPS_CLK_CNTRL_PS_VAL_MASK 0x0000001EU
80#define XTTCPS_CLK_CNTRL_PS_VAL_SHIFT 1U
81#define XTTCPS_CLK_CNTRL_PS_DISABLE 16U
82#define XTTCPS_CLK_CNTRL_SRC_MASK 0x00000020U
83#define XTTCPS_CLK_CNTRL_EXT_EDGE_MASK 0x00000040U
90#define XTTCPS_CNT_CNTRL_DIS_MASK 0x00000001U
91#define XTTCPS_CNT_CNTRL_INT_MASK 0x00000002U
92#define XTTCPS_CNT_CNTRL_DECR_MASK 0x00000004U
93#define XTTCPS_CNT_CNTRL_MATCH_MASK 0x00000008U
94#define XTTCPS_CNT_CNTRL_RST_MASK 0x00000010U
95#define XTTCPS_CNT_CNTRL_EN_WAVE_MASK 0x00000020U
96#define XTTCPS_CNT_CNTRL_POL_WAVE_MASK 0x00000040U
97#define XTTCPS_CNT_CNTRL_RESET_VALUE 0x00000021U
105#define XTTCPS_COUNT_VALUE_MASK 0x0000FFFFU
107#define XTTCPS_COUNT_VALUE_MASK 0xFFFFFFFFU
117#define XTTCPS_INTERVAL_VAL_MASK 0x0000FFFFU
119#define XTTCPS_INTERVAL_VAL_MASK 0xFFFFFFFFU
129#define XTTCPS_MATCH_MASK 0x0000FFFFU
131#define XTTCPS_MATCH_MASK 0xFFFFFFFFU
133#define XTTCPS_NUM_MATCH_REG 3U
141#define XTTCPS_IXR_INTERVAL_MASK 0x00000001U
142#define XTTCPS_IXR_MATCH_0_MASK 0x00000002U
143#define XTTCPS_IXR_MATCH_1_MASK 0x00000004U
144#define XTTCPS_IXR_MATCH_2_MASK 0x00000008U
145#define XTTCPS_IXR_CNT_OVR_MASK 0x00000010U
146#define XTTCPS_IXR_ALL_MASK 0x0000001FU
166#define XTtcPs_ReadReg(BaseAddress, RegOffset) \
167 (Xil_In32((BaseAddress) + (u32)(RegOffset)))
185#define XTtcPs_WriteReg(BaseAddress, RegOffset, Data) \
186 (Xil_Out32((BaseAddress) + (u32)(RegOffset), (u32)(Data)))
201#define XTtcPs_Match_N_Offset(MatchIndex) \
202 ((u32)XTTCPS_MATCH_0_OFFSET + ((u32)(12U) * (u32)(MatchIndex)))