[!/*
    @file    Lin_BaudRate_Comp.m
    @version 1.0.0

    @brief   AUTOSAR Lin - Baud rate computation for Lin_Cfg.c, Lin_PBcfg.c.
    @details Baud rate computation for Lin_Cfg.c, Lin_PBcfg.c
    
    Project AUTOSAR 4.3 MCAL
    Patform PA
    Peripheral ESCI
    Dependencies 
    
    ARVersion 4.3.1
    ARRevision ASR_REL_4_3_REV_0001
    ARConfVariant
    SWVersion 1.0.0
    BuildVersion MPC5777C_MCAL_1_0_0_RTM_ASR_REL_4_3_REV_0001_20190315

    (c) Copyright 2006-2016 Freescale Semiconductor, Inc. 
*       Copyright 2017-2019 NXP
    All Rights Reserved.
*/!]
[!/*==================================================================================================
==================================================================================================
*/!]
[!VAR "ClockFrequencyFromMcu" = "McuClockReferencePointFrequency"!]//
    [!VAR "SBR" = "($ClockFrequencyFromMcu div ($linBaudrate * 16))"!][//
    [!VAR "temp1" = "num:i($SBR)"!][!//
    [!VAR "ESCISBR" = "num:inttohex($temp1,4)"!][!//
    [!VAR "temp2" = "($linBaudrate - $temp1) div $linBaudrate"!][!//
