Hi @IdrisCodes
Thank you for noticing this! I will escalate the below report.
In the SDK PIT example we can see:
PIT_SetTimerPeriod(DEMO_PIT_BASEADDR, DEMO_PIT_CHANNEL, USEC_TO_COUNT(1000000U, PIT_SOURCE_CLOCK));
Where the USEC_TO_COUNT is only decremented by one inside the function.
But if we use Config tools to do PIT setup :
#define PIT_CHANNEL_0_TICKS USEC_TO_COUNT(100000U, PIT_CLK_FREQ) - 1U
PIT_SetTimerPeriod(PIT_PERIPHERAL, PIT_CHANNEL_0, PIT_CHANNEL_0_TICKS);
The USEC_TO_COUNT is decremented by one twice, by the define generated by config tools and the function.
Thank you.
Diego.