38 unsigned mosel = ccu6->MOSEL.U;
40 uint16 data = 2 * selectedTrigger;
42 if (ccu6 == &MODULE_CCU61)
47 mosel = ccu6->MOSEL.U;
48 __ldmst_c(&mosel, (0x7U << shift), (data << shift));
49 ccu6->MOSEL.U = mosel;
63 ccu6->MODCTR.U = ccu6->MODCTR.U & ~(mask);
72 shift = channelOut + 8;
74 ccu6->MODCTR.U = ccu6->MODCTR.U & ~(mask);
78 ccu6->MODCTR.B.ECT13O =
FALSE;
94 ccu6->MODCTR.U = ccu6->MODCTR.U | (mask);
103 shift = channelOut + 8;
105 ccu6->MODCTR.U = ccu6->MODCTR.U | (mask);
109 ccu6->MODCTR.B.ECT13O =
TRUE;
119 ccu6->CLC.U = 0x00000000;
136 value = ccu6->CC60R.U;
141 value = ccu6->CC61R.U;
146 value = ccu6->CC62R.U;
163 value = ccu6->CC60SR.U;
168 value = ccu6->CC61SR.U;
173 value = ccu6->CC62SR.U;
184 sint32 result = -1, index;
202 volatile Ifx_SRC_SRCR *srcr;
203 srcr = &(MODULE_SRC.CCU6.CCU6[moduleIdx].SR0);
204 return &(srcr[serviceRequest]);
214 result = ccu6->T12.U;
218 result = ccu6->T13.U;
230 ccu6->KRST0.B.RST = 1;
231 ccu6->KRST1.B.RST = 1;
234 while (0 == ccu6->KRST0.B.RSTSTAT)
239 ccu6->KRSTCLR.B.CLR = 1;
248 ccu6->INP.B.INPCC60 = serviceRequest;
252 ccu6->INP.B.INPCC61 = serviceRequest;
256 ccu6->INP.B.INPCC62 = serviceRequest;
260 ccu6->INP.B.INPCHE = serviceRequest;
264 ccu6->INP.B.INPERR = serviceRequest;
268 ccu6->INP.B.INPT12 = serviceRequest;
272 ccu6->INP.B.INPT13 = serviceRequest;
285 uint32 shift = channelOut;
286 uint32 mask = (1 << shift);
287 ccu6->PSLR.U = (ccu6->PSLR.U & ~mask) | ((
uint32)state << shift);
291 ccu6->PSLR.B.PSL63 = state;
298 uint32 mask = (0x0101U << channel);
304 ccu6->CMPMODIF.U = (ccu6->CMPMODIF.U & ~mask) | (mode << channel);
310 ccu6->CMPMODIF.U = (ccu6->CMPMODIF.U & ~mask) | (mode << channel);
316 ccu6->CMPMODIF.U = (ccu6->CMPMODIF.U & ~mask) | (mode << channel);
326 ccu6->CC60SR.B.CCS = value;
329 ccu6->CC61SR.B.CCS = value;
332 ccu6->CC62SR.B.CCS = value;
341 float32 freqT1x = 0, periodT1x;
345 for (prescaler = 0; prescaler < 16; prescaler++)
347 freqT1x = freqCC6 / (1U << prescaler);
348 periodT1x = freqT1x / frequency;
350 if ((periodT1x <= 16386.0) && (periodT1x > resolution))
359 boolean additionalPrescaler;
371 additionalPrescaler = ((prescaler & 0x8U) != 0);
373 if (additionalPrescaler)
380 frequency = freqT1x / period;
394 ccu6->PISEL0.B.IST12HR = extInput->
select;
403 uint32 mask = (0x0101U << shift);
409 ccu6->CMPMODIF.U = (ccu6->CMPMODIF.U & ~mask) | (mode << shift);
415 ccu6->CMPMODIF.U = (ccu6->CMPMODIF.U & ~mask) | (mode << shift);
421 ccu6->CMPMODIF.U = (ccu6->CMPMODIF.U & ~mask) | (mode << shift);
429 float32 freqT1x = 0, periodT1x;
433 for (prescaler = 0; prescaler < 16; prescaler++)
435 freqT1x = freqCC6 / (1U << prescaler);
436 periodT1x = freqT1x / frequency;
438 if ((periodT1x <= 16386.0) && (periodT1x > resolution))
447 boolean additionalPrescaler;
452 periodVal = (
uint16)(period - 1);
459 additionalPrescaler = ((prescaler & 0x8U) != 0);
461 if (additionalPrescaler)
466 frequency = freqT1x / period;
482 ccu6->PISEL2.B.IST13HR = extInput->
select;