4.4.2 Macros
#define DIAG_CLK_TMR_FREQ (uint16_t) ((F_CPU/DIAG_CLK_TMR_PRESCALER)/DIAG_CLK_TMR_PER)
#define DIAG_CLK_TMR_COUNT_REF ((uint16_t)(1.0 * DIAG_CLK_TMR_FREQ) * DIAG_CLK_PIT_INT_PERIOD_TIME)
#define DIAG_CLK_MAX_DIFFERENCE (uint16_t) ((1.0 * DIAG_CLK_TMR_COUNT_REF * DIAG_CLK_TOL_LIMIT) / 100L )
#define DIAG_CLK_TMR_CNT_OVF_MAX (uint16_t) ( ( DIAG_CLK_TMR_COUNT_REF + DIAG_CLK_MAX_DIFFERENCE ))