/** @file     OsTask_ASW.c
  *
  * @brief    Task OsTask_ASW body
  *
  * @note     AUTOMATICALLY GENERATED FILE! DO NOT EDIT!
  *
  * @note     Generated by ETAS RTA-RTE
  * @note     Version 6.5.0 
  *
  * @date     Thu Mar  7 11:39:19 2019
  */

#define RTE_CORE

#include "Rte_Const.h"
#if !defined(RTE_VENDOR_MODE)
#pragma message "Compiling an individual task file but RTE_VENDOR_MODE not defined. Compiling a stale file?"
#endif /* !defined(RTE_VENDOR_MODE) */
#if defined(RTE_USE_TASK_HEADER)
#include "OsTask_ASW.h"
#else /* !defined(RTE_USE_TASK_HEADER) */
#include "Os.h"
#endif /* !defined(RTE_USE_TASK_HEADER) */
#if defined(RTE_REQUIRES_IOC)
#include "Ioc.h"
#endif /* defined(RTE_REQUIRES_IOC) */
#include "Rte.h"
#include "Rte_Intl.h"
#include "Rte_Type.h"
#include "Rte_DataHandleType.h"

#define RTE_START_SEC_VAR_CLEARED_16
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
extern VAR(uint16, RTE_DATA) Rte_Rx_000002;

extern VAR(uint16, RTE_DATA) Rte_Rx_000004;

extern VAR(uint16, RTE_DATA) Rte_Rx_000011;

extern VAR(uint16, RTE_DATA) Rte_Rx_000013;

#define RTE_STOP_SEC_VAR_CLEARED_16
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_32
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
extern VAR(Rte_ImplicitBufsType, RTE_DATA) Rte_ImplicitBufs;

extern VAR(uint32, RTE_DATA) Rte_Rx_000003;

extern VAR(uint32, RTE_DATA) Rte_Rx_000007;

#define RTE_STOP_SEC_VAR_CLEARED_32
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
extern VAR(uint8, RTE_DATA) Rte_RECount_OsTask_ASW_divby100_0;

extern VAR(uint8, RTE_DATA) Rte_RECount_OsTask_ASW_divby10_0;

extern VAR(uint8, RTE_DATA) Rte_RECount_OsTask_ASW_divby200_0;

extern VAR(uint8, RTE_DATA) Rte_Rx_000000;

extern VAR(uint8, RTE_DATA) Rte_Rx_000001;

extern VAR(uint8, RTE_DATA) Rte_Rx_000005;

extern VAR(uint8, RTE_DATA) Rte_Rx_000006;

extern VAR(uint8, RTE_DATA) Rte_Rx_000008;

extern VAR(uint8, RTE_DATA) Rte_Rx_000009;

extern VAR(uint8, RTE_DATA) Rte_Rx_000010;

extern VAR(uint8, RTE_DATA) Rte_Rx_000012;

extern VAR(uint8, RTE_DATA) Rte_Rx_000014;

extern VAR(uint8, RTE_DATA) Rte_Rx_000015;

extern VAR(uint8, RTE_DATA) Rte_Rx_000016;

extern VAR(uint8, RTE_DATA) Rte_Rx_000017;

extern VAR(uint8, RTE_DATA) Rte_Rx_000018;

extern VAR(uint8, RTE_DATA) Rte_Rx_000019;

extern VAR(uint8, RTE_DATA) Rte_Rx_000027;

#define RTE_STOP_SEC_VAR_CLEARED_8
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

/* Runnable entity prototypes */
#define Base_SWC_START_SEC_CODE
#include "Base_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(void, Base_SWC_CODE) RE_Base_SWC(void);
#define Base_SWC_STOP_SEC_CODE
#include "Base_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */
#define Com_SWC_START_SEC_CODE
#include "Com_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(void, Com_SWC_CODE) RE_Com_SWC(void);
#define Com_SWC_STOP_SEC_CODE
#include "Com_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */
#define Diag_SWC_START_SEC_CODE
#include "Diag_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(void, Diag_SWC_CODE) RE_Swc_Dem_Periodic(void);
FUNC(void, Diag_SWC_CODE) RunnableEntity_dcm(void);
#define Diag_SWC_STOP_SEC_CODE
#include "Diag_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */
#define E2E_SWC_Rx_START_SEC_CODE
#include "E2E_SWC_Rx_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(void, E2E_SWC_Rx_CODE) RE_E2E_SWC_Rx(void);
#define E2E_SWC_Rx_STOP_SEC_CODE
#include "E2E_SWC_Rx_MemMap.h" /*lint !e537 permit multiple inclusion */
#define E2E_SWC_Tx_START_SEC_CODE
#include "E2E_SWC_Tx_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(void, E2E_SWC_Tx_CODE) RE_E2E_SWC_Tx(void);
#define E2E_SWC_Tx_STOP_SEC_CODE
#include "E2E_SWC_Tx_MemMap.h" /*lint !e537 permit multiple inclusion */
#define Memory_SWC_START_SEC_CODE
#include "Memory_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(void, Memory_SWC_CODE) RE_Memory_SWC(void);
#define Memory_SWC_STOP_SEC_CODE
#include "Memory_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */
#define Wdg_SWC_START_SEC_CODE
#include "Wdg_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */
FUNC(void, Wdg_SWC_CODE) RE_Wdg_SWC(void);
#define Wdg_SWC_STOP_SEC_CODE
#include "Wdg_SWC_MemMap.h" /*lint !e537 permit multiple inclusion */

