Preprocesor fails to evaluate the if condicion on L91-92 because RTT_FREQUENCY is not defined, and therefore a division by 0 occurs. TO avoid this replicate the RTT_FREQUENCY undefined warning.