SAME54P20A Test Project
tcc4.h
Go to the documentation of this file.
1 
30 #ifndef _SAME54_TCC4_INSTANCE_
31 #define _SAME54_TCC4_INSTANCE_
32 
33 /* ========== Register definition for TCC4 peripheral ========== */
34 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
35 #define REG_TCC4_CTRLA (0x43001000)
36 #define REG_TCC4_CTRLBCLR (0x43001004)
37 #define REG_TCC4_CTRLBSET (0x43001005)
38 #define REG_TCC4_SYNCBUSY (0x43001008)
39 #define REG_TCC4_FCTRLA (0x4300100C)
40 #define REG_TCC4_FCTRLB (0x43001010)
41 #define REG_TCC4_DRVCTRL (0x43001018)
42 #define REG_TCC4_DBGCTRL (0x4300101E)
43 #define REG_TCC4_EVCTRL (0x43001020)
44 #define REG_TCC4_INTENCLR (0x43001024)
45 #define REG_TCC4_INTENSET (0x43001028)
46 #define REG_TCC4_INTFLAG (0x4300102C)
47 #define REG_TCC4_STATUS (0x43001030)
48 #define REG_TCC4_COUNT (0x43001034)
49 #define REG_TCC4_WAVE (0x4300103C)
50 #define REG_TCC4_PER (0x43001040)
51 #define REG_TCC4_CC0 (0x43001044)
52 #define REG_TCC4_CC1 (0x43001048)
53 #define REG_TCC4_PERBUF (0x4300106C)
54 #define REG_TCC4_CCBUF0 (0x43001070)
55 #define REG_TCC4_CCBUF1 (0x43001074)
56 #else
57 #define REG_TCC4_CTRLA (*(RwReg *)0x43001000UL)
58 #define REG_TCC4_CTRLBCLR (*(RwReg8 *)0x43001004UL)
59 #define REG_TCC4_CTRLBSET (*(RwReg8 *)0x43001005UL)
60 #define REG_TCC4_SYNCBUSY (*(RoReg *)0x43001008UL)
61 #define REG_TCC4_FCTRLA (*(RwReg *)0x4300100CUL)
62 #define REG_TCC4_FCTRLB (*(RwReg *)0x43001010UL)
63 #define REG_TCC4_DRVCTRL (*(RwReg *)0x43001018UL)
64 #define REG_TCC4_DBGCTRL (*(RwReg8 *)0x4300101EUL)
65 #define REG_TCC4_EVCTRL (*(RwReg *)0x43001020UL)
66 #define REG_TCC4_INTENCLR (*(RwReg *)0x43001024UL)
67 #define REG_TCC4_INTENSET (*(RwReg *)0x43001028UL)
68 #define REG_TCC4_INTFLAG (*(RwReg *)0x4300102CUL)
69 #define REG_TCC4_STATUS (*(RwReg *)0x43001030UL)
70 #define REG_TCC4_COUNT (*(RwReg *)0x43001034UL)
71 #define REG_TCC4_WAVE (*(RwReg *)0x4300103CUL)
72 #define REG_TCC4_PER (*(RwReg *)0x43001040UL)
73 #define REG_TCC4_CC0 (*(RwReg *)0x43001044UL)
74 #define REG_TCC4_CC1 (*(RwReg *)0x43001048UL)
75 #define REG_TCC4_PERBUF (*(RwReg *)0x4300106CUL)
76 #define REG_TCC4_CCBUF0 (*(RwReg *)0x43001070UL)
77 #define REG_TCC4_CCBUF1 (*(RwReg *)0x43001074UL)
78 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
79 
80 /* ========== Instance parameters for TCC4 peripheral ========== */
81 #define TCC4_CC_NUM 2 // Number of Compare/Capture units
82 #define TCC4_DITHERING 0 // Dithering feature implemented
83 #define TCC4_DMAC_ID_MC_0 42
84 #define TCC4_DMAC_ID_MC_1 43
85 #define TCC4_DMAC_ID_MC_LSB 42
86 #define TCC4_DMAC_ID_MC_MSB 43
87 #define TCC4_DMAC_ID_MC_SIZE 2
88 #define TCC4_DMAC_ID_OVF 41 // DMA overflow/underflow/retrigger trigger
89 #define TCC4_DTI 0 // Dead-Time-Insertion feature implemented
90 #define TCC4_EXT 0 // Coding of implemented extended features
91 #define TCC4_GCLK_ID 38 // Index of Generic Clock
92 #define TCC4_MASTER_SLAVE_MODE 0 // TCC type 0 : NA, 1 : Master, 2 : Slave
93 #define TCC4_OTMX 0 // Output Matrix feature implemented
94 #define TCC4_OW_NUM 2 // Number of Output Waveforms
95 #define TCC4_PG 0 // Pattern Generation feature implemented
96 #define TCC4_SIZE 16
97 #define TCC4_SWAP 0 // DTI outputs swap feature implemented
98 
99 #endif /* _SAME54_TCC4_INSTANCE_ */