From 4d5707275165f04eba66c821bda21d0e8d854065 Mon Sep 17 00:00:00 2001 From: jcar Date: Wed, 18 Apr 2012 20:53:09 +0200 Subject: [PATCH] Removed obsolete files according to ticket 1276 --- .../blinker/config/EcuM_Callout_template.c | 302 ---------------- .../examples/blinker/config/EcuM_Cfg.c | 89 ----- .../os_simple/config/EcuM_Callout_template.c | 302 ---------------- .../examples/os_simple/config/EcuM_Cfg.c | 89 ----- .../os_simple/config/EcuM_Callout_template.c | 300 ---------------- .../examples/os_simple/config/EcuM_Cfg.c | 89 ----- .../os_simple/config/EcuM_Callout_template.c | 297 ---------------- .../examples/os_simple/config/EcuM_Cfg.c | 89 ----- .../examples/com_simple/config/Can_Lcfg.c | 88 ----- .../os_simple/config/EcuM_Callout_template.c | 297 ---------------- .../examples/os_simple/config/EcuM_Cfg.c | 89 ----- .../os_simple/config/EcuM_Callout_template.c | 297 ---------------- .../examples/os_simple/config/EcuM_Cfg.c | 89 ----- .../os_simple/config/EcuM_Callout_template.c | 297 ---------------- .../examples/os_simple/config/EcuM_Cfg.c | 89 ----- .../os_simple/config/EcuM_Callout_template.c | 297 ---------------- .../examples/os_simple/config/EcuM_Cfg.c | 89 ----- .../os_simple/config/EcuM_Callout_template.c | 330 ------------------ .../examples/os_simple/config/EcuM_Cfg.c | 119 ------- .../rte_simple/config/EcuM_Callout_template.c | 330 ------------------ .../examples/rte_simple/config/EcuM_Cfg.c | 119 ------- 21 files changed, 4087 deletions(-) delete mode 100644 boards/hcs12_elmicro_card12/examples/blinker/config/EcuM_Callout_template.c delete mode 100644 boards/hcs12_elmicro_card12/examples/blinker/config/EcuM_Cfg.c delete mode 100644 boards/hcs12_elmicro_card12/examples/os_simple/config/EcuM_Callout_template.c delete mode 100644 boards/hcs12_elmicro_card12/examples/os_simple/config/EcuM_Cfg.c delete mode 100644 boards/hcs12x_elmicro_tboard/examples/os_simple/config/EcuM_Callout_template.c delete mode 100644 boards/hcs12x_elmicro_tboard/examples/os_simple/config/EcuM_Cfg.c delete mode 100644 boards/linux/examples/os_simple/config/EcuM_Callout_template.c delete mode 100644 boards/linux/examples/os_simple/config/EcuM_Cfg.c delete mode 100644 boards/mpc5516it/examples/com_simple/config/Can_Lcfg.c delete mode 100644 boards/mpc5516it/examples/os_simple/config/EcuM_Callout_template.c delete mode 100644 boards/mpc5516it/examples/os_simple/config/EcuM_Cfg.c delete mode 100644 boards/mpc5567qrtech/examples/os_simple/config/EcuM_Callout_template.c delete mode 100644 boards/mpc5567qrtech/examples/os_simple/config/EcuM_Cfg.c delete mode 100644 boards/mpc5604b_trk/examples/os_simple/config/EcuM_Callout_template.c delete mode 100644 boards/mpc5604b_trk/examples/os_simple/config/EcuM_Cfg.c delete mode 100644 boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_Callout_template.c delete mode 100644 boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_Cfg.c delete mode 100644 boards/ti_tms570ls/examples/os_simple/config/EcuM_Callout_template.c delete mode 100644 boards/ti_tms570ls/examples/os_simple/config/EcuM_Cfg.c delete mode 100644 boards/ti_tms570ls/examples/rte_simple/config/EcuM_Callout_template.c delete mode 100644 boards/ti_tms570ls/examples/rte_simple/config/EcuM_Cfg.c diff --git a/boards/hcs12_elmicro_card12/examples/blinker/config/EcuM_Callout_template.c b/boards/hcs12_elmicro_card12/examples/blinker/config/EcuM_Callout_template.c deleted file mode 100644 index 49f0a75b..00000000 --- a/boards/hcs12_elmicro_card12/examples/blinker/config/EcuM_Callout_template.c +++ /dev/null @@ -1,302 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Callout_template.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): HCS12 -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Fri Jun 17 15:35:45 CEST 2011 -*/ - - -#include "EcuM.h" -#include "EcuM_Cbk.h" -#include "Det.h" -#if defined(USE_DEM) -#include "Dem.h" -#endif -#if defined(USE_MCU) -#include "Mcu.h" -#endif -#if defined(USE_GPT) -#include "Gpt.h" -#endif -#if defined(USE_CAN) -#include "Can.h" -#endif -#if defined(USE_CANIF) -#include "CanIf.h" -#endif -#if defined(USE_PDUR) -#include "PduR.h" -#endif -#if defined(USE_COM) -#include "Com.h" -#endif -#if defined(USE_CANTP) -#include "CanTp.h" -#endif -#if defined(USE_DCM) -#include "Dcm.h" -#endif -#if defined(USE_PWM) -#include "Pwm.h" -#endif -#if defined(USE_IOHWAB) -#include "IoHwAb.h" -#endif -#if defined(USE_FLS) -#include "Fls.h" -#endif -#if defined(USE_EEP) -#include "Eep.h" -#endif -#if defined(USE_FEE) -#include "Fee.h" -#endif -#if defined(USE_EA) -#include "Ea.h" -#endif -#if defined(USE_NVM) -#include "NvM.h" -#endif -#if defined(USE_COMM) -#include "ComM.h" -#endif -#if defined(USE_NM) -#include "Nm.h" -#endif -#if defined(USE_CANNM) -#include "CanNm.h" -#endif -#if defined(USE_CANSM) -#include "CanSM.h" -#endif -#if defined(USE_LINSM) -#include "LinSM.h" -#endif -#if defined(USE_SPI) -#include "Spi.h" -#endif - -void EcuM_AL_DriverInitZero(void) -{ -#if defined(USE_DET) - Det_Init(); - Det_Start(); -#endif -} - -EcuM_ConfigType* EcuM_DeterminePbConfiguration(void) -{ - return &EcuMConfig; -} - -void EcuM_AL_DriverInitOne(const EcuM_ConfigType *ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_MCU) - Mcu_Init(ConfigPtr->McuConfig); - - // Set up default clock (Mcu_InitClock requires initRun==1) - // Ignoring return value - (void) Mcu_InitClock( ConfigPtr->McuConfig->McuDefaultClockSettings ); - - // Wait for PLL to sync. - while (Mcu_GetPllStatus() != MCU_PLL_LOCKED) - { - ; - } -#endif - -#if defined(USE_DEM) - // Preinitialize DEM - Dem_PreInit(); -#endif - -#if defined(USE_PORT) - // Setup Port - Port_Init(ConfigPtr->PortConfig); -#endif - - -#if defined(USE_GPT) - // Setup the GPT - Gpt_Init(ConfigPtr->GptConfig); -#endif - - // Setup watchdog - // TODO - -#if defined(USE_DMA) - // Setup DMA - Dma_Init(ConfigPtr->DmaConfig); -#endif - -#if defined(USE_ADC) - // Setup ADC - Adc_Init(ConfigPtr->AdcConfig); -#endif - - // Setup ICU - // TODO - - // Setup PWM -#if defined(USE_PWM) - // Setup PWM - Pwm_Init(ConfigPtr->PwmConfig); -#endif -} - -void EcuM_AL_DriverInitTwo(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_SPI) - // Setup SPI - Spi_Init(ConfigPtr->SpiConfig); -#endif - -#if defined(USE_EEP) - // Setup EEP - Eep_Init(ConfigPtr->EepConfig); -#endif - -#if defined(USE_FLS) - // Setup Flash - Fls_Init(ConfigPtr->FlashConfig); -#endif - -#if defined(USE_FEE) - // Setup FEE - Fee_Init(); -#endif - -#if defined(USE_EA) - // Setup EA - Ea_init(); -#endif - -#if defined(USE_NVM) - // Setup NVRAM Manager and start the read all job - NvM_Init(); - NvM_ReadAll(); -#endif - - // Setup CAN tranceiver - // TODO - -#if defined(USE_CAN) - // Setup Can driver - Can_Init(ConfigPtr->CanConfig); -#endif - -#if defined(USE_CANIF) - // Setup CanIf - CanIf_Init(ConfigPtr->CanIfConfig); -#endif - -#if defined(USE_CANTP) - // Setup CAN TP - CanTp_Init(); -#endif - -#if defined(USE_CANSM) - CanSM_Init(ConfigPtr->CanSMConfig); -#endif - - // Setup LIN - // TODO - -#if defined(USE_PDUR) - // Setup PDU Router - PduR_Init(ConfigPtr->PduRConfig); -#endif - -#if defined(USE_CANNM) - // Setup Can Network Manager - CanNm_Init(ConfigPtr->CanNmConfig); -#endif - -#if defined(USE_NM) - // Setup Network Management Interface - Nm_Init(ConfigPtr->NmConfig); -#endif - -#if defined(USE_COM) - // Setup COM layer - Com_Init(ConfigPtr->ComConfig); -#endif - -#if defined(USE_DCM) - // Setup DCM - Dcm_Init(); -#endif - -#if defined(USE_IOHWAB) - // Setup IO hardware abstraction layer - IoHwAb_Init(); -#endif - -} - -void EcuM_AL_DriverInitThree(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_DEM) - // Setup DEM - Dem_Init(); -#endif - -#if defined(USE_COMM) - // Setup Communication Manager - ComM_Init(ConfigPtr->ComMConfig); -#endif -} - -void EcuM_OnEnterRUN(void) -{ - -} - -void EcuM_OnExitRun(void) -{ - -} - -void EcuM_OnExitPostRun(void) -{ - -} - -void EcuM_OnPrepShutdown(void) -{ - -} - -void EcuM_OnGoSleep(void) -{ - -} - -void EcuM_OnGoOffOne(void) -{ - -} - -void EcuM_OnGoOffTwo(void) -{ - -} - -void EcuM_AL_SwitchOff(void) -{ - -} diff --git a/boards/hcs12_elmicro_card12/examples/blinker/config/EcuM_Cfg.c b/boards/hcs12_elmicro_card12/examples/blinker/config/EcuM_Cfg.c deleted file mode 100644 index 8740dc72..00000000 --- a/boards/hcs12_elmicro_card12/examples/blinker/config/EcuM_Cfg.c +++ /dev/null @@ -1,89 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Cfg.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): HCS12 -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Fri Jun 17 15:35:45 CEST 2011 -*/ - - - -#include "EcuM.h" - - -#if defined(USE_CANSM) -extern const CanSM_ConfigType CanSM_Config; -#endif -#if defined(USE_NM) -extern const Nm_ConfigType Nm_Config; -#endif -#if defined(USE_CANNM) -extern const CanNm_ConfigType CanNm_Config; -#endif -#if defined(USE_COMM) -extern const ComM_ConfigType ComM_Config; -#endif - - -EcuM_ConfigType EcuMConfig = -{ - .EcuMDefaultShutdownTarget = ECUM_STATE_RESET, - .EcuMDefaultSleepMode = 0, // Don't care - .EcuMDefaultAppMode = OSDEFAULTAPPMODE, - .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT, - .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT, - .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION, - -#if defined(USE_MCU) - .McuConfig = McuConfigData, -#endif -#if defined(USE_PORT) - .PortConfig = &PortConfigData, -#endif -#if defined(USE_CAN) - .CanConfig = &CanConfigData, -#endif -#if defined(USE_CANIF) - .CanIfConfig = &CanIf_Config, -#endif -#if defined(USE_CANSM) - .CanSMConfig = &CanSM_Config, -#endif -#if defined(USE_CANNM) - .CanNmConfig = &CanNm_Config, -#endif -#if defined(USE_COM) - .ComConfig = &ComConfiguration, -#endif -#if defined(USE_COMM) - .ComMConfig = &ComM_Config, -#endif -#if defined(USE_NM) - .NmConfig = &Nm_Config, -#endif -#if defined(USE_PDUR) - .PduRConfig = &PduR_Config, -#endif -#if defined(USE_DMA) - .DmaConfig = DmaConfig, -#endif -#if defined(USE_ADC) - .AdcConfig = AdcConfig, -#endif -#if defined(USE_PWM) - .PwmConfig = &PwmConfig, -#endif -#if defined(USE_GPT) - .GptConfig = GptConfigData, -#endif -#if defined(USE_FLS) - .FlashConfig = FlsConfigSet, -#endif -}; diff --git a/boards/hcs12_elmicro_card12/examples/os_simple/config/EcuM_Callout_template.c b/boards/hcs12_elmicro_card12/examples/os_simple/config/EcuM_Callout_template.c deleted file mode 100644 index c666752d..00000000 --- a/boards/hcs12_elmicro_card12/examples/os_simple/config/EcuM_Callout_template.c +++ /dev/null @@ -1,302 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Callout_template.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): HCS12 -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Fri Jun 17 15:26:26 CEST 2011 -*/ - - -#include "EcuM.h" -#include "EcuM_Cbk.h" -#include "Det.h" -#if defined(USE_DEM) -#include "Dem.h" -#endif -#if defined(USE_MCU) -#include "Mcu.h" -#endif -#if defined(USE_GPT) -#include "Gpt.h" -#endif -#if defined(USE_CAN) -#include "Can.h" -#endif -#if defined(USE_CANIF) -#include "CanIf.h" -#endif -#if defined(USE_PDUR) -#include "PduR.h" -#endif -#if defined(USE_COM) -#include "Com.h" -#endif -#if defined(USE_CANTP) -#include "CanTp.h" -#endif -#if defined(USE_DCM) -#include "Dcm.h" -#endif -#if defined(USE_PWM) -#include "Pwm.h" -#endif -#if defined(USE_IOHWAB) -#include "IoHwAb.h" -#endif -#if defined(USE_FLS) -#include "Fls.h" -#endif -#if defined(USE_EEP) -#include "Eep.h" -#endif -#if defined(USE_FEE) -#include "Fee.h" -#endif -#if defined(USE_EA) -#include "Ea.h" -#endif -#if defined(USE_NVM) -#include "NvM.h" -#endif -#if defined(USE_COMM) -#include "ComM.h" -#endif -#if defined(USE_NM) -#include "Nm.h" -#endif -#if defined(USE_CANNM) -#include "CanNm.h" -#endif -#if defined(USE_CANSM) -#include "CanSM.h" -#endif -#if defined(USE_LINSM) -#include "LinSM.h" -#endif -#if defined(USE_SPI) -#include "Spi.h" -#endif - -void EcuM_AL_DriverInitZero(void) -{ -#if defined(USE_DET) - Det_Init(); - Det_Start(); -#endif -} - -EcuM_ConfigType* EcuM_DeterminePbConfiguration(void) -{ - return &EcuMConfig; -} - -void EcuM_AL_DriverInitOne(const EcuM_ConfigType *ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_MCU) - Mcu_Init(ConfigPtr->McuConfig); - - // Set up default clock (Mcu_InitClock requires initRun==1) - // Ignoring return value - (void) Mcu_InitClock( ConfigPtr->McuConfig->McuDefaultClockSettings ); - - // Wait for PLL to sync. - while (Mcu_GetPllStatus() != MCU_PLL_LOCKED) - { - ; - } -#endif - -#if defined(USE_DEM) - // Preinitialize DEM - Dem_PreInit(); -#endif - -#if defined(USE_PORT) - // Setup Port - Port_Init(ConfigPtr->PortConfig); -#endif - - -#if defined(USE_GPT) - // Setup the GPT - Gpt_Init(ConfigPtr->GptConfig); -#endif - - // Setup watchdog - // TODO - -#if defined(USE_DMA) - // Setup DMA - Dma_Init(ConfigPtr->DmaConfig); -#endif - -#if defined(USE_ADC) - // Setup ADC - Adc_Init(ConfigPtr->AdcConfig); -#endif - - // Setup ICU - // TODO - - // Setup PWM -#if defined(USE_PWM) - // Setup PWM - Pwm_Init(ConfigPtr->PwmConfig); -#endif -} - -void EcuM_AL_DriverInitTwo(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_SPI) - // Setup SPI - Spi_Init(ConfigPtr->SpiConfig); -#endif - -#if defined(USE_EEP) - // Setup EEP - Eep_Init(ConfigPtr->EepConfig); -#endif - -#if defined(USE_FLS) - // Setup Flash - Fls_Init(ConfigPtr->FlashConfig); -#endif - -#if defined(USE_FEE) - // Setup FEE - Fee_Init(); -#endif - -#if defined(USE_EA) - // Setup EA - Ea_init(); -#endif - -#if defined(USE_NVM) - // Setup NVRAM Manager and start the read all job - NvM_Init(); - NvM_ReadAll(); -#endif - - // Setup CAN tranceiver - // TODO - -#if defined(USE_CAN) - // Setup Can driver - Can_Init(ConfigPtr->CanConfig); -#endif - -#if defined(USE_CANIF) - // Setup CanIf - CanIf_Init(ConfigPtr->CanIfConfig); -#endif - -#if defined(USE_CANTP) - // Setup CAN TP - CanTp_Init(); -#endif - -#if defined(USE_CANSM) - CanSM_Init(ConfigPtr->CanSMConfig); -#endif - - // Setup LIN - // TODO - -#if defined(USE_PDUR) - // Setup PDU Router - PduR_Init(ConfigPtr->PduRConfig); -#endif - -#if defined(USE_CANNM) - // Setup Can Network Manager - CanNm_Init(ConfigPtr->CanNmConfig); -#endif - -#if defined(USE_NM) - // Setup Network Management Interface - Nm_Init(ConfigPtr->NmConfig); -#endif - -#if defined(USE_COM) - // Setup COM layer - Com_Init(ConfigPtr->ComConfig); -#endif - -#if defined(USE_DCM) - // Setup DCM - Dcm_Init(); -#endif - -#if defined(USE_IOHWAB) - // Setup IO hardware abstraction layer - IoHwAb_Init(); -#endif - -} - -void EcuM_AL_DriverInitThree(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_DEM) - // Setup DEM - Dem_Init(); -#endif - -#if defined(USE_COMM) - // Setup Communication Manager - ComM_Init(ConfigPtr->ComMConfig); -#endif -} - -void EcuM_OnEnterRUN(void) -{ - -} - -void EcuM_OnExitRun(void) -{ - -} - -void EcuM_OnExitPostRun(void) -{ - -} - -void EcuM_OnPrepShutdown(void) -{ - -} - -void EcuM_OnGoSleep(void) -{ - -} - -void EcuM_OnGoOffOne(void) -{ - -} - -void EcuM_OnGoOffTwo(void) -{ - -} - -void EcuM_AL_SwitchOff(void) -{ - -} diff --git a/boards/hcs12_elmicro_card12/examples/os_simple/config/EcuM_Cfg.c b/boards/hcs12_elmicro_card12/examples/os_simple/config/EcuM_Cfg.c deleted file mode 100644 index d43787ec..00000000 --- a/boards/hcs12_elmicro_card12/examples/os_simple/config/EcuM_Cfg.c +++ /dev/null @@ -1,89 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Cfg.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): HCS12 -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Fri Jun 17 15:26:26 CEST 2011 -*/ - - - -#include "EcuM.h" - - -#if defined(USE_CANSM) -extern const CanSM_ConfigType CanSM_Config; -#endif -#if defined(USE_NM) -extern const Nm_ConfigType Nm_Config; -#endif -#if defined(USE_CANNM) -extern const CanNm_ConfigType CanNm_Config; -#endif -#if defined(USE_COMM) -extern const ComM_ConfigType ComM_Config; -#endif - - -EcuM_ConfigType EcuMConfig = -{ - .EcuMDefaultShutdownTarget = ECUM_STATE_RESET, - .EcuMDefaultSleepMode = 0, // Don't care - .EcuMDefaultAppMode = OSDEFAULTAPPMODE, - .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT, - .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT, - .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION, - -#if defined(USE_MCU) - .McuConfig = McuConfigData, -#endif -#if defined(USE_PORT) - .PortConfig = &PortConfigData, -#endif -#if defined(USE_CAN) - .CanConfig = &CanConfigData, -#endif -#if defined(USE_CANIF) - .CanIfConfig = &CanIf_Config, -#endif -#if defined(USE_CANSM) - .CanSMConfig = &CanSM_Config, -#endif -#if defined(USE_CANNM) - .CanNmConfig = &CanNm_Config, -#endif -#if defined(USE_COM) - .ComConfig = &ComConfiguration, -#endif -#if defined(USE_COMM) - .ComMConfig = &ComM_Config, -#endif -#if defined(USE_NM) - .NmConfig = &Nm_Config, -#endif -#if defined(USE_PDUR) - .PduRConfig = &PduR_Config, -#endif -#if defined(USE_DMA) - .DmaConfig = DmaConfig, -#endif -#if defined(USE_ADC) - .AdcConfig = AdcConfig, -#endif -#if defined(USE_PWM) - .PwmConfig = &PwmConfig, -#endif -#if defined(USE_GPT) - .GptConfig = GptConfigData, -#endif -#if defined(USE_FLS) - .FlashConfig = FlsConfigSet, -#endif -}; diff --git a/boards/hcs12x_elmicro_tboard/examples/os_simple/config/EcuM_Callout_template.c b/boards/hcs12x_elmicro_tboard/examples/os_simple/config/EcuM_Callout_template.c deleted file mode 100644 index 30239748..00000000 --- a/boards/hcs12x_elmicro_tboard/examples/os_simple/config/EcuM_Callout_template.c +++ /dev/null @@ -1,300 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Callout_template.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): HCS12 -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Thu Jun 16 21:22:58 CEST 2011 -*/ - - -#include "EcuM.h" -#include "EcuM_Cbk.h" -#include "Det.h" -#if defined(USE_DEM) -#include "Dem.h" -#endif -#if defined(USE_MCU) -#include "Mcu.h" -#endif -#if defined(USE_GPT) -#include "Gpt.h" -#endif -#if defined(USE_CAN) -#include "Can.h" -#endif -#if defined(USE_CANIF) -#include "CanIf.h" -#endif -#if defined(USE_PDUR) -#include "PduR.h" -#endif -#if defined(USE_COM) -#include "Com.h" -#endif -#if defined(USE_CANTP) -#include "CanTp.h" -#endif -#if defined(USE_DCM) -#include "Dcm.h" -#endif -#if defined(USE_PWM) -#include "Pwm.h" -#endif -#if defined(USE_IOHWAB) -#include "IoHwAb.h" -#endif -#if defined(USE_FLS) -#include "Fls.h" -#endif -#if defined(USE_EEP) -#include "Eep.h" -#endif -#if defined(USE_FEE) -#include "Fee.h" -#endif -#if defined(USE_EA) -#include "Ea.h" -#endif -#if defined(USE_NVM) -#include "NvM.h" -#endif -#if defined(USE_COMM) -#include "ComM.h" -#endif -#if defined(USE_NM) -#include "Nm.h" -#endif -#if defined(USE_CANNM) -#include "CanNm.h" -#endif -#if defined(USE_CANSM) -#include "CanSM.h" -#endif -#if defined(USE_LINSM) -#include "LinSM.h" -#endif -#if defined(USE_SPI) -#include "Spi.h" -#endif - -void EcuM_AL_DriverInitZero(void) -{ - Det_Init(); - Det_Start(); -} - -EcuM_ConfigType* EcuM_DeterminePbConfiguration(void) -{ - return &EcuMConfig; -} - -void EcuM_AL_DriverInitOne(const EcuM_ConfigType *ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_MCU) - Mcu_Init(ConfigPtr->McuConfig); - - // Set up default clock (Mcu_InitClock requires initRun==1) - // Ignoring return value - (void) Mcu_InitClock( ConfigPtr->McuConfig->McuDefaultClockSettings ); - - // Wait for PLL to sync. - while (Mcu_GetPllStatus() != MCU_PLL_LOCKED) - { - ; - } -#endif - -#if defined(USE_DEM) - // Preinitialize DEM - Dem_PreInit(); -#endif - -#if defined(USE_PORT) - // Setup Port - Port_Init(ConfigPtr->PortConfig); -#endif - - -#if defined(USE_GPT) - // Setup the GPT - Gpt_Init(ConfigPtr->GptConfig); -#endif - - // Setup watchdog - // TODO - -#if defined(USE_DMA) - // Setup DMA - Dma_Init(ConfigPtr->DmaConfig); -#endif - -#if defined(USE_ADC) - // Setup ADC - Adc_Init(ConfigPtr->AdcConfig); -#endif - - // Setup ICU - // TODO - - // Setup PWM -#if defined(USE_PWM) - // Setup PWM - Pwm_Init(ConfigPtr->PwmConfig); -#endif -} - -void EcuM_AL_DriverInitTwo(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_SPI) - // Setup SPI - Spi_Init(ConfigPtr->SpiConfig); -#endif - -#if defined(USE_EEP) - // Setup EEP - Eep_Init(ConfigPtr->EEpConfig); -#endif - -#if defined(USE_FLS) - // Setup Flash - Fls_Init(ConfigPtr->FlashConfig); -#endif - -#if defined(USE_FEE) - // Setup FEE - Fee_Init(); -#endif - -#if defined(USE_EA) - // Setup EA - Ea_init(); -#endif - -#if defined(USE_NVM) - // Setup NVRAM Manager and start the read all job - NvM_Init(); - NvM_ReadAll(); -#endif - - // Setup CAN tranceiver - // TODO - -#if defined(USE_CAN) - // Setup Can driver - Can_Init(ConfigPtr->CanConfig); -#endif - -#if defined(USE_CANIF) - // Setup CanIf - CanIf_Init(ConfigPtr->CanIfConfig); -#endif - -#if defined(USE_CANTP) - // Setup CAN TP - CanTp_Init(); -#endif - -#if defined(USE_CANSM) - CanSM_Init(ConfigPtr->CanSMConfig); -#endif - - // Setup LIN - // TODO - -#if defined(USE_PDUR) - // Setup PDU Router - PduR_Init(ConfigPtr->PduRConfig); -#endif - -#if defined(USE_CANNM) - // Setup Can Network Manager - CanNm_Init(ConfigPtr->CanNmConfig); -#endif - -#if defined(USE_NM) - // Setup Network Management Interface - Nm_Init(ConfigPtr->NmConfig); -#endif - -#if defined(USE_COM) - // Setup COM layer - Com_Init(ConfigPtr->ComConfig); -#endif - -#if defined(USE_DCM) - // Setup DCM - Dcm_Init(); -#endif - -#if defined(USE_IOHWAB) - // Setup IO hardware abstraction layer - IoHwAb_Init(); -#endif - -} - -void EcuM_AL_DriverInitThree(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_DEM) - // Setup DEM - Dem_Init(); -#endif - -#if defined(USE_COMM) - // Setup Communication Manager - ComM_Init(ConfigPtr->ComMConfig); -#endif -} - -void EcuM_OnEnterRUN(void) -{ - -} - -void EcuM_OnExitRun(void) -{ - -} - -void EcuM_OnExitPostRun(void) -{ - -} - -void EcuM_OnPrepShutdown(void) -{ - -} - -void EcuM_OnGoSleep(void) -{ - -} - -void EcuM_OnGoOffOne(void) -{ - -} - -void EcuM_OnGoOffTwo(void) -{ - -} - -void EcuM_AL_SwitchOff(void) -{ - -} diff --git a/boards/hcs12x_elmicro_tboard/examples/os_simple/config/EcuM_Cfg.c b/boards/hcs12x_elmicro_tboard/examples/os_simple/config/EcuM_Cfg.c deleted file mode 100644 index cd23a4e4..00000000 --- a/boards/hcs12x_elmicro_tboard/examples/os_simple/config/EcuM_Cfg.c +++ /dev/null @@ -1,89 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Cfg.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): HCS12 -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Thu Jun 16 21:22:58 CEST 2011 -*/ - - - -#include "EcuM.h" - - -#if defined(USE_CANSM) -extern const CanSM_ConfigType CanSM_Config; -#endif -#if defined(USE_NM) -extern const Nm_ConfigType Nm_Config; -#endif -#if defined(USE_CANNM) -extern const CanNm_ConfigType CanNm_Config; -#endif -#if defined(USE_COMM) -extern const ComM_ConfigType ComM_Config; -#endif - - -EcuM_ConfigType EcuMConfig = -{ - .EcuMDefaultShutdownTarget = ECUM_STATE_RESET, - .EcuMDefaultSleepMode = 0, // Don't care - .EcuMDefaultAppMode = OSDEFAULTAPPMODE, - .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT, - .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT, - .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION, - -#if defined(USE_MCU) - .McuConfig = McuConfigData, -#endif -#if defined(USE_PORT) - .PortConfig = &PortConfigData, -#endif -#if defined(USE_CAN) - .CanConfig = &CanConfigData, -#endif -#if defined(USE_CANIF) - .CanIfConfig = &CanIf_Config, -#endif -#if defined(USE_CANSM) - .CanSMConfig = &CanSM_Config, -#endif -#if defined(USE_CANNM) - .CanNmConfig = &CanNm_Config, -#endif -#if defined(USE_COM) - .ComConfig = &ComConfiguration, -#endif -#if defined(USE_COMM) - .ComMConfig = &ComM_Config, -#endif -#if defined(USE_NM) - .NmConfig = &Nm_Config, -#endif -#if defined(USE_PDUR) - .PduRConfig = &PduR_Config, -#endif -#if defined(USE_DMA) - .DmaConfig = DmaConfig, -#endif -#if defined(USE_ADC) - .AdcConfig = AdcConfig, -#endif -#if defined(USE_PWM) - .PwmConfig = &PwmConfig, -#endif -#if defined(USE_GPT) - .GptConfig = GptConfigData, -#endif -#if defined(USE_FLS) - .FlashConfig = FlsConfigSet, -#endif -}; diff --git a/boards/linux/examples/os_simple/config/EcuM_Callout_template.c b/boards/linux/examples/os_simple/config/EcuM_Callout_template.c deleted file mode 100644 index 1295d2ad..00000000 --- a/boards/linux/examples/os_simple/config/EcuM_Callout_template.c +++ /dev/null @@ -1,297 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Callout_template.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): MPC551x -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Mon Jun 13 17:00:23 CEST 2011 -*/ - - -#include "EcuM.h" -#include "EcuM_Cbk.h" -#include "Det.h" -#if defined(USE_DEM) -#include "Dem.h" -#endif -#if defined(USE_MCU) -#include "Mcu.h" -#endif -#if defined(USE_GPT) -#include "Gpt.h" -#endif -#if defined(USE_CAN) -#include "Can.h" -#endif -#if defined(USE_CANIF) -#include "CanIf.h" -#endif -#if defined(USE_PDUR) -#include "PduR.h" -#endif -#if defined(USE_COM) -#include "Com.h" -#endif -#if defined(USE_CANTP) -#include "CanTp.h" -#endif -#if defined(USE_DCM) -#include "Dcm.h" -#endif -#if defined(USE_PWM) -#include "Pwm.h" -#endif -#if defined(USE_IOHWAB) -#include "IoHwAb.h" -#endif -#if defined(USE_FLS) -#include "Fls.h" -#endif -#if defined(USE_EEP) -#include "Eep.h" -#endif -#if defined(USE_FEE) -#include "Fee.h" -#endif -#if defined(USE_EA) -#include "Ea.h" -#endif -#if defined(USE_NVM) -#include "NvM.h" -#endif -#if defined(USE_COMM) -#include "ComM.h" -#endif -#if defined(USE_NM) -#include "Nm.h" -#endif -#if defined(USE_CANNM) -#include "CanNm.h" -#endif -#if defined(USE_CANSM) -#include "CanSM.h" -#endif -#if defined(USE_LINSM) -#include "LinSM.h" -#endif - -void EcuM_AL_DriverInitZero(void) -{ - Det_Init(); - Det_Start(); -} - -EcuM_ConfigType* EcuM_DeterminePbConfiguration(void) -{ - return &EcuMConfig; -} - -void EcuM_AL_DriverInitOne(const EcuM_ConfigType *ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_MCU) - Mcu_Init(ConfigPtr->McuConfig); - - // Set up default clock (Mcu_InitClock requires initRun==1) - // Ignoring return value - (void) Mcu_InitClock( ConfigPtr->McuConfig->McuDefaultClockSettings ); - - // Wait for PLL to sync. - while (Mcu_GetPllStatus() != MCU_PLL_LOCKED) - { - ; - } -#endif - -#if defined(USE_DEM) - // Preinitialize DEM - Dem_PreInit(); -#endif - -#if defined(USE_PORT) - // Setup Port - Port_Init(ConfigPtr->PortConfig); -#endif - - -#if defined(USE_GPT) - // Setup the GPT - Gpt_Init(ConfigPtr->GptConfig); -#endif - - // Setup watchdog - // TODO - -#if defined(USE_DMA) - // Setup DMA - Dma_Init(ConfigPtr->DmaConfig); -#endif - -#if defined(USE_ADC) - // Setup ADC - Adc_Init(ConfigPtr->AdcConfig); -#endif - - // Setup ICU - // TODO - - // Setup PWM -#if defined(USE_PWM) - // Setup PWM - Pwm_Init(ConfigPtr->PwmConfig); -#endif -} - -void EcuM_AL_DriverInitTwo(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_SPI) - // Setup SPI - Spi_Init(ConfigPtr->SpiConfig); -#endif - -#if defined(USE_EEP) - // Setup EEP - Eep_Init(ConfigPtr->EEpConfig); -#endif - -#if defined(USE_FLS) - // Setup Flash - Fls_Init(ConfigPtr->FlashConfig); -#endif - -#if defined(USE_FEE) - // Setup FEE - Fee_Init(); -#endif - -#if defined(USE_EA) - // Setup EA - Ea_init(); -#endif - -#if defined(USE_NVM) - // Setup NVRAM Manager and start the read all job - NvM_Init(); - NvM_ReadAll(); -#endif - - // Setup CAN tranceiver - // TODO - -#if defined(USE_CAN) - // Setup Can driver - Can_Init(ConfigPtr->CanConfig); -#endif - -#if defined(USE_CANIF) - // Setup CanIf - CanIf_Init(ConfigPtr->CanIfConfig); -#endif - -#if defined(USE_CANTP) - // Setup CAN TP - CanTp_Init(); -#endif - -#if defined(USE_CANSM) - CanSM_Init(ConfigPtr->CanSMConfig); -#endif - - // Setup LIN - // TODO - -#if defined(USE_PDUR) - // Setup PDU Router - PduR_Init(ConfigPtr->PduRConfig); -#endif - -#if defined(USE_CANNM) - // Setup Can Network Manager - CanNm_Init(ConfigPtr->CanNmConfig); -#endif - -#if defined(USE_NM) - // Setup Network Management Interface - Nm_Init(ConfigPtr->NmConfig); -#endif - -#if defined(USE_COM) - // Setup COM layer - Com_Init(ConfigPtr->ComConfig); -#endif - -#if defined(USE_DCM) - // Setup DCM - Dcm_Init(); -#endif - -#if defined(USE_IOHWAB) - // Setup IO hardware abstraction layer - IoHwAb_Init(); -#endif - -} - -void EcuM_AL_DriverInitThree(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_DEM) - // Setup DEM - Dem_Init(); -#endif - -#if defined(USE_COMM) - // Setup Communication Manager - ComM_Init(ConfigPtr->ComMConfig); -#endif -} - -void EcuM_OnEnterRUN(void) -{ - -} - -void EcuM_OnExitRun(void) -{ - -} - -void EcuM_OnExitPostRun(void) -{ - -} - -void EcuM_OnPrepShutdown(void) -{ - -} - -void EcuM_OnGoSleep(void) -{ - -} - -void EcuM_OnGoOffOne(void) -{ - -} - -void EcuM_OnGoOffTwo(void) -{ - -} - -void EcuM_AL_SwitchOff(void) -{ - -} diff --git a/boards/linux/examples/os_simple/config/EcuM_Cfg.c b/boards/linux/examples/os_simple/config/EcuM_Cfg.c deleted file mode 100644 index b7843f24..00000000 --- a/boards/linux/examples/os_simple/config/EcuM_Cfg.c +++ /dev/null @@ -1,89 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Cfg.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): MPC551x -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Mon Jun 13 17:00:23 CEST 2011 -*/ - - - -#include "EcuM.h" - - -#if defined(USE_CANSM) -extern const CanSM_ConfigType CanSM_Config; -#endif -#if defined(USE_NM) -extern const Nm_ConfigType Nm_Config; -#endif -#if defined(USE_CANNM) -extern const CanNm_ConfigType CanNm_Config; -#endif -#if defined(USE_COMM) -extern const ComM_ConfigType ComM_Config; -#endif - - -EcuM_ConfigType EcuMConfig = -{ - .EcuMDefaultShutdownTarget = ECUM_STATE_RESET, - .EcuMDefaultSleepMode = 0, // Don't care - .EcuMDefaultAppMode = OSDEFAULTAPPMODE, - .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT, - .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT, - .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION, - -#if defined(USE_MCU) - .McuConfig = McuConfigData, -#endif -#if defined(USE_PORT) - .PortConfig = &PortConfigData, -#endif -#if defined(USE_CAN) - .CanConfig = &CanConfigData, -#endif -#if defined(USE_CANIF) - .CanIfConfig = &CanIf_Config, -#endif -#if defined(USE_CANSM) - .CanSMConfig = &CanSM_Config, -#endif -#if defined(USE_CANNM) - .CanNmConfig = &CanNm_Config, -#endif -#if defined(USE_COM) - .ComConfig = &ComConfiguration, -#endif -#if defined(USE_COMM) - .ComMConfig = &ComM_Config, -#endif -#if defined(USE_NM) - .NmConfig = &Nm_Config, -#endif -#if defined(USE_PDUR) - .PduRConfig = &PduR_Config, -#endif -#if defined(USE_DMA) - .DmaConfig = DmaConfig, -#endif -#if defined(USE_ADC) - .AdcConfig = AdcConfig, -#endif -#if defined(USE_PWM) - .PwmConfig = &PwmConfig, -#endif -#if defined(USE_GPT) - .GptConfig = GptConfigData, -#endif -#if defined(USE_FLS) - .FlashConfig = FlsConfigSet, -#endif -}; diff --git a/boards/mpc5516it/examples/com_simple/config/Can_Lcfg.c b/boards/mpc5516it/examples/com_simple/config/Can_Lcfg.c deleted file mode 100644 index b9ddb74b..00000000 --- a/boards/mpc5516it/examples/com_simple/config/Can_Lcfg.c +++ /dev/null @@ -1,88 +0,0 @@ -/* -* Configuration of module: Can (Can_Lcfg.c) -* -* Created by: ArcCore -* Copyright: -* -* Configured for (MCU): MPC551x -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Wed Jul 06 13:51:03 CEST 2011 -*/ - - - -#include -#include "Can.h" -#include "CanIf_Cbk.h" - - -Can_FilterMaskType Can_FilterMaskConfigData_Controller_A_FilterMask = 0x0; - - -const Can_HardwareObjectType CanHardwareObjectConfig_Controller_A[] = { - { - .CanObjectId = TxHWObject, - .CanHandleType = CAN_ARC_HANDLE_TYPE_BASIC, - .CanIdType = CAN_ID_TYPE_STANDARD, - .CanObjectType = CAN_OBJECT_TYPE_TRANSMIT, - .CanFilterMaskRef = &Can_FilterMaskConfigData_Controller_A_FilterMask, - - .Can_Arc_MbMask = 0xff, - .Can_Arc_EOL = 0, - }, - { - .CanObjectId = RxHWObject, - .CanHandleType = CAN_ARC_HANDLE_TYPE_BASIC, - .CanIdType = CAN_ID_TYPE_STANDARD, - .CanObjectType = CAN_OBJECT_TYPE_RECEIVE, - .CanFilterMaskRef = &Can_FilterMaskConfigData_Controller_A_FilterMask, - - .Can_Arc_MbMask = 0xff00, - .Can_Arc_EOL = 1, - }, -}; - - -const Can_ControllerConfigType CanControllerConfigData[] = -{ - { - .CanControllerActivation = TRUE, - .CanControllerBaudRate = 125, - .CanControllerId = FLEXCAN_A, - .CanControllerPropSeg = 4, - .CanControllerSeg1 = 4, - .CanControllerSeg2 = 4, - .CanBusOffProcessing = CAN_ARC_PROCESS_TYPE_INTERRUPT, - .CanRxProcessing = CAN_ARC_PROCESS_TYPE_INTERRUPT, - .CanTxProcessing = CAN_ARC_PROCESS_TYPE_INTERRUPT, - .CanWakeupProcessing = CAN_ARC_PROCESS_TYPE_INTERRUPT, - .CanCpuClockRef = PERIPHERAL_CLOCK_FLEXCAN_A, - .Can_Arc_Hoh = &CanHardwareObjectConfig_Controller_A[0], - .Can_Arc_Loopback = FALSE, - .Can_Arc_Fifo = 0, - }, -}; - -const Can_CallbackType CanCallbackConfigData = { - NULL, //CanIf_CancelTxConfirmation, - CanIf_RxIndication, - CanIf_ControllerBusOff, - CanIf_TxConfirmation, - NULL, //CanIf_ControllerWakeup, - CanIf_Arc_Error, -}; - -const Can_ConfigSetType CanConfigSetData = -{ - .CanController = CanControllerConfigData, - .CanCallbacks = &CanCallbackConfigData, -}; - -const Can_ConfigType CanConfigData = { - .CanConfigSet = &CanConfigSetData, -}; - diff --git a/boards/mpc5516it/examples/os_simple/config/EcuM_Callout_template.c b/boards/mpc5516it/examples/os_simple/config/EcuM_Callout_template.c deleted file mode 100644 index 1295d2ad..00000000 --- a/boards/mpc5516it/examples/os_simple/config/EcuM_Callout_template.c +++ /dev/null @@ -1,297 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Callout_template.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): MPC551x -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Mon Jun 13 17:00:23 CEST 2011 -*/ - - -#include "EcuM.h" -#include "EcuM_Cbk.h" -#include "Det.h" -#if defined(USE_DEM) -#include "Dem.h" -#endif -#if defined(USE_MCU) -#include "Mcu.h" -#endif -#if defined(USE_GPT) -#include "Gpt.h" -#endif -#if defined(USE_CAN) -#include "Can.h" -#endif -#if defined(USE_CANIF) -#include "CanIf.h" -#endif -#if defined(USE_PDUR) -#include "PduR.h" -#endif -#if defined(USE_COM) -#include "Com.h" -#endif -#if defined(USE_CANTP) -#include "CanTp.h" -#endif -#if defined(USE_DCM) -#include "Dcm.h" -#endif -#if defined(USE_PWM) -#include "Pwm.h" -#endif -#if defined(USE_IOHWAB) -#include "IoHwAb.h" -#endif -#if defined(USE_FLS) -#include "Fls.h" -#endif -#if defined(USE_EEP) -#include "Eep.h" -#endif -#if defined(USE_FEE) -#include "Fee.h" -#endif -#if defined(USE_EA) -#include "Ea.h" -#endif -#if defined(USE_NVM) -#include "NvM.h" -#endif -#if defined(USE_COMM) -#include "ComM.h" -#endif -#if defined(USE_NM) -#include "Nm.h" -#endif -#if defined(USE_CANNM) -#include "CanNm.h" -#endif -#if defined(USE_CANSM) -#include "CanSM.h" -#endif -#if defined(USE_LINSM) -#include "LinSM.h" -#endif - -void EcuM_AL_DriverInitZero(void) -{ - Det_Init(); - Det_Start(); -} - -EcuM_ConfigType* EcuM_DeterminePbConfiguration(void) -{ - return &EcuMConfig; -} - -void EcuM_AL_DriverInitOne(const EcuM_ConfigType *ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_MCU) - Mcu_Init(ConfigPtr->McuConfig); - - // Set up default clock (Mcu_InitClock requires initRun==1) - // Ignoring return value - (void) Mcu_InitClock( ConfigPtr->McuConfig->McuDefaultClockSettings ); - - // Wait for PLL to sync. - while (Mcu_GetPllStatus() != MCU_PLL_LOCKED) - { - ; - } -#endif - -#if defined(USE_DEM) - // Preinitialize DEM - Dem_PreInit(); -#endif - -#if defined(USE_PORT) - // Setup Port - Port_Init(ConfigPtr->PortConfig); -#endif - - -#if defined(USE_GPT) - // Setup the GPT - Gpt_Init(ConfigPtr->GptConfig); -#endif - - // Setup watchdog - // TODO - -#if defined(USE_DMA) - // Setup DMA - Dma_Init(ConfigPtr->DmaConfig); -#endif - -#if defined(USE_ADC) - // Setup ADC - Adc_Init(ConfigPtr->AdcConfig); -#endif - - // Setup ICU - // TODO - - // Setup PWM -#if defined(USE_PWM) - // Setup PWM - Pwm_Init(ConfigPtr->PwmConfig); -#endif -} - -void EcuM_AL_DriverInitTwo(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_SPI) - // Setup SPI - Spi_Init(ConfigPtr->SpiConfig); -#endif - -#if defined(USE_EEP) - // Setup EEP - Eep_Init(ConfigPtr->EEpConfig); -#endif - -#if defined(USE_FLS) - // Setup Flash - Fls_Init(ConfigPtr->FlashConfig); -#endif - -#if defined(USE_FEE) - // Setup FEE - Fee_Init(); -#endif - -#if defined(USE_EA) - // Setup EA - Ea_init(); -#endif - -#if defined(USE_NVM) - // Setup NVRAM Manager and start the read all job - NvM_Init(); - NvM_ReadAll(); -#endif - - // Setup CAN tranceiver - // TODO - -#if defined(USE_CAN) - // Setup Can driver - Can_Init(ConfigPtr->CanConfig); -#endif - -#if defined(USE_CANIF) - // Setup CanIf - CanIf_Init(ConfigPtr->CanIfConfig); -#endif - -#if defined(USE_CANTP) - // Setup CAN TP - CanTp_Init(); -#endif - -#if defined(USE_CANSM) - CanSM_Init(ConfigPtr->CanSMConfig); -#endif - - // Setup LIN - // TODO - -#if defined(USE_PDUR) - // Setup PDU Router - PduR_Init(ConfigPtr->PduRConfig); -#endif - -#if defined(USE_CANNM) - // Setup Can Network Manager - CanNm_Init(ConfigPtr->CanNmConfig); -#endif - -#if defined(USE_NM) - // Setup Network Management Interface - Nm_Init(ConfigPtr->NmConfig); -#endif - -#if defined(USE_COM) - // Setup COM layer - Com_Init(ConfigPtr->ComConfig); -#endif - -#if defined(USE_DCM) - // Setup DCM - Dcm_Init(); -#endif - -#if defined(USE_IOHWAB) - // Setup IO hardware abstraction layer - IoHwAb_Init(); -#endif - -} - -void EcuM_AL_DriverInitThree(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_DEM) - // Setup DEM - Dem_Init(); -#endif - -#if defined(USE_COMM) - // Setup Communication Manager - ComM_Init(ConfigPtr->ComMConfig); -#endif -} - -void EcuM_OnEnterRUN(void) -{ - -} - -void EcuM_OnExitRun(void) -{ - -} - -void EcuM_OnExitPostRun(void) -{ - -} - -void EcuM_OnPrepShutdown(void) -{ - -} - -void EcuM_OnGoSleep(void) -{ - -} - -void EcuM_OnGoOffOne(void) -{ - -} - -void EcuM_OnGoOffTwo(void) -{ - -} - -void EcuM_AL_SwitchOff(void) -{ - -} diff --git a/boards/mpc5516it/examples/os_simple/config/EcuM_Cfg.c b/boards/mpc5516it/examples/os_simple/config/EcuM_Cfg.c deleted file mode 100644 index b7843f24..00000000 --- a/boards/mpc5516it/examples/os_simple/config/EcuM_Cfg.c +++ /dev/null @@ -1,89 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Cfg.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): MPC551x -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Mon Jun 13 17:00:23 CEST 2011 -*/ - - - -#include "EcuM.h" - - -#if defined(USE_CANSM) -extern const CanSM_ConfigType CanSM_Config; -#endif -#if defined(USE_NM) -extern const Nm_ConfigType Nm_Config; -#endif -#if defined(USE_CANNM) -extern const CanNm_ConfigType CanNm_Config; -#endif -#if defined(USE_COMM) -extern const ComM_ConfigType ComM_Config; -#endif - - -EcuM_ConfigType EcuMConfig = -{ - .EcuMDefaultShutdownTarget = ECUM_STATE_RESET, - .EcuMDefaultSleepMode = 0, // Don't care - .EcuMDefaultAppMode = OSDEFAULTAPPMODE, - .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT, - .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT, - .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION, - -#if defined(USE_MCU) - .McuConfig = McuConfigData, -#endif -#if defined(USE_PORT) - .PortConfig = &PortConfigData, -#endif -#if defined(USE_CAN) - .CanConfig = &CanConfigData, -#endif -#if defined(USE_CANIF) - .CanIfConfig = &CanIf_Config, -#endif -#if defined(USE_CANSM) - .CanSMConfig = &CanSM_Config, -#endif -#if defined(USE_CANNM) - .CanNmConfig = &CanNm_Config, -#endif -#if defined(USE_COM) - .ComConfig = &ComConfiguration, -#endif -#if defined(USE_COMM) - .ComMConfig = &ComM_Config, -#endif -#if defined(USE_NM) - .NmConfig = &Nm_Config, -#endif -#if defined(USE_PDUR) - .PduRConfig = &PduR_Config, -#endif -#if defined(USE_DMA) - .DmaConfig = DmaConfig, -#endif -#if defined(USE_ADC) - .AdcConfig = AdcConfig, -#endif -#if defined(USE_PWM) - .PwmConfig = &PwmConfig, -#endif -#if defined(USE_GPT) - .GptConfig = GptConfigData, -#endif -#if defined(USE_FLS) - .FlashConfig = FlsConfigSet, -#endif -}; diff --git a/boards/mpc5567qrtech/examples/os_simple/config/EcuM_Callout_template.c b/boards/mpc5567qrtech/examples/os_simple/config/EcuM_Callout_template.c deleted file mode 100644 index 690d5a8d..00000000 --- a/boards/mpc5567qrtech/examples/os_simple/config/EcuM_Callout_template.c +++ /dev/null @@ -1,297 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Callout_template.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): MPC5567 -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Mon Jun 13 16:55:54 CEST 2011 -*/ - - -#include "EcuM.h" -#include "EcuM_Cbk.h" -#include "Det.h" -#if defined(USE_DEM) -#include "Dem.h" -#endif -#if defined(USE_MCU) -#include "Mcu.h" -#endif -#if defined(USE_GPT) -#include "Gpt.h" -#endif -#if defined(USE_CAN) -#include "Can.h" -#endif -#if defined(USE_CANIF) -#include "CanIf.h" -#endif -#if defined(USE_PDUR) -#include "PduR.h" -#endif -#if defined(USE_COM) -#include "Com.h" -#endif -#if defined(USE_CANTP) -#include "CanTp.h" -#endif -#if defined(USE_DCM) -#include "Dcm.h" -#endif -#if defined(USE_PWM) -#include "Pwm.h" -#endif -#if defined(USE_IOHWAB) -#include "IoHwAb.h" -#endif -#if defined(USE_FLS) -#include "Fls.h" -#endif -#if defined(USE_EEP) -#include "Eep.h" -#endif -#if defined(USE_FEE) -#include "Fee.h" -#endif -#if defined(USE_EA) -#include "Ea.h" -#endif -#if defined(USE_NVM) -#include "NvM.h" -#endif -#if defined(USE_COMM) -#include "ComM.h" -#endif -#if defined(USE_NM) -#include "Nm.h" -#endif -#if defined(USE_CANNM) -#include "CanNm.h" -#endif -#if defined(USE_CANSM) -#include "CanSM.h" -#endif -#if defined(USE_LINSM) -#include "LinSM.h" -#endif - -void EcuM_AL_DriverInitZero(void) -{ - Det_Init(); - Det_Start(); -} - -EcuM_ConfigType* EcuM_DeterminePbConfiguration(void) -{ - return &EcuMConfig; -} - -void EcuM_AL_DriverInitOne(const EcuM_ConfigType *ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_MCU) - Mcu_Init(ConfigPtr->McuConfig); - - // Set up default clock (Mcu_InitClock requires initRun==1) - // Ignoring return value - (void) Mcu_InitClock( ConfigPtr->McuConfig->McuDefaultClockSettings ); - - // Wait for PLL to sync. - while (Mcu_GetPllStatus() != MCU_PLL_LOCKED) - { - ; - } -#endif - -#if defined(USE_DEM) - // Preinitialize DEM - Dem_PreInit(); -#endif - -#if defined(USE_PORT) - // Setup Port - Port_Init(ConfigPtr->PortConfig); -#endif - - -#if defined(USE_GPT) - // Setup the GPT - Gpt_Init(ConfigPtr->GptConfig); -#endif - - // Setup watchdog - // TODO - -#if defined(USE_DMA) - // Setup DMA - Dma_Init(ConfigPtr->DmaConfig); -#endif - -#if defined(USE_ADC) - // Setup ADC - Adc_Init(ConfigPtr->AdcConfig); -#endif - - // Setup ICU - // TODO - - // Setup PWM -#if defined(USE_PWM) - // Setup PWM - Pwm_Init(ConfigPtr->PwmConfig); -#endif -} - -void EcuM_AL_DriverInitTwo(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_SPI) - // Setup SPI - Spi_Init(ConfigPtr->SpiConfig); -#endif - -#if defined(USE_EEP) - // Setup EEP - Eep_Init(ConfigPtr->EEpConfig); -#endif - -#if defined(USE_FLS) - // Setup Flash - Fls_Init(ConfigPtr->FlashConfig); -#endif - -#if defined(USE_FEE) - // Setup FEE - Fee_Init(); -#endif - -#if defined(USE_EA) - // Setup EA - Ea_init(); -#endif - -#if defined(USE_NVM) - // Setup NVRAM Manager and start the read all job - NvM_Init(); - NvM_ReadAll(); -#endif - - // Setup CAN tranceiver - // TODO - -#if defined(USE_CAN) - // Setup Can driver - Can_Init(ConfigPtr->CanConfig); -#endif - -#if defined(USE_CANIF) - // Setup CanIf - CanIf_Init(ConfigPtr->CanIfConfig); -#endif - -#if defined(USE_CANTP) - // Setup CAN TP - CanTp_Init(); -#endif - -#if defined(USE_CANSM) - CanSM_Init(ConfigPtr->CanSMConfig); -#endif - - // Setup LIN - // TODO - -#if defined(USE_PDUR) - // Setup PDU Router - PduR_Init(ConfigPtr->PduRConfig); -#endif - -#if defined(USE_CANNM) - // Setup Can Network Manager - CanNm_Init(ConfigPtr->CanNmConfig); -#endif - -#if defined(USE_NM) - // Setup Network Management Interface - Nm_Init(ConfigPtr->NmConfig); -#endif - -#if defined(USE_COM) - // Setup COM layer - Com_Init(ConfigPtr->ComConfig); -#endif - -#if defined(USE_DCM) - // Setup DCM - Dcm_Init(); -#endif - -#if defined(USE_IOHWAB) - // Setup IO hardware abstraction layer - IoHwAb_Init(); -#endif - -} - -void EcuM_AL_DriverInitThree(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_DEM) - // Setup DEM - Dem_Init(); -#endif - -#if defined(USE_COMM) - // Setup Communication Manager - ComM_Init(ConfigPtr->ComMConfig); -#endif -} - -void EcuM_OnEnterRUN(void) -{ - -} - -void EcuM_OnExitRun(void) -{ - -} - -void EcuM_OnExitPostRun(void) -{ - -} - -void EcuM_OnPrepShutdown(void) -{ - -} - -void EcuM_OnGoSleep(void) -{ - -} - -void EcuM_OnGoOffOne(void) -{ - -} - -void EcuM_OnGoOffTwo(void) -{ - -} - -void EcuM_AL_SwitchOff(void) -{ - -} diff --git a/boards/mpc5567qrtech/examples/os_simple/config/EcuM_Cfg.c b/boards/mpc5567qrtech/examples/os_simple/config/EcuM_Cfg.c deleted file mode 100644 index 7cb9c22a..00000000 --- a/boards/mpc5567qrtech/examples/os_simple/config/EcuM_Cfg.c +++ /dev/null @@ -1,89 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Cfg.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): MPC5567 -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Mon Jun 13 16:55:54 CEST 2011 -*/ - - - -#include "EcuM.h" - - -#if defined(USE_CANSM) -extern const CanSM_ConfigType CanSM_Config; -#endif -#if defined(USE_NM) -extern const Nm_ConfigType Nm_Config; -#endif -#if defined(USE_CANNM) -extern const CanNm_ConfigType CanNm_Config; -#endif -#if defined(USE_COMM) -extern const ComM_ConfigType ComM_Config; -#endif - - -EcuM_ConfigType EcuMConfig = -{ - .EcuMDefaultShutdownTarget = ECUM_STATE_RESET, - .EcuMDefaultSleepMode = 0, // Don't care - .EcuMDefaultAppMode = OSDEFAULTAPPMODE, - .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT, - .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT, - .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION, - -#if defined(USE_MCU) - .McuConfig = McuConfigData, -#endif -#if defined(USE_PORT) - .PortConfig = &PortConfigData, -#endif -#if defined(USE_CAN) - .CanConfig = &CanConfigData, -#endif -#if defined(USE_CANIF) - .CanIfConfig = &CanIf_Config, -#endif -#if defined(USE_CANSM) - .CanSMConfig = &CanSM_Config, -#endif -#if defined(USE_CANNM) - .CanNmConfig = &CanNm_Config, -#endif -#if defined(USE_COM) - .ComConfig = &ComConfiguration, -#endif -#if defined(USE_COMM) - .ComMConfig = &ComM_Config, -#endif -#if defined(USE_NM) - .NmConfig = &Nm_Config, -#endif -#if defined(USE_PDUR) - .PduRConfig = &PduR_Config, -#endif -#if defined(USE_DMA) - .DmaConfig = DmaConfig, -#endif -#if defined(USE_ADC) - .AdcConfig = AdcConfig, -#endif -#if defined(USE_PWM) - .PwmConfig = &PwmConfig, -#endif -#if defined(USE_GPT) - .GptConfig = GptConfigData, -#endif -#if defined(USE_FLS) - .FlashConfig = FlsConfigSet, -#endif -}; diff --git a/boards/mpc5604b_trk/examples/os_simple/config/EcuM_Callout_template.c b/boards/mpc5604b_trk/examples/os_simple/config/EcuM_Callout_template.c deleted file mode 100644 index 424887b5..00000000 --- a/boards/mpc5604b_trk/examples/os_simple/config/EcuM_Callout_template.c +++ /dev/null @@ -1,297 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Callout_template.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): MPC560x -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Thu Jun 16 20:14:36 CEST 2011 -*/ - - -#include "EcuM.h" -#include "EcuM_Cbk.h" -#include "Det.h" -#if defined(USE_DEM) -#include "Dem.h" -#endif -#if defined(USE_MCU) -#include "Mcu.h" -#endif -#if defined(USE_GPT) -#include "Gpt.h" -#endif -#if defined(USE_CAN) -#include "Can.h" -#endif -#if defined(USE_CANIF) -#include "CanIf.h" -#endif -#if defined(USE_PDUR) -#include "PduR.h" -#endif -#if defined(USE_COM) -#include "Com.h" -#endif -#if defined(USE_CANTP) -#include "CanTp.h" -#endif -#if defined(USE_DCM) -#include "Dcm.h" -#endif -#if defined(USE_PWM) -#include "Pwm.h" -#endif -#if defined(USE_IOHWAB) -#include "IoHwAb.h" -#endif -#if defined(USE_FLS) -#include "Fls.h" -#endif -#if defined(USE_EEP) -#include "Eep.h" -#endif -#if defined(USE_FEE) -#include "Fee.h" -#endif -#if defined(USE_EA) -#include "Ea.h" -#endif -#if defined(USE_NVM) -#include "NvM.h" -#endif -#if defined(USE_COMM) -#include "ComM.h" -#endif -#if defined(USE_NM) -#include "Nm.h" -#endif -#if defined(USE_CANNM) -#include "CanNm.h" -#endif -#if defined(USE_CANSM) -#include "CanSM.h" -#endif -#if defined(USE_LINSM) -#include "LinSM.h" -#endif - -void EcuM_AL_DriverInitZero(void) -{ - Det_Init(); - Det_Start(); -} - -EcuM_ConfigType* EcuM_DeterminePbConfiguration(void) -{ - return &EcuMConfig; -} - -void EcuM_AL_DriverInitOne(const EcuM_ConfigType *ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_MCU) - Mcu_Init(ConfigPtr->McuConfig); - - // Set up default clock (Mcu_InitClock requires initRun==1) - // Ignoring return value - (void) Mcu_InitClock( ConfigPtr->McuConfig->McuDefaultClockSettings ); - - // Wait for PLL to sync. - while (Mcu_GetPllStatus() != MCU_PLL_LOCKED) - { - ; - } -#endif - -#if defined(USE_DEM) - // Preinitialize DEM - Dem_PreInit(); -#endif - -#if defined(USE_PORT) - // Setup Port - Port_Init(ConfigPtr->PortConfig); -#endif - - -#if defined(USE_GPT) - // Setup the GPT - Gpt_Init(ConfigPtr->GptConfig); -#endif - - // Setup watchdog - // TODO - -#if defined(USE_DMA) - // Setup DMA - Dma_Init(ConfigPtr->DmaConfig); -#endif - -#if defined(USE_ADC) - // Setup ADC - Adc_Init(ConfigPtr->AdcConfig); -#endif - - // Setup ICU - // TODO - - // Setup PWM -#if defined(USE_PWM) - // Setup PWM - Pwm_Init(ConfigPtr->PwmConfig); -#endif -} - -void EcuM_AL_DriverInitTwo(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_SPI) - // Setup SPI - Spi_Init(ConfigPtr->SpiConfig); -#endif - -#if defined(USE_EEP) - // Setup EEP - Eep_Init(ConfigPtr->EEpConfig); -#endif - -#if defined(USE_FLS) - // Setup Flash - Fls_Init(ConfigPtr->FlashConfig); -#endif - -#if defined(USE_FEE) - // Setup FEE - Fee_Init(); -#endif - -#if defined(USE_EA) - // Setup EA - Ea_init(); -#endif - -#if defined(USE_NVM) - // Setup NVRAM Manager and start the read all job - NvM_Init(); - NvM_ReadAll(); -#endif - - // Setup CAN tranceiver - // TODO - -#if defined(USE_CAN) - // Setup Can driver - Can_Init(ConfigPtr->CanConfig); -#endif - -#if defined(USE_CANIF) - // Setup CanIf - CanIf_Init(ConfigPtr->CanIfConfig); -#endif - -#if defined(USE_CANTP) - // Setup CAN TP - CanTp_Init(); -#endif - -#if defined(USE_CANSM) - CanSM_Init(ConfigPtr->CanSMConfig); -#endif - - // Setup LIN - // TODO - -#if defined(USE_PDUR) - // Setup PDU Router - PduR_Init(ConfigPtr->PduRConfig); -#endif - -#if defined(USE_CANNM) - // Setup Can Network Manager - CanNm_Init(ConfigPtr->CanNmConfig); -#endif - -#if defined(USE_NM) - // Setup Network Management Interface - Nm_Init(ConfigPtr->NmConfig); -#endif - -#if defined(USE_COM) - // Setup COM layer - Com_Init(ConfigPtr->ComConfig); -#endif - -#if defined(USE_DCM) - // Setup DCM - Dcm_Init(); -#endif - -#if defined(USE_IOHWAB) - // Setup IO hardware abstraction layer - IoHwAb_Init(); -#endif - -} - -void EcuM_AL_DriverInitThree(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_DEM) - // Setup DEM - Dem_Init(); -#endif - -#if defined(USE_COMM) - // Setup Communication Manager - ComM_Init(ConfigPtr->ComMConfig); -#endif -} - -void EcuM_OnEnterRUN(void) -{ - -} - -void EcuM_OnExitRun(void) -{ - -} - -void EcuM_OnExitPostRun(void) -{ - -} - -void EcuM_OnPrepShutdown(void) -{ - -} - -void EcuM_OnGoSleep(void) -{ - -} - -void EcuM_OnGoOffOne(void) -{ - -} - -void EcuM_OnGoOffTwo(void) -{ - -} - -void EcuM_AL_SwitchOff(void) -{ - -} diff --git a/boards/mpc5604b_trk/examples/os_simple/config/EcuM_Cfg.c b/boards/mpc5604b_trk/examples/os_simple/config/EcuM_Cfg.c deleted file mode 100644 index f483d81a..00000000 --- a/boards/mpc5604b_trk/examples/os_simple/config/EcuM_Cfg.c +++ /dev/null @@ -1,89 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Cfg.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): MPC560x -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Thu Jun 16 20:14:36 CEST 2011 -*/ - - - -#include "EcuM.h" - - -#if defined(USE_CANSM) -extern const CanSM_ConfigType CanSM_Config; -#endif -#if defined(USE_NM) -extern const Nm_ConfigType Nm_Config; -#endif -#if defined(USE_CANNM) -extern const CanNm_ConfigType CanNm_Config; -#endif -#if defined(USE_COMM) -extern const ComM_ConfigType ComM_Config; -#endif - - -EcuM_ConfigType EcuMConfig = -{ - .EcuMDefaultShutdownTarget = ECUM_STATE_RESET, - .EcuMDefaultSleepMode = 0, // Don't care - .EcuMDefaultAppMode = OSDEFAULTAPPMODE, - .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT, - .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT, - .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION, - -#if defined(USE_MCU) - .McuConfig = McuConfigData, -#endif -#if defined(USE_PORT) - .PortConfig = &PortConfigData, -#endif -#if defined(USE_CAN) - .CanConfig = &CanConfigData, -#endif -#if defined(USE_CANIF) - .CanIfConfig = &CanIf_Config, -#endif -#if defined(USE_CANSM) - .CanSMConfig = &CanSM_Config, -#endif -#if defined(USE_CANNM) - .CanNmConfig = &CanNm_Config, -#endif -#if defined(USE_COM) - .ComConfig = &ComConfiguration, -#endif -#if defined(USE_COMM) - .ComMConfig = &ComM_Config, -#endif -#if defined(USE_NM) - .NmConfig = &Nm_Config, -#endif -#if defined(USE_PDUR) - .PduRConfig = &PduR_Config, -#endif -#if defined(USE_DMA) - .DmaConfig = DmaConfig, -#endif -#if defined(USE_ADC) - .AdcConfig = AdcConfig, -#endif -#if defined(USE_PWM) - .PwmConfig = &PwmConfig, -#endif -#if defined(USE_GPT) - .GptConfig = GptConfigData, -#endif -#if defined(USE_FLS) - .FlashConfig = FlsConfigSet, -#endif -}; diff --git a/boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_Callout_template.c b/boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_Callout_template.c deleted file mode 100644 index 424887b5..00000000 --- a/boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_Callout_template.c +++ /dev/null @@ -1,297 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Callout_template.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): MPC560x -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Thu Jun 16 20:14:36 CEST 2011 -*/ - - -#include "EcuM.h" -#include "EcuM_Cbk.h" -#include "Det.h" -#if defined(USE_DEM) -#include "Dem.h" -#endif -#if defined(USE_MCU) -#include "Mcu.h" -#endif -#if defined(USE_GPT) -#include "Gpt.h" -#endif -#if defined(USE_CAN) -#include "Can.h" -#endif -#if defined(USE_CANIF) -#include "CanIf.h" -#endif -#if defined(USE_PDUR) -#include "PduR.h" -#endif -#if defined(USE_COM) -#include "Com.h" -#endif -#if defined(USE_CANTP) -#include "CanTp.h" -#endif -#if defined(USE_DCM) -#include "Dcm.h" -#endif -#if defined(USE_PWM) -#include "Pwm.h" -#endif -#if defined(USE_IOHWAB) -#include "IoHwAb.h" -#endif -#if defined(USE_FLS) -#include "Fls.h" -#endif -#if defined(USE_EEP) -#include "Eep.h" -#endif -#if defined(USE_FEE) -#include "Fee.h" -#endif -#if defined(USE_EA) -#include "Ea.h" -#endif -#if defined(USE_NVM) -#include "NvM.h" -#endif -#if defined(USE_COMM) -#include "ComM.h" -#endif -#if defined(USE_NM) -#include "Nm.h" -#endif -#if defined(USE_CANNM) -#include "CanNm.h" -#endif -#if defined(USE_CANSM) -#include "CanSM.h" -#endif -#if defined(USE_LINSM) -#include "LinSM.h" -#endif - -void EcuM_AL_DriverInitZero(void) -{ - Det_Init(); - Det_Start(); -} - -EcuM_ConfigType* EcuM_DeterminePbConfiguration(void) -{ - return &EcuMConfig; -} - -void EcuM_AL_DriverInitOne(const EcuM_ConfigType *ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_MCU) - Mcu_Init(ConfigPtr->McuConfig); - - // Set up default clock (Mcu_InitClock requires initRun==1) - // Ignoring return value - (void) Mcu_InitClock( ConfigPtr->McuConfig->McuDefaultClockSettings ); - - // Wait for PLL to sync. - while (Mcu_GetPllStatus() != MCU_PLL_LOCKED) - { - ; - } -#endif - -#if defined(USE_DEM) - // Preinitialize DEM - Dem_PreInit(); -#endif - -#if defined(USE_PORT) - // Setup Port - Port_Init(ConfigPtr->PortConfig); -#endif - - -#if defined(USE_GPT) - // Setup the GPT - Gpt_Init(ConfigPtr->GptConfig); -#endif - - // Setup watchdog - // TODO - -#if defined(USE_DMA) - // Setup DMA - Dma_Init(ConfigPtr->DmaConfig); -#endif - -#if defined(USE_ADC) - // Setup ADC - Adc_Init(ConfigPtr->AdcConfig); -#endif - - // Setup ICU - // TODO - - // Setup PWM -#if defined(USE_PWM) - // Setup PWM - Pwm_Init(ConfigPtr->PwmConfig); -#endif -} - -void EcuM_AL_DriverInitTwo(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_SPI) - // Setup SPI - Spi_Init(ConfigPtr->SpiConfig); -#endif - -#if defined(USE_EEP) - // Setup EEP - Eep_Init(ConfigPtr->EEpConfig); -#endif - -#if defined(USE_FLS) - // Setup Flash - Fls_Init(ConfigPtr->FlashConfig); -#endif - -#if defined(USE_FEE) - // Setup FEE - Fee_Init(); -#endif - -#if defined(USE_EA) - // Setup EA - Ea_init(); -#endif - -#if defined(USE_NVM) - // Setup NVRAM Manager and start the read all job - NvM_Init(); - NvM_ReadAll(); -#endif - - // Setup CAN tranceiver - // TODO - -#if defined(USE_CAN) - // Setup Can driver - Can_Init(ConfigPtr->CanConfig); -#endif - -#if defined(USE_CANIF) - // Setup CanIf - CanIf_Init(ConfigPtr->CanIfConfig); -#endif - -#if defined(USE_CANTP) - // Setup CAN TP - CanTp_Init(); -#endif - -#if defined(USE_CANSM) - CanSM_Init(ConfigPtr->CanSMConfig); -#endif - - // Setup LIN - // TODO - -#if defined(USE_PDUR) - // Setup PDU Router - PduR_Init(ConfigPtr->PduRConfig); -#endif - -#if defined(USE_CANNM) - // Setup Can Network Manager - CanNm_Init(ConfigPtr->CanNmConfig); -#endif - -#if defined(USE_NM) - // Setup Network Management Interface - Nm_Init(ConfigPtr->NmConfig); -#endif - -#if defined(USE_COM) - // Setup COM layer - Com_Init(ConfigPtr->ComConfig); -#endif - -#if defined(USE_DCM) - // Setup DCM - Dcm_Init(); -#endif - -#if defined(USE_IOHWAB) - // Setup IO hardware abstraction layer - IoHwAb_Init(); -#endif - -} - -void EcuM_AL_DriverInitThree(const EcuM_ConfigType* ConfigPtr) -{ - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_DEM) - // Setup DEM - Dem_Init(); -#endif - -#if defined(USE_COMM) - // Setup Communication Manager - ComM_Init(ConfigPtr->ComMConfig); -#endif -} - -void EcuM_OnEnterRUN(void) -{ - -} - -void EcuM_OnExitRun(void) -{ - -} - -void EcuM_OnExitPostRun(void) -{ - -} - -void EcuM_OnPrepShutdown(void) -{ - -} - -void EcuM_OnGoSleep(void) -{ - -} - -void EcuM_OnGoOffOne(void) -{ - -} - -void EcuM_OnGoOffTwo(void) -{ - -} - -void EcuM_AL_SwitchOff(void) -{ - -} diff --git a/boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_Cfg.c b/boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_Cfg.c deleted file mode 100644 index f483d81a..00000000 --- a/boards/mpc5606s_xpc560s/examples/os_simple/config/EcuM_Cfg.c +++ /dev/null @@ -1,89 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Cfg.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): MPC560x -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -* on Thu Jun 16 20:14:36 CEST 2011 -*/ - - - -#include "EcuM.h" - - -#if defined(USE_CANSM) -extern const CanSM_ConfigType CanSM_Config; -#endif -#if defined(USE_NM) -extern const Nm_ConfigType Nm_Config; -#endif -#if defined(USE_CANNM) -extern const CanNm_ConfigType CanNm_Config; -#endif -#if defined(USE_COMM) -extern const ComM_ConfigType ComM_Config; -#endif - - -EcuM_ConfigType EcuMConfig = -{ - .EcuMDefaultShutdownTarget = ECUM_STATE_RESET, - .EcuMDefaultSleepMode = 0, // Don't care - .EcuMDefaultAppMode = OSDEFAULTAPPMODE, - .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT, - .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT, - .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION, - -#if defined(USE_MCU) - .McuConfig = McuConfigData, -#endif -#if defined(USE_PORT) - .PortConfig = &PortConfigData, -#endif -#if defined(USE_CAN) - .CanConfig = &CanConfigData, -#endif -#if defined(USE_CANIF) - .CanIfConfig = &CanIf_Config, -#endif -#if defined(USE_CANSM) - .CanSMConfig = &CanSM_Config, -#endif -#if defined(USE_CANNM) - .CanNmConfig = &CanNm_Config, -#endif -#if defined(USE_COM) - .ComConfig = &ComConfiguration, -#endif -#if defined(USE_COMM) - .ComMConfig = &ComM_Config, -#endif -#if defined(USE_NM) - .NmConfig = &Nm_Config, -#endif -#if defined(USE_PDUR) - .PduRConfig = &PduR_Config, -#endif -#if defined(USE_DMA) - .DmaConfig = DmaConfig, -#endif -#if defined(USE_ADC) - .AdcConfig = AdcConfig, -#endif -#if defined(USE_PWM) - .PwmConfig = &PwmConfig, -#endif -#if defined(USE_GPT) - .GptConfig = GptConfigData, -#endif -#if defined(USE_FLS) - .FlashConfig = FlsConfigSet, -#endif -}; diff --git a/boards/ti_tms570ls/examples/os_simple/config/EcuM_Callout_template.c b/boards/ti_tms570ls/examples/os_simple/config/EcuM_Callout_template.c deleted file mode 100644 index bed4681b..00000000 --- a/boards/ti_tms570ls/examples/os_simple/config/EcuM_Callout_template.c +++ /dev/null @@ -1,330 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Callout_template.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): TMS570 -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -*/ - - -#include "EcuM.h" -#include "EcuM_Cbk.h" -#include "Det.h" -#if defined(USE_DEM) -#include "Dem.h" -#endif -#if defined(USE_MCU) -#include "Mcu.h" -#endif -#if defined(USE_GPT) -#include "Gpt.h" -#endif -#if defined(USE_CAN) -#include "Can.h" -#endif -#if defined(USE_CANIF) -#include "CanIf.h" -#endif -#if defined(USE_PDUR) -#include "PduR.h" -#endif -#if defined(USE_COM) -#include "Com.h" -#endif -#if defined(USE_CANTP) -#include "CanTp.h" -#endif -#if defined(USE_J1939TP) -#include "J1939Tp.h" -#endif -#if defined(USE_DCM) -#include "Dcm.h" -#endif -#if defined(USE_PWM) -#include "Pwm.h" -#endif -#if defined(USE_IOHWAB) -#include "IoHwAb.h" -#endif -#if defined(USE_FLS) -#include "Fls.h" -#endif -#if defined(USE_EEP) -#include "Eep.h" -#endif -#if defined(USE_FEE) -#include "Fee.h" -#endif -#if defined(USE_EA) -#include "Ea.h" -#endif -#if defined(USE_NVM) -#include "NvM.h" -#endif -#if defined(USE_COMM) -#include "ComM.h" -#endif -#if defined(USE_NM) -#include "Nm.h" -#endif -#if defined(USE_CANNM) -#include "CanNm.h" -#endif -#if defined(USE_CANSM) -#include "CanSM.h" -#endif -#if defined(USE_UDPNM) -#include "UdpNm.h" -#endif -#if defined(USE_LINSM) -#include "LinSM.h" -#endif -#if defined(USE_SPI) -#include "Spi.h" -#endif -#if defined(USE_WDG) -#include "Wdg.h" -#endif -#if defined(USE_WDGM) -#include "WdgM.h" -#endif - -void EcuM_AL_DriverInitZero(void) -{ - Det_Init();/** @req EcuM2783 */ - Det_Start();/** @req EcuM2634 */ -} - -EcuM_ConfigType* EcuM_DeterminePbConfiguration(void) -{ - return &EcuMConfig; -} - -void EcuM_AL_DriverInitOne(const EcuM_ConfigType *ConfigPtr) -{ - (void)ConfigPtr; - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_MCU) - Mcu_Init(ConfigPtr->McuConfig); - - /* Set up default clock (Mcu_InitClock requires initRun==1) */ - /* Ignoring return value */ - (void) Mcu_InitClock( ConfigPtr->McuConfig->McuDefaultClockSettings ); - - // Wait for PLL to sync. - while (Mcu_GetPllStatus() != MCU_PLL_LOCKED) - { - ; - } -#endif - -#if defined(USE_DEM) - // Preinitialize DEM - Dem_PreInit(); -#endif - -#if defined(USE_PORT) - // Setup Port - Port_Init(ConfigPtr->PortConfig); -#endif - - -#if defined(USE_GPT) - // Setup the GPT - Gpt_Init(ConfigPtr->GptConfig); -#endif - - // Setup watchdog -#if defined(USE_WDG) - Wdg_Init(ConfigPtr->WdgConfig); -#endif -#if defined(USE_WDGM) - WdgM_Init(ConfigPtr->WdgMConfig); -#endif - -#if defined(USE_DMA) - // Setup DMA - Dma_Init(ConfigPtr->DmaConfig); -#endif - -#if defined(USE_ADC) - // Setup ADC - Adc_Init(ConfigPtr->AdcConfig); -#endif - - // Setup ICU - // TODO - - // Setup PWM -#if defined(USE_PWM) - // Setup PWM - Pwm_Init(ConfigPtr->PwmConfig); -#endif -} - -void EcuM_AL_DriverInitTwo(const EcuM_ConfigType* ConfigPtr) -{ - (void)ConfigPtr; - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_SPI) - // Setup SPI - Spi_Init(ConfigPtr->SpiConfig); -#endif - -#if defined(USE_EEP) - // Setup EEP - Eep_Init(ConfigPtr->EepConfig); -#endif - -#if defined(USE_FLS) - // Setup Flash - Fls_Init(ConfigPtr->FlashConfig); -#endif - -#if defined(USE_FEE) - // Setup FEE - Fee_Init(); -#endif - -#if defined(USE_EA) - // Setup EA - Ea_Init(); -#endif - -#if defined(USE_NVM) - // Setup NVRAM Manager and start the read all job - NvM_Init(); - NvM_ReadAll(); -#endif - - // Setup CAN tranceiver - // TODO - -#if defined(USE_CAN) - // Setup Can driver - Can_Init(ConfigPtr->CanConfig); -#endif - -#if defined(USE_CANIF) - // Setup CanIf - CanIf_Init(ConfigPtr->CanIfConfig); -#endif - -#if defined(USE_CANTP) - // Setup CAN TP - CanTp_Init(); -#endif - -#if defined(USE_CANSM) - CanSM_Init(ConfigPtr->CanSMConfig); -#endif - -#if defined(USE_J1939TP) - // Setup J1939Tp - J1939Tp_Init(ConfigPtr->J1939TpConfig); -#endif - - - // Setup LIN - // TODO - -#if defined(USE_PDUR) - // Setup PDU Router - PduR_Init(ConfigPtr->PduRConfig); -#endif - -#if defined(USE_CANNM) - // Setup Can Network Manager - CanNm_Init(ConfigPtr->CanNmConfig); -#endif - -#if defined(USE_UDPNM) - // Setup Udp Network Manager - UdpNm_Init(ConfigPtr->UdpNmConfig); -#endif - -#if defined(USE_NM) - // Setup Network Management Interface - Nm_Init(ConfigPtr->NmConfig); -#endif - -#if defined(USE_COM) - // Setup COM layer - Com_Init(ConfigPtr->ComConfig); -#endif - -#if defined(USE_DCM) - // Setup DCM - Dcm_Init(); -#endif - -#if defined(USE_IOHWAB) - // Setup IO hardware abstraction layer - IoHwAb_Init(); -#endif - -} - -void EcuM_AL_DriverInitThree(const EcuM_ConfigType* ConfigPtr) -{ - (void)ConfigPtr; - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_DEM) - // Setup DEM - Dem_Init(); -#endif - -#if defined(USE_COMM) - // Setup Communication Manager - ComM_Init(ConfigPtr->ComMConfig); -#endif -} - -void EcuM_OnEnterRUN(void) -{ - -} - -void EcuM_OnExitRun(void) -{ - -} - -void EcuM_OnExitPostRun(void) -{ - -} - -void EcuM_OnPrepShutdown(void) -{ - -} - -void EcuM_OnGoSleep(void) -{ - -} - -void EcuM_OnGoOffOne(void) -{ - -} - -void EcuM_OnGoOffTwo(void) -{ - -} - -void EcuM_AL_SwitchOff(void) -{ - -} diff --git a/boards/ti_tms570ls/examples/os_simple/config/EcuM_Cfg.c b/boards/ti_tms570ls/examples/os_simple/config/EcuM_Cfg.c deleted file mode 100644 index 166b72c7..00000000 --- a/boards/ti_tms570ls/examples/os_simple/config/EcuM_Cfg.c +++ /dev/null @@ -1,119 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Cfg.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): TMS570 -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -*/ - - - -#include "EcuM.h" - - -#if defined(USE_CANSM) -extern const CanSM_ConfigType CanSM_Config; -#endif -#if defined(USE_NM) -extern const Nm_ConfigType Nm_Config; -#endif -#if defined(USE_CANNM) -extern const CanNm_ConfigType CanNm_Config; -#endif -#if defined(USE_UDPNM) -extern const UdpNm_ConfigType UdpNm_Config; -#endif -#if defined(USE_COMM) -extern const ComM_ConfigType ComM_Config; -#endif - -#if defined(USE_J1939TP) -extern const J1939Tp_ConfigType J1939Tp_Config; -#endif - - -EcuM_ConfigType EcuMConfig = -{ - .EcuMDefaultShutdownTarget = ECUM_STATE_RESET, - .EcuMDefaultSleepMode = 0, // Don't care - .EcuMDefaultAppMode = OSDEFAULTAPPMODE, - .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT, - .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT, - .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION, - -#if defined(USE_MCU) - .McuConfig = McuConfigData, -#endif -#if defined(USE_PORT) - .PortConfig = &PortConfigData, -#endif -#if defined(USE_CAN) - .CanConfig = &CanConfigData, -#endif -#if defined(USE_CANIF) - .CanIfConfig = &CanIf_Config, -#endif -#if defined(USE_CANSM) - .CanSMConfig = &CanSM_Config, -#endif -#if defined(USE_CANNM) - .CanNmConfig = &CanNm_Config, -#endif -#if defined(USE_UDPNM) - .UdpNmConfig = &UdpNm_Config, -#endif -#if defined(USE_COM) - .ComConfig = &ComConfiguration, -#endif -#if defined(USE_COMM) - .ComMConfig = &ComM_Config, -#endif -#if defined(USE_J1939TP) - .J1939TpConfig = &J1939Tp_Config, -#endif -#if defined(USE_NM) - .NmConfig = &Nm_Config, -#endif -#if defined(USE_PDUR) - .PduRConfig = &PduR_Config, -#endif -#if defined(USE_J1939TP) - .J1939TpConfig = &J1939Tp_Config, -#endif -#if defined(USE_DMA) - .DmaConfig = DmaConfig, -#endif -#if defined(USE_ADC) - .AdcConfig = AdcConfig, -#endif -#if defined(USE_PWM) - .PwmConfig = &PwmConfig, -#endif -#if defined(USE_WDG) - .WdgConfig = &WdgConfig, -#endif -#if defined(USE_WDGM) - .WdgMConfig = &WdgMConfig, -#endif -#if defined(USE_WDGIF) - .WdgIfConfig = &WdgIfConfig, -#endif -#if defined(USE_GPT) - .GptConfig = GptConfigData, -#endif -#if defined(USE_FLS) - .FlashConfig = FlsConfigSet, -#endif -#if defined(USE_EEP) - .EepConfig = EepConfigData, -#endif -#if defined(USE_SPI) - .SpiConfig = &SpiConfigData, -#endif -}; diff --git a/boards/ti_tms570ls/examples/rte_simple/config/EcuM_Callout_template.c b/boards/ti_tms570ls/examples/rte_simple/config/EcuM_Callout_template.c deleted file mode 100644 index bed4681b..00000000 --- a/boards/ti_tms570ls/examples/rte_simple/config/EcuM_Callout_template.c +++ /dev/null @@ -1,330 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Callout_template.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): TMS570 -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -*/ - - -#include "EcuM.h" -#include "EcuM_Cbk.h" -#include "Det.h" -#if defined(USE_DEM) -#include "Dem.h" -#endif -#if defined(USE_MCU) -#include "Mcu.h" -#endif -#if defined(USE_GPT) -#include "Gpt.h" -#endif -#if defined(USE_CAN) -#include "Can.h" -#endif -#if defined(USE_CANIF) -#include "CanIf.h" -#endif -#if defined(USE_PDUR) -#include "PduR.h" -#endif -#if defined(USE_COM) -#include "Com.h" -#endif -#if defined(USE_CANTP) -#include "CanTp.h" -#endif -#if defined(USE_J1939TP) -#include "J1939Tp.h" -#endif -#if defined(USE_DCM) -#include "Dcm.h" -#endif -#if defined(USE_PWM) -#include "Pwm.h" -#endif -#if defined(USE_IOHWAB) -#include "IoHwAb.h" -#endif -#if defined(USE_FLS) -#include "Fls.h" -#endif -#if defined(USE_EEP) -#include "Eep.h" -#endif -#if defined(USE_FEE) -#include "Fee.h" -#endif -#if defined(USE_EA) -#include "Ea.h" -#endif -#if defined(USE_NVM) -#include "NvM.h" -#endif -#if defined(USE_COMM) -#include "ComM.h" -#endif -#if defined(USE_NM) -#include "Nm.h" -#endif -#if defined(USE_CANNM) -#include "CanNm.h" -#endif -#if defined(USE_CANSM) -#include "CanSM.h" -#endif -#if defined(USE_UDPNM) -#include "UdpNm.h" -#endif -#if defined(USE_LINSM) -#include "LinSM.h" -#endif -#if defined(USE_SPI) -#include "Spi.h" -#endif -#if defined(USE_WDG) -#include "Wdg.h" -#endif -#if defined(USE_WDGM) -#include "WdgM.h" -#endif - -void EcuM_AL_DriverInitZero(void) -{ - Det_Init();/** @req EcuM2783 */ - Det_Start();/** @req EcuM2634 */ -} - -EcuM_ConfigType* EcuM_DeterminePbConfiguration(void) -{ - return &EcuMConfig; -} - -void EcuM_AL_DriverInitOne(const EcuM_ConfigType *ConfigPtr) -{ - (void)ConfigPtr; - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_MCU) - Mcu_Init(ConfigPtr->McuConfig); - - /* Set up default clock (Mcu_InitClock requires initRun==1) */ - /* Ignoring return value */ - (void) Mcu_InitClock( ConfigPtr->McuConfig->McuDefaultClockSettings ); - - // Wait for PLL to sync. - while (Mcu_GetPllStatus() != MCU_PLL_LOCKED) - { - ; - } -#endif - -#if defined(USE_DEM) - // Preinitialize DEM - Dem_PreInit(); -#endif - -#if defined(USE_PORT) - // Setup Port - Port_Init(ConfigPtr->PortConfig); -#endif - - -#if defined(USE_GPT) - // Setup the GPT - Gpt_Init(ConfigPtr->GptConfig); -#endif - - // Setup watchdog -#if defined(USE_WDG) - Wdg_Init(ConfigPtr->WdgConfig); -#endif -#if defined(USE_WDGM) - WdgM_Init(ConfigPtr->WdgMConfig); -#endif - -#if defined(USE_DMA) - // Setup DMA - Dma_Init(ConfigPtr->DmaConfig); -#endif - -#if defined(USE_ADC) - // Setup ADC - Adc_Init(ConfigPtr->AdcConfig); -#endif - - // Setup ICU - // TODO - - // Setup PWM -#if defined(USE_PWM) - // Setup PWM - Pwm_Init(ConfigPtr->PwmConfig); -#endif -} - -void EcuM_AL_DriverInitTwo(const EcuM_ConfigType* ConfigPtr) -{ - (void)ConfigPtr; - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_SPI) - // Setup SPI - Spi_Init(ConfigPtr->SpiConfig); -#endif - -#if defined(USE_EEP) - // Setup EEP - Eep_Init(ConfigPtr->EepConfig); -#endif - -#if defined(USE_FLS) - // Setup Flash - Fls_Init(ConfigPtr->FlashConfig); -#endif - -#if defined(USE_FEE) - // Setup FEE - Fee_Init(); -#endif - -#if defined(USE_EA) - // Setup EA - Ea_Init(); -#endif - -#if defined(USE_NVM) - // Setup NVRAM Manager and start the read all job - NvM_Init(); - NvM_ReadAll(); -#endif - - // Setup CAN tranceiver - // TODO - -#if defined(USE_CAN) - // Setup Can driver - Can_Init(ConfigPtr->CanConfig); -#endif - -#if defined(USE_CANIF) - // Setup CanIf - CanIf_Init(ConfigPtr->CanIfConfig); -#endif - -#if defined(USE_CANTP) - // Setup CAN TP - CanTp_Init(); -#endif - -#if defined(USE_CANSM) - CanSM_Init(ConfigPtr->CanSMConfig); -#endif - -#if defined(USE_J1939TP) - // Setup J1939Tp - J1939Tp_Init(ConfigPtr->J1939TpConfig); -#endif - - - // Setup LIN - // TODO - -#if defined(USE_PDUR) - // Setup PDU Router - PduR_Init(ConfigPtr->PduRConfig); -#endif - -#if defined(USE_CANNM) - // Setup Can Network Manager - CanNm_Init(ConfigPtr->CanNmConfig); -#endif - -#if defined(USE_UDPNM) - // Setup Udp Network Manager - UdpNm_Init(ConfigPtr->UdpNmConfig); -#endif - -#if defined(USE_NM) - // Setup Network Management Interface - Nm_Init(ConfigPtr->NmConfig); -#endif - -#if defined(USE_COM) - // Setup COM layer - Com_Init(ConfigPtr->ComConfig); -#endif - -#if defined(USE_DCM) - // Setup DCM - Dcm_Init(); -#endif - -#if defined(USE_IOHWAB) - // Setup IO hardware abstraction layer - IoHwAb_Init(); -#endif - -} - -void EcuM_AL_DriverInitThree(const EcuM_ConfigType* ConfigPtr) -{ - (void)ConfigPtr; - //lint --e{715} PC-Lint (715) - ConfigPtr usage depends on configuration of modules - -#if defined(USE_DEM) - // Setup DEM - Dem_Init(); -#endif - -#if defined(USE_COMM) - // Setup Communication Manager - ComM_Init(ConfigPtr->ComMConfig); -#endif -} - -void EcuM_OnEnterRUN(void) -{ - -} - -void EcuM_OnExitRun(void) -{ - -} - -void EcuM_OnExitPostRun(void) -{ - -} - -void EcuM_OnPrepShutdown(void) -{ - -} - -void EcuM_OnGoSleep(void) -{ - -} - -void EcuM_OnGoOffOne(void) -{ - -} - -void EcuM_OnGoOffTwo(void) -{ - -} - -void EcuM_AL_SwitchOff(void) -{ - -} diff --git a/boards/ti_tms570ls/examples/rte_simple/config/EcuM_Cfg.c b/boards/ti_tms570ls/examples/rte_simple/config/EcuM_Cfg.c deleted file mode 100644 index 166b72c7..00000000 --- a/boards/ti_tms570ls/examples/rte_simple/config/EcuM_Cfg.c +++ /dev/null @@ -1,119 +0,0 @@ -/* -* Configuration of module: EcuM (EcuM_Cfg.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): TMS570 -* -* Module vendor: ArcCore -* Generator version: 2.0.2 -* -* Generated by Arctic Studio (http://arccore.com) -*/ - - - -#include "EcuM.h" - - -#if defined(USE_CANSM) -extern const CanSM_ConfigType CanSM_Config; -#endif -#if defined(USE_NM) -extern const Nm_ConfigType Nm_Config; -#endif -#if defined(USE_CANNM) -extern const CanNm_ConfigType CanNm_Config; -#endif -#if defined(USE_UDPNM) -extern const UdpNm_ConfigType UdpNm_Config; -#endif -#if defined(USE_COMM) -extern const ComM_ConfigType ComM_Config; -#endif - -#if defined(USE_J1939TP) -extern const J1939Tp_ConfigType J1939Tp_Config; -#endif - - -EcuM_ConfigType EcuMConfig = -{ - .EcuMDefaultShutdownTarget = ECUM_STATE_RESET, - .EcuMDefaultSleepMode = 0, // Don't care - .EcuMDefaultAppMode = OSDEFAULTAPPMODE, - .EcuMNvramReadAllTimeout = ECUM_NVRAM_READALL_TIMEOUT, - .EcuMNvramWriteAllTimeout = ECUM_NVRAM_WRITEALL_TIMEOUT, - .EcuMRunMinimumDuration = ECUM_NVRAM_MIN_RUN_DURATION, - -#if defined(USE_MCU) - .McuConfig = McuConfigData, -#endif -#if defined(USE_PORT) - .PortConfig = &PortConfigData, -#endif -#if defined(USE_CAN) - .CanConfig = &CanConfigData, -#endif -#if defined(USE_CANIF) - .CanIfConfig = &CanIf_Config, -#endif -#if defined(USE_CANSM) - .CanSMConfig = &CanSM_Config, -#endif -#if defined(USE_CANNM) - .CanNmConfig = &CanNm_Config, -#endif -#if defined(USE_UDPNM) - .UdpNmConfig = &UdpNm_Config, -#endif -#if defined(USE_COM) - .ComConfig = &ComConfiguration, -#endif -#if defined(USE_COMM) - .ComMConfig = &ComM_Config, -#endif -#if defined(USE_J1939TP) - .J1939TpConfig = &J1939Tp_Config, -#endif -#if defined(USE_NM) - .NmConfig = &Nm_Config, -#endif -#if defined(USE_PDUR) - .PduRConfig = &PduR_Config, -#endif -#if defined(USE_J1939TP) - .J1939TpConfig = &J1939Tp_Config, -#endif -#if defined(USE_DMA) - .DmaConfig = DmaConfig, -#endif -#if defined(USE_ADC) - .AdcConfig = AdcConfig, -#endif -#if defined(USE_PWM) - .PwmConfig = &PwmConfig, -#endif -#if defined(USE_WDG) - .WdgConfig = &WdgConfig, -#endif -#if defined(USE_WDGM) - .WdgMConfig = &WdgMConfig, -#endif -#if defined(USE_WDGIF) - .WdgIfConfig = &WdgIfConfig, -#endif -#if defined(USE_GPT) - .GptConfig = GptConfigData, -#endif -#if defined(USE_FLS) - .FlashConfig = FlsConfigSet, -#endif -#if defined(USE_EEP) - .EepConfig = EepConfigData, -#endif -#if defined(USE_SPI) - .SpiConfig = &SpiConfigData, -#endif -}; -- 2.39.2