
#include "Dcm_Cfg_Prot.h"
#include "DcmCore_DslDsd_Inf.h"
#include "Rte_Dcm.h"
/*TESTCODE-START
#include "DcmTest.h"
TESTCODE-END*/

#define DCM_START_SEC_CODE /*Adding this for memory mapping*/
#include "Dcm_MemMap.h"
/**
 * @ingroup DCM_TPL
 * DcmAppl_DcmStopProtocol :-\n
 * This API is invoked if a running diagnostic requested is preempted by a higher priority request (of an other protocol, e.g. OBD),
 * application is requested to abort further processing of running request and finish with Dcm_ProcessingDone().\n
 * With this callback function, application can shutdown during protocol preemption.
 * @param[in]         ProtocolID   :  Name of the protocol (IDs configured within DCM_PROTOCOL_ID)
 * @param[out]        None
 * @retval            E_OK : Always it will return this value.
 */
Std_ReturnType DcmAppl_DcmStopProtocol(Dcm_ProtocolType ProtocolID)
{
#if (DCM_CFG_RBA_DIAGADAPT_SUPPORT_ENABLED != DCM_CFG_OFF)
    rba_DiagAdapt_StopProtocol(ProtocolID);
#else
    /* dummy code to remove compiler warning. Actual code to be written by user */
    (void)(ProtocolID);
#endif
    /*TESTCODE-START
   (void)DcmTest_DcmAppl_DcmStopProtocol(ProtocolID);
    TESTCODE-END*/
    return(E_OK);
}
#define DCM_STOP_SEC_CODE /*Adding this for memory mapping*/
#include "Dcm_MemMap.h"
