2.1.3 DIAG_TIMER_PER

#define DIAG_TIMER_PER (0xFFFFU)

The 16-bit TC will generate an interrupt when the count reaches this value. The code is built counting that this is the largest possible value, i.e. 0xFFFF.