Index: source/rti.c =================================================================== diff -u -r29f1ba03faefd982327916590818a260a3e4aa48 -r3323966fe741edbb36dffc78317ccf06ed93a68e --- source/rti.c (.../rti.c) (revision 29f1ba03faefd982327916590818a260a3e4aa48) +++ source/rti.c (.../rti.c) (revision 3323966fe741edbb36dffc78317ccf06ed93a68e) @@ -102,7 +102,7 @@ * - 0x00000000: Divide by 2^32 * - 0x00000001-0xFFFFFFFF: Divide by (CPUC0 + 1) */ - rtiREG1->CNT[0U].CPUCx = 10U; + rtiREG1->CNT[0U].CPUCx = 9U; /** - Reset up counter 1 */ rtiREG1->CNT[1U].UCx = 0x00000000U; @@ -114,31 +114,31 @@ * - 0x00000000: Divide by 2^32 * - 0x00000001-0xFFFFFFFF: Divide by (CPUC1 + 1) */ - rtiREG1->CNT[1U].CPUCx = 10U; + rtiREG1->CNT[1U].CPUCx = 9U; /** - Setup compare 0 value. This value is compared with selected free running counter. */ - rtiREG1->CMP[0U].COMPx = 10000U; + rtiREG1->CMP[0U].COMPx = 10334U; /** - Setup update compare 0 value. This value is added to the compare 0 value on each compare match. */ - rtiREG1->CMP[0U].UDCPx = 10000U; + rtiREG1->CMP[0U].UDCPx = 10334U; /** - Setup compare 1 value. This value is compared with selected free running counter. */ - rtiREG1->CMP[1U].COMPx = 50000U; + rtiREG1->CMP[1U].COMPx = 51668U; /** - Setup update compare 1 value. This value is added to the compare 1 value on each compare match. */ - rtiREG1->CMP[1U].UDCPx = 50000U; + rtiREG1->CMP[1U].UDCPx = 51668U; /** - Setup compare 2 value. This value is compared with selected free running counter. */ - rtiREG1->CMP[2U].COMPx = 80000U; + rtiREG1->CMP[2U].COMPx = 82668U; /** - Setup update compare 2 value. This value is added to the compare 2 value on each compare match. */ - rtiREG1->CMP[2U].UDCPx = 80000U; + rtiREG1->CMP[2U].UDCPx = 82668U; /** - Setup compare 3 value. This value is compared with selected free running counter. */ - rtiREG1->CMP[3U].COMPx = 500000U; + rtiREG1->CMP[3U].COMPx = 516675U; /** - Setup update compare 3 value. This value is added to the compare 3 value on each compare match. */ - rtiREG1->CMP[3U].UDCPx = 500000U; + rtiREG1->CMP[3U].UDCPx = 516675U; /** - Clear all pending interrupts */ rtiREG1->INTFLAG = 0x0007000FU;