#define RTE_START_SEC_CODE
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */
TASK(OsTask_ASW)
{
   /* Box: Implicit Buffer Initialization begin */
   /* Box: Implicit Buffer Initialization end */
   /* Box: Implicit Buffer Fill begin */
   Rte_SuspendAllInterrupts();
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf0.value = Rte_Rx_000017;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf1.value = Rte_Rx_000016;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf2.value = Rte_Rx_000015;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf3.value = Rte_Rx_000008;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf4.value = Rte_Rx_000000;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf5.value = Rte_Rx_000001;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf6.value = Rte_Rx_000005;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf7.value = Rte_Rx_000010;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf8.value = Rte_Rx_000007;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf9.value = Rte_Rx_000011;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf10.value = Rte_Rx_000004;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf11.value = Rte_Rx_000013;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf12.value = Rte_Rx_000006;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf13.value = Rte_Rx_000003;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf14.value = Rte_Rx_000009;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf15.value = Rte_Rx_000002;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf16.value = Rte_Rx_000018;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf17.value = Rte_Rx_000012;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.rbuf18.value = Rte_Rx_000014;
   Rte_ResumeAllInterrupts();
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.sbuf19.value = Rte_Rx_000019;
   Rte_ImplicitBufs.isa_15.Rte_OsTask_ASW.sbuf20.value = Rte_Rx_000027;
   /* Box: Implicit Buffer Fill end */
   /* Box: CPT_Base_SWC begin */
   if ( Rte_RECount_OsTask_ASW_divby100_0 == ((VAR(uint8, AUTOMATIC))0U) )
   {
      RE_Base_SWC();
   }
   /* Box: CPT_Base_SWC end */
   /* Box: CPT_Memory_SWC begin */
   if ( Rte_RECount_OsTask_ASW_divby100_0 == ((VAR(uint8, AUTOMATIC))0U) )
   {
      RE_Memory_SWC();
   }
   /* Box: CPT_Memory_SWC end */
   /* Box: CPT_E2E_SWC_Rx begin */
   if ( Rte_RECount_OsTask_ASW_divby200_0 == ((VAR(uint8, AUTOMATIC))0U) )
   {
      RE_E2E_SWC_Rx();
   }
   /* Box: CPT_E2E_SWC_Rx end */
   /* Box: CPT_Wdg_SWC begin */
   if ( Rte_RECount_OsTask_ASW_divby100_0 == ((VAR(uint8, AUTOMATIC))0U) )
   {
      RE_Wdg_SWC();
   }
   /* Box: CPT_Wdg_SWC end */
   /* Box: CPT_Com_SWC begin */
   if ( Rte_RECount_OsTask_ASW_divby100_0 == ((VAR(uint8, AUTOMATIC))0U) )
   {
      RE_Com_SWC();
   }
   /* Box: CPT_Com_SWC end */
   /* Box: CPT_E2E_SWC_Tx begin */
   if ( Rte_RECount_OsTask_ASW_divby200_0 == ((VAR(uint8, AUTOMATIC))0U) )
   {
      RE_E2E_SWC_Tx();
   }
   /* Box: CPT_E2E_SWC_Tx end */
   /* Box: CPT_Diag_SWC begin */
   if ( Rte_RECount_OsTask_ASW_divby10_0 == ((VAR(uint8, AUTOMATIC))0U) )
   {
      RE_Swc_Dem_Periodic();
   }
   /* Box: CPT_Diag_SWC end */
   {
      /* Box: CPT_Diag_SWC begin */
      RunnableEntity_dcm();
      /* Box: CPT_Diag_SWC end */
   }
   /* Box: Implicit Buffer Flush begin */
   /* Box: Implicit Buffer Flush end */
   if ( Rte_RECount_OsTask_ASW_divby10_0 != ((VAR(uint8, AUTOMATIC))0U) )
   {
      Rte_RECount_OsTask_ASW_divby10_0--;
   }
   else
   {
      Rte_RECount_OsTask_ASW_divby10_0 = ((VAR(uint8, AUTOMATIC))9);
   }
   if ( Rte_RECount_OsTask_ASW_divby100_0 != ((VAR(uint8, AUTOMATIC))0U) )
   {
      Rte_RECount_OsTask_ASW_divby100_0--;
   }
   else
   {
      Rte_RECount_OsTask_ASW_divby100_0 = ((VAR(uint8, AUTOMATIC))99);
   }
   if ( Rte_RECount_OsTask_ASW_divby200_0 != ((VAR(uint8, AUTOMATIC))0U) )
   {
      Rte_RECount_OsTask_ASW_divby200_0--;
   }
   else
   {
      Rte_RECount_OsTask_ASW_divby200_0 = ((VAR(uint8, AUTOMATIC))199);
   }
   TerminateTask();
} /* OsTask_ASW */
#define RTE_STOP_SEC_CODE
#include "Rte_MemMap.h" /*lint !e537 permit multiple inclusion */

