/********************************************************************************/
/** LIN: Autobaudrate detection                                                **/
/********************************************************************************/
/** Timer 2 is configured to capture the LIN baudrate. Read out of baudrate    **/
/** is done after synch field detection in LIN_End_Of_Synch_Handler().         **/
/** Device generates interrupt on reception of                                 **/
/** - LIN Synch Field -> Toggles P0.1                                          **/
/** - LIN Synch Field errors -> Toggles P0.2                                   **/
/** - T2 Interrupt on falling edge of LIN signal-> Toggles P0.3                **/
/** - UART byte reception -> Toggles P1.0                                      **/
/** Variable LIN_baudrate_ticks keeps the captured time of 8 bits:             **/
/** With TLE9869QXA20: LIN_baudrate_ticks ~ 10015 ticks at baudrate 19200      **/
/**                    f_sys = 24 MHz => T_sys = 1/24000000 ~ 42 ns/tick       **/
/**                    => 10015[tick] x 42[ns/tick] ~ 417292 ns for 8 bits     **/
/**                    => 417292[ns/8bits] / 8[bit] ~ 52.16 us for 1 bit       **/
/**                    => 1[bit] / 0.00005216[s] ~ 19171 bit/s = 19171 baud    **/
/********************************************************************************/