From 7345b9b8ace57a44e5a422256c45f2d6cb3e7435 Mon Sep 17 00:00:00 2001 From: jcar Date: Thu, 19 Apr 2012 17:46:27 +0200 Subject: [PATCH] Generated and built in-tree examples with mpc5668 and tested --- .../examples/os_simple/build_config.mk | 15 +- .../examples/os_simple/config/Det_Cfg.h | 37 + .../examples/os_simple/config/EcuM.mk | 5 + .../os_simple/config/EcuM_Callout_Stubs.c | 332 +++++++++ .../examples/os_simple/config/EcuM_Cfg.h | 41 ++ .../os_simple/config/EcuM_Generated_Types.h | 178 +++++ .../examples/os_simple/config/EcuM_PBcfg.c | 119 +++ .../examples/os_simple/config/Fls_Cfg.c | 157 ---- .../examples/os_simple/config/Fls_Cfg.h | 126 ---- .../examples/os_simple/config/Mcu_Cfg.c | 2 +- .../examples/os_simple/config/Mcu_Cfg.h | 2 +- .../examples/os_simple/config/Os_Cfg.c | 4 +- .../examples/os_simple/config/Os_Cfg.h | 2 +- .../examples/os_simple/config/Port_Cfg.c | 546 -------------- .../examples/os_simple/config/Port_Cfg.h | 92 --- .../os_simple/os_simple_mpc5668_gkit.arxml | 690 ++++++++++++++++++ 16 files changed, 1420 insertions(+), 928 deletions(-) create mode 100644 boards/mpc5668_gkit/examples/os_simple/config/Det_Cfg.h create mode 100644 boards/mpc5668_gkit/examples/os_simple/config/EcuM.mk create mode 100644 boards/mpc5668_gkit/examples/os_simple/config/EcuM_Callout_Stubs.c create mode 100644 boards/mpc5668_gkit/examples/os_simple/config/EcuM_Cfg.h create mode 100644 boards/mpc5668_gkit/examples/os_simple/config/EcuM_Generated_Types.h create mode 100644 boards/mpc5668_gkit/examples/os_simple/config/EcuM_PBcfg.c delete mode 100644 boards/mpc5668_gkit/examples/os_simple/config/Fls_Cfg.c delete mode 100644 boards/mpc5668_gkit/examples/os_simple/config/Fls_Cfg.h delete mode 100644 boards/mpc5668_gkit/examples/os_simple/config/Port_Cfg.c delete mode 100644 boards/mpc5668_gkit/examples/os_simple/config/Port_Cfg.h create mode 100644 boards/mpc5668_gkit/examples/os_simple/os_simple_mpc5668_gkit.arxml diff --git a/boards/mpc5668_gkit/examples/os_simple/build_config.mk b/boards/mpc5668_gkit/examples/os_simple/build_config.mk index c5777cdf..c3e5fd22 100644 --- a/boards/mpc5668_gkit/examples/os_simple/build_config.mk +++ b/boards/mpc5668_gkit/examples/os_simple/build_config.mk @@ -1,4 +1,15 @@ +# Version of build system +REQUIRED_BUILD_SYSTEM_VERSION=1.0.0 + +# Get configuration makefiles +-include ../config/*.mk +-include ../config/$(BOARDDIR)/*.mk + + +# Project settings + +SELECT_CONSOLE = RAMLOG + +SELECT_OPT = OPT_DEBUG -#CFG+=VLE -MOD_USE+= DET ECUM MCU KERNEL RAMLOG \ No newline at end of file diff --git a/boards/mpc5668_gkit/examples/os_simple/config/Det_Cfg.h b/boards/mpc5668_gkit/examples/os_simple/config/Det_Cfg.h new file mode 100644 index 00000000..79732c84 --- /dev/null +++ b/boards/mpc5668_gkit/examples/os_simple/config/Det_Cfg.h @@ -0,0 +1,37 @@ +/* +* Configuration of module: Det (Det_Cfg.h) +* +* Created by: +* Copyright: +* +* Configured for (MCU): MPC5668 +* +* Module vendor: ArcCore +* Generator version: 2.0.1 +* +* Generated by Arctic Studio (http://arccore.com) +*/ + + +#if !(((DET_SW_MAJOR_VERSION == 1) && (DET_SW_MINOR_VERSION == 0)) ) +#error Det: Configuration file expected BSW module version to be 1.0.* +#endif + +/* + * Development Error Tracer driver + * + * Specification: Autosar v2.0.1, Final + * + */ +#ifndef DET_CFG_H +#define DET_CFG_H + +#define DET_ENABLE_CALLBACKS STD_OFF // Enable to use callback on errors +#define DET_USE_RAMLOG STD_ON // Enable to log DET errors to ramlog +#define DET_WRAP_RAMLOG STD_ON // The ramlog wraps around when reaching the end +#define DET_USE_STDERR STD_OFF // Enable to get DET errors on stderr +#define DET_DEINIT_API STD_OFF // Enable/Disable the Det_DeInit function +#define DET_RAMLOG_SIZE (16) // Number of entries in ramlog +#define DET_NUMBER_OF_CALLBACKS (5) // Number of callbacks + +#endif /* DET_CFG_H */ diff --git a/boards/mpc5668_gkit/examples/os_simple/config/EcuM.mk b/boards/mpc5668_gkit/examples/os_simple/config/EcuM.mk new file mode 100644 index 00000000..f6eeffc9 --- /dev/null +++ b/boards/mpc5668_gkit/examples/os_simple/config/EcuM.mk @@ -0,0 +1,5 @@ + +MOD_USE += KERNEL DET ECUM MCU + +def-y += ECUM_USE_SERVICE_PORTS=STDOFF + diff --git a/boards/mpc5668_gkit/examples/os_simple/config/EcuM_Callout_Stubs.c b/boards/mpc5668_gkit/examples/os_simple/config/EcuM_Callout_Stubs.c new file mode 100644 index 00000000..ebbf7a42 --- /dev/null +++ b/boards/mpc5668_gkit/examples/os_simple/config/EcuM_Callout_Stubs.c @@ -0,0 +1,332 @@ +/* +* Configuration of module: EcuM (EcuM_Callout_Stubs.c) +* +* Created by: +* Copyright: +* +* Configured for (MCU): MPC5668 +* +* Module vendor: ArcCore +* Generator version: 2.0.2 +* +* Generated by Arctic Studio (http://arccore.com) +*/ + + +#include "EcuM.h" +#include "EcuM_Generated_Types.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 */ +} + +extern EcuM_ConfigType EcuMConfig; + +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/mpc5668_gkit/examples/os_simple/config/EcuM_Cfg.h b/boards/mpc5668_gkit/examples/os_simple/config/EcuM_Cfg.h new file mode 100644 index 00000000..d2a4470f --- /dev/null +++ b/boards/mpc5668_gkit/examples/os_simple/config/EcuM_Cfg.h @@ -0,0 +1,41 @@ +/* +* Configuration of module: EcuM (EcuM_Cfg.h) +* +* Created by: +* Copyright: +* +* Configured for (MCU): MPC5668 +* +* Module vendor: ArcCore +* Generator version: 2.0.2 +* +* Generated by Arctic Studio (http://arccore.com) +*/ + + +#if !(((ECUM_SW_MAJOR_VERSION == 2) && (ECUM_SW_MINOR_VERSION == 0)) ) +#error EcuM: Configuration file expected BSW module version to be 2.0.* +#endif + + + +#ifndef ECUM_CFG_H_ +#define ECUM_CFG_H_ + +#define ECUM_VERSION_INFO_API STD_ON +#define ECUM_DEV_ERROR_DETECT STD_ON + +#define ECUM_MAIN_FUNCTION_PERIOD (200) +#define ECUM_NVRAM_READALL_TIMEOUT (10000) +#define ECUM_NVRAM_WRITEALL_TIMEOUT (10000) +#define ECUM_NVRAM_MIN_RUN_DURATION (10000) + + +typedef enum { + ECUM_USER_EcuMUserConfig, + ECUM_USER_ENDMARK // Must be the last in list! +} EcuM_UserList; + + +#endif /*ECUM_CFG_H_*/ + diff --git a/boards/mpc5668_gkit/examples/os_simple/config/EcuM_Generated_Types.h b/boards/mpc5668_gkit/examples/os_simple/config/EcuM_Generated_Types.h new file mode 100644 index 00000000..97f0ac68 --- /dev/null +++ b/boards/mpc5668_gkit/examples/os_simple/config/EcuM_Generated_Types.h @@ -0,0 +1,178 @@ +/* +* Configuration of module: EcuM (EcuM_Generated_Types.h) +* +* Created by: +* Copyright: +* +* Configured for (MCU): MPC5668 +* +* Module vendor: ArcCore +* Generator version: 2.0.2 +* +* Generated by Arctic Studio (http://arccore.com) +*/ + + +#if !(((ECUM_SW_MAJOR_VERSION == 2) && (ECUM_SW_MINOR_VERSION == 0)) ) +#error EcuM: Configuration file expected BSW module version to be 2.0.* +#endif + + +#ifndef _ECUM_GENERATED_TYPES_H_ +#define _ECUM_GENERATED_TYPES_H_ + +#if (ECUM_USE_SERVICE_PORTS == STD_ON) && defined(USE_RTE) +#include "Rte_EcuM.h" +#endif + +#include "EcuM_Types.h" + +#if defined(USE_MCU) +#include "Mcu.h" +#endif +#if defined(USE_PORT) +#include "Port.h" +#endif +#if defined(USE_CAN) +#include "Can.h" +#endif +#if defined(USE_CANIF) +#include "CanIf.h" +#endif +#if defined(USE_PWM) +#include "Pwm.h" +#endif +#if defined(USE_COM) +#include "Com.h" +#endif +#if defined(USE_PDUR) +#include "PduR.h" +#endif +#if defined(USE_DMA) +#include "Dma.h" +#endif +#if defined(USE_ADC) +#include "Adc.h" +#endif +#if defined(USE_GPT) +#include "Gpt.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_J1939TP) +#include "J1939Tp.h" +#endif +#if defined(USE_UDPNM) +#include "UdpNm.h" +#endif +#if defined(USE_LINSM) +#include "LinSM.h" +#endif +#if defined(USE_FLS) +#include "Fls.h" +#endif +#if defined(USE_EEP) +#include "Eep.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 +#if defined(USE_WDGIF) +#include "WdgIf.h" +#endif + + +typedef struct +{ + EcuM_StateType EcuMDefaultShutdownTarget; + uint8 EcuMDefaultSleepMode; + AppModeType EcuMDefaultAppMode; + uint32 EcuMRunMinimumDuration; + uint32 EcuMNvramReadAllTimeout; + uint32 EcuMNvramWriteAllTimeout; + +#if defined(USE_MCU) + const Mcu_ConfigType* McuConfig; +#endif +#if defined(USE_PORT) + const Port_ConfigType* PortConfig; +#endif +#if defined(USE_CAN) + const Can_ConfigType* CanConfig; +#endif +#if defined(USE_CANIF) + const CanIf_ConfigType* CanIfConfig; +#endif +#if defined(USE_CANSM) + const CanSM_ConfigType* CanSMConfig; +#endif +#if defined(USE_NM) + const Nm_ConfigType* NmConfig; +#endif +#if defined(USE_CANNM) + const CanNm_ConfigType* CanNmConfig; +#endif +#if defined(USE_UDPNM) + const UdpNm_ConfigType* UdpNmConfig; +#endif +#if defined(USE_COMM) + const ComM_ConfigType* ComMConfig; +#endif +#if defined(USE_COM) + const Com_ConfigType* ComConfig; +#endif +#if defined(USE_J1939TP) + const J1939Tp_ConfigType* J1939TpConfig; +#endif +#if defined(USE_PDUR) + const PduR_PBConfigType* PduRConfig; +#endif +#if defined(USE_PWM) + const Pwm_ConfigType* PwmConfig; +#endif +#if defined(USE_DMA) + const Dma_ConfigType* DmaConfig; +#endif +#if defined(USE_ADC) + const Adc_ConfigType* AdcConfig; +#endif +#if defined(USE_GPT) + const Gpt_ConfigType* GptConfig; +#endif +#if defined(USE_FLS) + const Fls_ConfigType* FlashConfig; +#endif +#if defined(USE_EEP) + const Eep_ConfigType* EepConfig; +#endif +#if defined(USE_SPI) + const Spi_ConfigType* SpiConfig; +#endif +#if defined(USE_WDG) + const Wdg_ConfigType* WdgConfig; +#endif +#if defined(USE_WDGIF) + const WdgIf_ConfigType* WdgIfConfig; +#endif +#if defined(USE_WDGM) + const WdgM_ConfigType* WdgMConfig; +#endif +} EcuM_ConfigType; + +#endif /*_ECUM_GENERATED_TYPES_H_*/ diff --git a/boards/mpc5668_gkit/examples/os_simple/config/EcuM_PBcfg.c b/boards/mpc5668_gkit/examples/os_simple/config/EcuM_PBcfg.c new file mode 100644 index 00000000..194e498a --- /dev/null +++ b/boards/mpc5668_gkit/examples/os_simple/config/EcuM_PBcfg.c @@ -0,0 +1,119 @@ +/* +* Configuration of module: EcuM (EcuM_PBcfg.c) +* +* Created by: +* Copyright: +* +* Configured for (MCU): MPC5668 +* +* Module vendor: ArcCore +* Generator version: 2.0.2 +* +* Generated by Arctic Studio (http://arccore.com) +*/ + + + +#include "EcuM.h" +#include "EcuM_Generated_Types.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/mpc5668_gkit/examples/os_simple/config/Fls_Cfg.c b/boards/mpc5668_gkit/examples/os_simple/config/Fls_Cfg.c deleted file mode 100644 index 52e0329e..00000000 --- a/boards/mpc5668_gkit/examples/os_simple/config/Fls_Cfg.c +++ /dev/null @@ -1,157 +0,0 @@ -/* -------------------------------- Arctic Core ------------------------------ - * Arctic Core - the open source AUTOSAR platform http://arccore.com - * - * Copyright (C) 2009 ArcCore AB - * - * This source code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 as published by the - * Free Software Foundation; See . - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * for more details. - * -------------------------------- Arctic Core ------------------------------*/ - -#include "Fls.h" -#include "flash.h" -#include - - -#if defined(CFG_MPC5606S) - -/* TODO: This can actually be read from the flash instead */ -const FlashType flashInfo[] = { - /* NO RWW */ - - /* Bank 0, Array 0 (LOW) */ - [0].sectCnt = 8, - [0].bankSize = 0x80000, -// [0].bankRange = BANK_RANGE_CODE_LOW, - [0].regBase = 0xC3F88000UL, - [0].sectAddr[0] = 0, /* 0, B0F0, LOW */ - [0].addrSpace[0] = ADDR_SPACE_SET(ADDR_SPACE_LOW) + 0, - [0].sectAddr[1] = 0x08000, /* 1, B0F1, LOW */ - [0].addrSpace[1] = ADDR_SPACE_SET(ADDR_SPACE_LOW) + 1, - [0].sectAddr[2] = 0x0c000, /* 2, B0F2, LOW */ - [0].addrSpace[2] = ADDR_SPACE_SET(ADDR_SPACE_LOW) + 2, - [0].sectAddr[3] = 0x10000, /* 3, B0F3, LOW */ - [0].addrSpace[3] = ADDR_SPACE_SET(ADDR_SPACE_LOW) + 3, - [0].sectAddr[4] = 0x18000, /* 4, B0F4, LOW */ - [0].addrSpace[4] = ADDR_SPACE_SET(ADDR_SPACE_LOW) + 4, - [0].sectAddr[5] = 0x20000, /* 5, B0F5, LOW */ - [0].addrSpace[5] = ADDR_SPACE_SET(ADDR_SPACE_LOW) + 5, - [0].sectAddr[6] = 0x40000, /* 6, B0F6, MID */ - [0].addrSpace[6] = ADDR_SPACE_SET(ADDR_SPACE_MID) + 0, - [0].sectAddr[7] = 0x60000, /* 7, B0F7, MID */ - [0].addrSpace[7] = ADDR_SPACE_SET(ADDR_SPACE_MID) + 1, - [0].sectAddr[8] = 0x80000, /* End, NOT a sector */ - - /* Bank 1, Data */ - [1].sectCnt = 4, - [1].bankSize = 0x810000 - 0x800000, - [1].regBase = 0xC3F8C000UL, - [1].sectAddr[0] = 0x800000, /* LOW */ - [1].addrSpace[0] = ADDR_SPACE_SET(ADDR_SPACE_LOW) + 0, - [1].sectAddr[1] = 0x804000, /* LOW */ - [1].addrSpace[1] = ADDR_SPACE_SET(ADDR_SPACE_LOW) + 1, - [1].sectAddr[2] = 0x808000, /* LOW */ - [1].addrSpace[2] = ADDR_SPACE_SET(ADDR_SPACE_LOW) + 2, - [1].sectAddr[3] = 0x80c000, /* LOW */ - [1].addrSpace[3] = ADDR_SPACE_SET(ADDR_SPACE_LOW) + 3, - [1].sectAddr[4] = 0x810000, /* End, NOT a sector */ - - /* Bank 2, Array 1 (MID)*/ - [2].sectCnt = 4, - [2].bankSize = 0x100000-0x80000, - [2].regBase = 0xC3FB0000UL, - [2].sectAddr[0] = 0x80000, /* 0, B2F0, LOW */ - [2].addrSpace[0] = ADDR_SPACE_SET(ADDR_SPACE_LOW) + 0, - [2].sectAddr[1] = 0xa0000, /* 1, B2F1, LOW */ - [2].addrSpace[1] = ADDR_SPACE_SET(ADDR_SPACE_LOW) + 1, - [2].sectAddr[2] = 0xc0000, /* 2, B2F2, MID */ - [2].addrSpace[2] = ADDR_SPACE_SET(ADDR_SPACE_LOW) + 2, - [2].sectAddr[3] = 0xe0000, /* 3, B2F3, MID */ - [2].addrSpace[3] = ADDR_SPACE_SET(ADDR_SPACE_LOW) + 3, - [2].sectAddr[4] = 0x100000, /* End, NOT a sector */ -}; -#elif defined(CFG_MPC5668G) - /* RWW between partitions* - * - * LOW 8*16KB + 2*64KB = 256KB - * MID 2*128KB = 256KB - * HIGH 2*256KB = 1.5MB - * 2*256KB - * 2*256KB - */ - -const FlashType flashInfo[] = { - /* LOW */ - [0].sectCnt = 8, - [0].bankSize = 0x200000, - [0].regBase = 0xffff8000UL, - [0].sectAddr[0] = 0, /* 0, B0F0, LOW */ - [0].addrSpace[0] = ADDR_SPACE(0, ADDR_SPACE_LOW, 1 ), - [0].sectAddr[1] = 0x00004000, /* 1, B0F1, LOW */ - [0].addrSpace[1] = ADDR_SPACE(1, ADDR_SPACE_LOW, 1 ), - [0].sectAddr[2] = 0x00008000, /* 2, B0F2, LOW */ - [0].addrSpace[2] = ADDR_SPACE(2, ADDR_SPACE_LOW, 1 ), - [0].sectAddr[3] = 0x0000c000, /* 3, B0F3, LOW */ - [0].addrSpace[3] = ADDR_SPACE(3, ADDR_SPACE_LOW, 1 ), - [0].sectAddr[4] = 0x00010000, /* 4, B0F4, LOW */ - [0].addrSpace[4] = ADDR_SPACE(4, ADDR_SPACE_LOW, 2 ), - [0].sectAddr[5] = 0x00014000, /* 5, B0F5, LOW */ - [0].addrSpace[5] = ADDR_SPACE(5, ADDR_SPACE_LOW, 2 ), - [0].sectAddr[6] = 0x00018000, /* 6, B0F6, LOW */ - [0].addrSpace[6] = ADDR_SPACE(6, ADDR_SPACE_LOW, 2 ), - [0].sectAddr[7] = 0x0001c000, /* 7, B0F7, LOW */ - [0].addrSpace[7] = ADDR_SPACE(7, ADDR_SPACE_LOW, 2 ), - [0].sectAddr[8] = 0x00020000, /* 8, B0F8, LOW */ - [0].addrSpace[8] = ADDR_SPACE(8, ADDR_SPACE_LOW, 3 ), - [0].sectAddr[9] = 0x00030000, /* 9, B0F9, LOW */ - [0].addrSpace[9] = ADDR_SPACE(9, ADDR_SPACE_LOW, 3 ), - - /* MID */ - [0].sectAddr[10] = 0x00040000, /* 0, B0F9, LOW */ - [0].addrSpace[10] = ADDR_SPACE(0, ADDR_SPACE_MID, 4 ), - [0].sectAddr[11] = 0x00060000, /* 1, B0F9, LOW */ - [0].addrSpace[11] = ADDR_SPACE(1, ADDR_SPACE_MID, 4 ), - - /* HIGH */ - [0].sectAddr[12] = 0x00080000, /* 0, B0F9, LOW */ - [0].addrSpace[12] = ADDR_SPACE(0, ADDR_SPACE_HIGH, 5 ), - [0].sectAddr[13] = 0x000c0000, /* 1, B0F9, LOW */ - [0].addrSpace[13] = ADDR_SPACE(1, ADDR_SPACE_HIGH, 5 ), - [0].sectAddr[14] = 0x00100000, /* 2, B0F9, LOW */ - [0].addrSpace[14] = ADDR_SPACE(2, ADDR_SPACE_HIGH, 6 ), - [0].sectAddr[15] = 0x00140000, /* 3, B0F9, LOW */ - [0].addrSpace[15] = ADDR_SPACE(3, ADDR_SPACE_HIGH, 6 ), - [0].sectAddr[16] = 0x00180000, /* 4, B0F9, LOW */ - [0].addrSpace[16] = ADDR_SPACE(4, ADDR_SPACE_HIGH, 7 ), - [0].sectAddr[17] = 0x001c0000, /* 5, B0F9, LOW */ - [0].addrSpace[17] = ADDR_SPACE(5, ADDR_SPACE_HIGH, 7 ), - [0].sectAddr[18] = 0x00200000, /* End, NOT a sector */ -}; -#else -#error CPU NOT supported -#endif - - -const Fls_ConfigType FlsConfigSet[]= -{ - { -#if ( FLS_AC_LOAD_ON_JOB_START == STD_ON) - .FlsAcWrite = __FLS_ERASE_RAM__, - .FlsAcErase = __FLS_WRITE_RAM__, -#else - .FlsAcWrite = NULL, - .FlsAcErase = NULL, -#endif - .FlsJobEndNotification = NULL, - .FlsJobErrorNotification = NULL, - .FlsInfo = flashInfo, -// .FlsSectorList = &fls_evbSectorList[0], -// .FlsSectorListSize = sizeof(fls_evbSectorList)/sizeof(Fls_SectorType), -// .FlsBlockToPartitionMap = Fls_BlockToPartitionMap, - } -}; diff --git a/boards/mpc5668_gkit/examples/os_simple/config/Fls_Cfg.h b/boards/mpc5668_gkit/examples/os_simple/config/Fls_Cfg.h deleted file mode 100644 index 670681d0..00000000 --- a/boards/mpc5668_gkit/examples/os_simple/config/Fls_Cfg.h +++ /dev/null @@ -1,126 +0,0 @@ -/* -------------------------------- Arctic Core ------------------------------ - * Arctic Core - the open source AUTOSAR platform http://arccore.com - * - * Copyright (C) 2009 ArcCore AB - * - * This source code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 as published by the - * Free Software Foundation; See . - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * for more details. - * -------------------------------- Arctic Core ------------------------------*/ - -/** @addtogroup Fls Flash Driver - * @{ */ - -/** @file Fls_Cfg.h - * Definitions of configuration parameters for Flash Driver. - */ - - - -#ifndef FLS_CFG_H_ -#define FLS_CFG_H_ - -#define USE_FLS_INFO STD_ON - - -/* STD container : Fls - * FlsConfigSet 1..* - * FlsGeneral 1 - * FlsPublishedInformation 1 - */ - -#include "MemIf_Types.h" - -/* FlsGeneral, 3.0 OK */ -#define FLS_VARIANT_PB STD_OFF -#define FLS_AC_LOAD_ON_JOB_START STD_OFF /* NO SUPPORT */ -#define FLS_BASE_ADDRESS 0x00000000 -#define FLS_CANCEL_API STD_OFF /* NO SUPPORT */ -#define FLS_COMPARE_API STD_ON -#define FLS_DEV_ERROR_DETECT STD_ON -#define FLS_DRIVER_INDEX 0 /* NO SUPPORT */ -#define FLS_GET_JOB_RESULT_API STD_ON -#define FLS_GET_STATUS_API STD_ON -#define FLS_SET_MODE_API STD_OFF /* NO SUPPORT */ -//#define FLS_TOTAL_SIZE -#define FLS_USE_INTERRUPTS STD_OFF /* NO SUPPORT */ -#define FLS_VERSION_INFO_API STD_ON - -/* FlsPublishedInformation, 3.0 OK */ -#define FLS_AC_LOCATION_ERASE 0 /* NO SUPPORT */ -#define FLS_AC_LOCATION_WRITE 0 /* NO SUPPORT */ -#define FLS_AC_SIZE_ERASE 0 /* NO SUPPORT */ -#define FLS_AC_SIZE_WRITE 0 /* NO SUPPORT */ -#define FLS_ERASE_TIME 0 /* NO SUPPORT */ -#define FLS_ERASED_VALUE 0xff /* NO SUPPORT */ -#define FLS_EXPECTED_HW_ID 0 /* NO SUPPORT */ -#define FLS_SPECIFIED_ERASE_CYCLES 0 /* NO SUPPORT */ -#define FLS_WRITE_TIME 0 /* NO SUPPORT */ - -/* MCU Specific */ -#if defined(CFG_MPC5606S) -#define FLASH_BANK_CNT 3 -#define FLASH_MAX_SECTORS 15 -#define FLS_TOTAL_SIZE (48*1024) -#elif defined(CFG_MPC5668G) -#define FLASH_BANK_CNT 1 -#define FLASH_MAX_SECTORS 19 -#define FLS_TOTAL_SIZE (2*1024*1024) -#else -#error CPU not supported -#endif - -#if (USE_FLS_INFO==STD_ON) - -typedef struct Flash { - uint32_t size; - uint32_t sectCnt; - uint32_t bankSize; - uint32_t regBase; - uint32_t sectAddr[FLASH_MAX_SECTORS]; - uint16_t addrSpace[FLASH_MAX_SECTORS]; -} FlashType; - - -#else -typedef struct { - Fls_LengthType FlsNumberOfSectors; - Fls_LengthType FlsPageSize; - Fls_LengthType FlsSectorSize; - Fls_AddressType FlsSectorStartaddress; -} Fls_SectorType; -#endif - - -struct Flash; - -typedef struct { - void (*FlsAcErase)(); /* NO SUPPORT */ - void (*FlsAcWrite)(); /* NO SUPPORT */ - // FlsCallCycle N/A in core. - void (*FlsJobEndNotification)(); - void (*FlsJobErrorNotification)(); - uint32_t FlsMaxReadFastMode; /* NO SUPPORT */ - uint32_t FlsMaxReadNormalMode; /* NO SUPPORT */ - uint32_t FlsMaxWriteFastMode; /* NO SUPPORT */ - uint32_t FlsMaxWriteNormalMode; /* NO SUPPORT */ - uint32_t FlsProtection; /* NO SUPPORT */ -#if (USE_FLS_INFO==STD_ON) - const struct Flash *FlsInfo; -#else - const Fls_SectorType *FlsSectorList; -#endif -// const uint32 FlsSectorListSize; /* NO SUPPORT */ -} Fls_ConfigSetType; - -typedef Fls_ConfigSetType Fls_ConfigType; - -extern const Fls_ConfigSetType FlsConfigSet[]; - -#endif /*FLS_CFG_H_*/ -/** @} */ diff --git a/boards/mpc5668_gkit/examples/os_simple/config/Mcu_Cfg.c b/boards/mpc5668_gkit/examples/os_simple/config/Mcu_Cfg.c index 12b1ce15..1da543dc 100644 --- a/boards/mpc5668_gkit/examples/os_simple/config/Mcu_Cfg.c +++ b/boards/mpc5668_gkit/examples/os_simple/config/Mcu_Cfg.c @@ -7,7 +7,7 @@ * Configured for (MCU): MPC5668 * * Module vendor: ArcCore -* Generator version: 2.0.2 +* Generator version: 2.0.3 * * Generated by Arctic Studio (http://arccore.com) */ diff --git a/boards/mpc5668_gkit/examples/os_simple/config/Mcu_Cfg.h b/boards/mpc5668_gkit/examples/os_simple/config/Mcu_Cfg.h index 5371dbf3..21372e24 100644 --- a/boards/mpc5668_gkit/examples/os_simple/config/Mcu_Cfg.h +++ b/boards/mpc5668_gkit/examples/os_simple/config/Mcu_Cfg.h @@ -7,7 +7,7 @@ * Configured for (MCU): MPC5668 * * Module vendor: ArcCore -* Generator version: 2.0.2 +* Generator version: 2.0.3 * * Generated by Arctic Studio (http://arccore.com) */ diff --git a/boards/mpc5668_gkit/examples/os_simple/config/Os_Cfg.c b/boards/mpc5668_gkit/examples/os_simple/config/Os_Cfg.c index 6754e6ec..75d6de9e 100644 --- a/boards/mpc5668_gkit/examples/os_simple/config/Os_Cfg.c +++ b/boards/mpc5668_gkit/examples/os_simple/config/Os_Cfg.c @@ -29,7 +29,7 @@ OsTickType OsTickFreq = 1000; // ############################### DEBUG OUTPUT ############################# -uint32 os_dbg_mask = D_RESOURCE |D_SCHTBL |D_EVENT |D_TASK |D_ALARM; +uint32 os_dbg_mask = 0; // ############################### APPLICATIONS ############################# GEN_APPLICATION_HEAD = { @@ -132,7 +132,7 @@ GEN_TASK_HEAD = { /* name */"eTask2", /* priority */1, /* schedule */FULL, - /* name */FALSE, + /* name */TRUE, /* resource_int_p */NULL, /* resource mask */0, /* event mask */1, diff --git a/boards/mpc5668_gkit/examples/os_simple/config/Os_Cfg.h b/boards/mpc5668_gkit/examples/os_simple/config/Os_Cfg.h index 5a01ee3a..fd256feb 100644 --- a/boards/mpc5668_gkit/examples/os_simple/config/Os_Cfg.h +++ b/boards/mpc5668_gkit/examples/os_simple/config/Os_Cfg.h @@ -89,7 +89,7 @@ void eTask2( void ); #define OS_LINKED_RESOURCE_CNT 0 #define OS_APPLICATION_CNT 1 #define OS_SERVICE_CNT 0 /* ARCTICSTUDIO_GENERATOR_TODO */ -#define CFG_OS_DEBUG STD_ON +#define CFG_OS_DEBUG STD_OFF #define OS_SC1 STD_ON /* NOT CONFIGURABLE IN TOOLS */ #define OS_USE_APPLICATIONS STD_ON diff --git a/boards/mpc5668_gkit/examples/os_simple/config/Port_Cfg.c b/boards/mpc5668_gkit/examples/os_simple/config/Port_Cfg.c deleted file mode 100644 index ef12ae48..00000000 --- a/boards/mpc5668_gkit/examples/os_simple/config/Port_Cfg.c +++ /dev/null @@ -1,546 +0,0 @@ -/* -* Configuration of module: Port (Port_Cfg.c) -* -* Created by: -* Copyright: -* -* Configured for (MCU): MPC5668 -* -* Module vendor: ArcCore -* Generator version: 1.0.0 -* -* Generated by Arctic Studio (http://arccore.com) -*/ - - - -#include "Port.h" -#include "Port_Cfg.h" -#include - -const uint16_t PortPadConfigData[] = { - PORT_PCR_RESET, /* PCR 0 */ - PORT_PCR_RESET, /* PCR 1 */ - PORT_PCR_RESET, /* PCR 2 */ - PORT_PCR_RESET, /* PCR 3 */ - PORT_PCR_RESET, /* PCR 4 */ - PORT_PCR_RESET, /* PCR 5 */ - PORT_PCR_RESET, /* PCR 6 */ - PORT_PCR_RESET, /* PCR 7 */ - PORT_PCR_RESET, /* PCR 8 */ - PORT_PCR_RESET, /* PCR 9 */ - PORT_PCR_RESET, /* PCR 10 */ - PORT_PCR_RESET, /* PCR 11 */ - PORT_PCR_RESET, /* PCR 12 */ - PORT_PCR_RESET, /* PCR 13 */ - PORT_PCR_RESET, /* PCR 14 */ - PORT_PCR_RESET, /* PCR 15 */ - PORT_PCR_RESET, /* PCR 16 */ - PORT_PCR_RESET, /* PCR 17 */ - PORT_PCR_RESET, /* PCR 18 */ - PORT_PCR_RESET, /* PCR 19 */ - PORT_PCR_RESET, /* PCR 20 */ - PORT_PCR_RESET, /* PCR 21 */ - PORT_PCR_RESET, /* PCR 22 */ - PORT_PCR_RESET, /* PCR 23 */ - PORT_PCR_RESET, /* PCR 24 */ - PORT_PCR_RESET, /* PCR 25 */ - PORT_PCR_RESET, /* PCR 26 */ - PORT_PCR_RESET, /* PCR 27 */ - PORT_PCR_RESET, /* PCR 28 */ - PORT_PCR_RESET, /* PCR 29 */ - PORT_PCR_RESET, /* PCR 30 */ - PORT_PCR_RESET, /* PCR 31 */ - PORT_PCR_RESET, /* PCR 32 */ - PORT_PCR_RESET, /* PCR 33 */ - PORT_PCR_RESET, /* PCR 34 */ - PORT_PCR_RESET, /* PCR 35 */ - PORT_PCR_RESET, /* PCR 36 */ - PORT_PCR_RESET, /* PCR 37 */ - PORT_PCR_RESET, /* PCR 38 */ - PORT_PCR_RESET, /* PCR 39 */ - PORT_PCR_RESET, /* PCR 40 */ - PORT_PCR_RESET, /* PCR 41 */ - PORT_PCR_RESET, /* PCR 42 */ - PORT_PCR_RESET, /* PCR 43 */ - PORT_PCR_RESET, /* PCR 44 */ - PORT_PCR_RESET, /* PCR 45 */ - PORT_PCR_RESET, /* PCR 46 */ - PORT_PCR_RESET, /* PCR 47 */ - PORT_PCR_RESET, /* PCR 48 */ - PORT_PCR_RESET, /* PCR 49 */ - PORT_PCR_RESET, /* PCR 50 */ - PORT_PCR_RESET, /* PCR 51 */ - PORT_PCR_RESET, /* PCR 52 */ - PORT_PCR_RESET, /* PCR 53 */ - PORT_PCR_RESET, /* PCR 54 */ - PORT_PCR_RESET, /* PCR 55 */ - PORT_PCR_RESET, /* PCR 56 */ - PORT_PCR_RESET, /* PCR 57 */ - PORT_PCR_RESET, /* PCR 58 */ - PORT_PCR_RESET, /* PCR 59 */ - PORT_PCR_RESET, /* PCR 60 */ - PORT_PCR_RESET, /* PCR 61 */ - PORT_PCR_RESET, /* PCR 62 */ - PORT_PCR_RESET, /* PCR 63 */ - PORT_PCR_RESET, /* PCR 64 */ - PORT_PCR_RESET, /* PCR 65 */ - PORT_PCR_RESET, /* PCR 66 */ - PORT_PCR_RESET, /* PCR 67 */ - PORT_PCR_RESET, /* PCR 68 */ - PORT_PCR_RESET, /* PCR 69 */ - PORT_PCR_RESET, /* PCR 70 */ - PORT_PCR_RESET, /* PCR 71 */ - PORT_PCR_RESET, /* PCR 72 */ - PORT_PCR_RESET, /* PCR 73 */ - PORT_PCR_RESET, /* PCR 74 */ - PORT_PCR_RESET, /* PCR 75 */ - PORT_PCR_RESET, /* PCR 76 */ - PORT_PCR_RESET, /* PCR 77 */ - PORT_PCR_RESET, /* PCR 78 */ - PORT_PCR_RESET, /* PCR 79 */ - PORT_PCR_RESET, /* PCR 80 */ - PORT_PCR_RESET, /* PCR 81 */ - PORT_PCR_RESET, /* PCR 82 */ - PORT_PCR_RESET, /* PCR 83 */ - PORT_PCR_RESET, /* PCR 84 */ - PORT_PCR_RESET, /* PCR 85 */ - PORT_PCR_RESET, /* PCR 86 */ - PORT_PCR_RESET, /* PCR 87 */ - PORT_PCR_RESET, /* PCR 88 */ - PORT_PCR_RESET, /* PCR 89 */ - PORT_PCR_RESET, /* PCR 90 */ - PORT_PCR_RESET, /* PCR 91 */ - PORT_PCR_RESET, /* PCR 92 */ - PORT_PCR_RESET, /* PCR 93 */ - PORT_PCR_RESET, /* PCR 94 */ - PORT_PCR_RESET, /* PCR 95 */ - PORT_PCR_RESET, /* PCR 96 */ - PORT_PCR_RESET, /* PCR 97 */ - PORT_PCR_RESET, /* PCR 98 */ - PORT_PCR_RESET, /* PCR 99 */ - PORT_PCR_RESET, /* PCR 100 */ - PORT_PCR_RESET, /* PCR 101 */ - PORT_PCR_RESET, /* PCR 102 */ - PORT_PCR_RESET, /* PCR 103 */ - PORT_PCR_RESET, /* PCR 104 */ - PORT_PCR_RESET, /* PCR 105 */ - PORT_PCR_RESET, /* PCR 106 */ - PORT_PCR_RESET, /* PCR 107 */ - PORT_PCR_RESET, /* PCR 108 */ - PORT_PCR_RESET, /* PCR 109 */ - PORT_PCR_RESET, /* PCR 110 */ - PORT_PCR_RESET, /* PCR 111 */ - PORT_PCR_RESET, /* PCR 112 */ - PORT_PCR_RESET, /* PCR 113 */ - PORT_PCR_RESET, /* PCR 114 */ - PORT_PCR_RESET, /* PCR 115 */ - PORT_PCR_RESET, /* PCR 116 */ - PORT_PCR_RESET, /* PCR 117 */ - PORT_PCR_RESET, /* PCR 118 */ - PORT_PCR_RESET, /* PCR 119 */ - PORT_PCR_RESET, /* PCR 120 */ - PORT_PCR_RESET, /* PCR 121 */ - PORT_PCR_RESET, /* PCR 122 */ - PORT_PCR_RESET, /* PCR 123 */ - PORT_PCR_RESET, /* PCR 124 */ - PORT_PCR_RESET, /* PCR 125 */ - PORT_PCR_RESET, /* PCR 126 */ - PORT_PCR_RESET, /* PCR 127 */ - PORT_PCR_RESET, /* PCR 128 */ - PORT_PCR_RESET, /* PCR 129 */ - PORT_PCR_RESET, /* PCR 130 */ - PORT_PCR_RESET, /* PCR 131 */ - PORT_PCR_RESET, /* PCR 132 */ - PORT_PCR_RESET, /* PCR 133 */ - PORT_PCR_RESET, /* PCR 134 */ - PORT_PCR_RESET, /* PCR 135 */ - PORT_PCR_RESET, /* PCR 136 */ - PORT_PCR_RESET, /* PCR 137 */ - PORT_PCR_RESET, /* PCR 138 */ - PORT_PCR_RESET, /* PCR 139 */ - PORT_PCR_RESET, /* PCR 140 */ - PORT_PCR_RESET, /* PCR 141 */ - PORT_PCR_RESET, /* PCR 142 */ - PORT_PCR_RESET, /* PCR 143 */ - PORT_PCR_RESET, /* PCR 144 */ - PORT_PCR_RESET, /* PCR 145 */ - PORT_PCR_RESET, /* PCR 146 */ - PORT_PCR_RESET, /* PCR 147 */ - PORT_PCR_RESET, /* PCR 148 */ - PORT_PCR_RESET, /* PCR 149 */ - PORT_PCR_RESET, /* PCR 150 */ - PORT_PCR_RESET, /* PCR 151 */ - PORT_PCR_RESET, /* PCR 152 */ - PORT_PCR_RESET, /* PCR 153 */ - PORT_PCR_RESET, /* PCR 154 */ - PORT_PCR_RESET, /* PCR 155 */ - PORT_PCR_RESET, /* PCR 156 */ - PORT_PCR_RESET, /* PCR 157 */ - PORT_PCR_RESET, /* PCR 158 */ - PORT_PCR_RESET, /* PCR 159 */ - PORT_PCR_RESET, /* PCR 160 */ - PORT_PCR_RESET, /* PCR 161 */ - PORT_PCR_RESET, /* PCR 162 */ - PORT_PCR_RESET, /* PCR 163 */ - PORT_PCR_RESET, /* PCR 164 */ - PORT_PCR_RESET, /* PCR 165 */ - PORT_PCR_RESET, /* PCR 166 */ - PORT_PCR_RESET, /* PCR 167 */ - PORT_PCR_RESET, /* PCR 168 */ - PORT_PCR_RESET, /* PCR 169 */ - PORT_PCR_RESET, /* PCR 170 */ - PORT_PCR_RESET, /* PCR 171 */ - PORT_PCR_RESET, /* PCR 172 */ - PORT_PCR_RESET, /* PCR 173 */ - PORT_PCR_RESET, /* PCR 174 */ - PORT_PCR_RESET, /* PCR 175 */ - PORT_PCR_RESET, /* PCR 176 */ - PORT_PCR_RESET, /* PCR 177 */ - PORT_PCR_RESET, /* PCR 178 */ - PORT_PCR_RESET, /* PCR 179 */ - PORT_PCR_RESET, /* PCR 180 */ - PORT_PCR_RESET, /* PCR 181 */ - PORT_PCR_RESET, /* PCR 182 */ - PORT_PCR_RESET, /* PCR 183 */ - PORT_PCR_RESET, /* PCR 184 */ - PORT_PCR_RESET, /* PCR 185 */ - PORT_PCR_RESET, /* PCR 186 */ - PORT_PCR_RESET, /* PCR 187 */ - PORT_PCR_RESET, /* PCR 188 */ - PORT_PCR_RESET, /* PCR 189 */ - PORT_PCR_RESET, /* PCR 190 */ - PORT_PCR_RESET, /* PCR 191 */ - PORT_PCR_RESET, /* PCR 192 */ - PORT_PCR_RESET, /* PCR 193 */ - PORT_PCR_RESET, /* PCR 194 */ - PORT_PCR_RESET, /* PCR 195 */ - PORT_PCR_RESET, /* PCR 196 */ - PORT_PCR_RESET, /* PCR 197 */ - PORT_PCR_RESET, /* PCR 198 */ - PORT_PCR_RESET, /* PCR 199 */ - PORT_PCR_RESET, /* PCR 200 */ - PORT_PCR_RESET, /* PCR 201 */ - PORT_PCR_RESET, /* PCR 202 */ - PORT_PCR_RESET, /* PCR 203 */ - PORT_PCR_RESET, /* PCR 204 */ - PORT_PCR_RESET, /* PCR 205 */ - PORT_PCR_RESET, /* PCR 206 */ - PORT_PCR_RESET, /* PCR 207 */ - PORT_PCR_RESET, /* PCR 208 */ - PORT_PCR_RESET, /* PCR 209 */ - PORT_PCR_RESET, /* PCR 210 */ - PORT_PCR_RESET, /* PCR 211 */ - PORT_PCR_RESET, /* PCR 212 */ - PORT_PCR_RESET, /* PCR 213 */ - PORT_PCR_RESET, /* PCR 214 */ - PORT_PCR_RESET, /* PCR 215 */ - PORT_PCR_RESET, /* PCR 216 */ - PORT_PCR_RESET, /* PCR 217 */ - PORT_PCR_RESET, /* PCR 218 */ - PORT_PCR_RESET, /* PCR 219 */ - PORT_PCR_RESET, /* PCR 220 */ - PORT_PCR_RESET, /* PCR 221 */ - PORT_PCR_RESET, /* PCR 222 */ - PORT_PCR_RESET, /* PCR 223 */ - PORT_PCR_RESET, /* PCR 224 */ - PORT_PCR_RESET, /* PCR 225 */ - PORT_PCR_RESET, /* PCR 226 */ - PORT_PCR_RESET, /* PCR 227 */ - PORT_PCR_RESET, /* PCR 228 */ - PORT_PCR_RESET, /* PCR 229 */ - PORT_PCR_RESET, /* PCR 230 */ - PORT_PCR_RESET, /* PCR 231 */ - PORT_PCR_RESET, /* PCR 232 */ - PORT_PCR_RESET, /* PCR 233 */ - PORT_PCR_RESET, /* PCR 234 */ - PORT_PCR_RESET, /* PCR 235 */ - PORT_PCR_RESET, /* PCR 236 */ - PORT_PCR_RESET, /* PCR 237 */ - PORT_PCR_RESET, /* PCR 238 */ - PORT_PCR_RESET, /* PCR 239 */ - PORT_PCR_RESET, /* PCR 240 */ - PORT_PCR_RESET, /* PCR 241 */ - PORT_PCR_RESET, /* PCR 242 */ - PORT_PCR_RESET, /* PCR 243 */ - PORT_PCR_RESET, /* PCR 244 */ - PORT_PCR_RESET, /* PCR 245 */ - PORT_PCR_RESET, /* PCR 246 */ - PORT_PCR_RESET, /* PCR 247 */ - PORT_PCR_RESET, /* PCR 248 */ - PORT_PCR_RESET, /* PCR 249 */ - PORT_PCR_RESET, /* PCR 250 */ - PORT_PCR_RESET, /* PCR 251 */ - PORT_PCR_RESET, /* PCR 252 */ - PORT_PCR_RESET, /* PCR 253 */ - PORT_PCR_RESET, /* PCR 254 */ - PORT_PCR_RESET, /* PCR 255 */ - PORT_PCR_RESET, /* PCR 256 */ - PORT_PCR_RESET, /* PCR 257 */ - PORT_PCR_RESET, /* PCR 258 */ - PORT_PCR_RESET, /* PCR 259 */ - PORT_PCR_RESET, /* PCR 260 */ - PORT_PCR_RESET, /* PCR 261 */ - PORT_PCR_RESET, /* PCR 262 */ - PORT_PCR_RESET, /* PCR 263 */ - PORT_PCR_RESET, /* PCR 264 */ - PORT_PCR_RESET, /* PCR 265 */ - PORT_PCR_RESET, /* PCR 266 */ - PORT_PCR_RESET, /* PCR 267 */ - PORT_PCR_RESET, /* PCR 268 */ - PORT_PCR_RESET, /* PCR 269 */ - PORT_PCR_RESET, /* PCR 270 */ - PORT_PCR_RESET, /* PCR 271 */ - PORT_PCR_RESET, /* PCR 272 */ - PORT_PCR_RESET, /* PCR 273 */ - PORT_PCR_RESET, /* PCR 274 */ - PORT_PCR_RESET, /* PCR 275 */ - PORT_PCR_RESET, /* PCR 276 */ - PORT_PCR_RESET, /* PCR 277 */ - PORT_PCR_RESET, /* PCR 278 */ - PORT_PCR_RESET, /* PCR 279 */ - PORT_PCR_RESET, /* PCR 280 */ - PORT_PCR_RESET, /* PCR 281 */ - PORT_PCR_RESET, /* PCR 282 */ - PORT_PCR_RESET, /* PCR 283 */ - PORT_PCR_RESET, /* PCR 284 */ - PORT_PCR_RESET, /* PCR 285 */ - PORT_PCR_RESET, /* PCR 286 */ - PORT_PCR_RESET, /* PCR 287 */ - PORT_PCR_RESET, /* PCR 288 */ - PORT_PCR_RESET, /* PCR 289 */ - PORT_PCR_RESET, /* PCR 290 */ - PORT_PCR_RESET, /* PCR 291 */ - PORT_PCR_RESET, /* PCR 292 */ - PORT_PCR_RESET, /* PCR 293 */ - PORT_PCR_RESET, /* PCR 294 */ - PORT_PCR_RESET, /* PCR 295 */ - PORT_PCR_RESET, /* PCR 296 */ - PORT_PCR_RESET, /* PCR 297 */ - PORT_PCR_RESET, /* PCR 298 */ -}; - -const uint8_t PortOutConfigData[] = { - PORT_GPDO_RESET, /* GPDO 0 */ - PORT_GPDO_RESET, /* GPDO 1 */ - PORT_GPDO_RESET, /* GPDO 2 */ - PORT_GPDO_RESET, /* GPDO 3 */ - PORT_GPDO_RESET, /* GPDO 4 */ - PORT_GPDO_RESET, /* GPDO 5 */ - PORT_GPDO_RESET, /* GPDO 6 */ - PORT_GPDO_RESET, /* GPDO 7 */ - PORT_GPDO_RESET, /* GPDO 8 */ - PORT_GPDO_RESET, /* GPDO 9 */ - PORT_GPDO_RESET, /* GPDO 10 */ - PORT_GPDO_RESET, /* GPDO 11 */ - PORT_GPDO_RESET, /* GPDO 12 */ - PORT_GPDO_RESET, /* GPDO 13 */ - PORT_GPDO_RESET, /* GPDO 14 */ - PORT_GPDO_RESET, /* GPDO 15 */ - PORT_GPDO_RESET, /* GPDO 16 */ - PORT_GPDO_RESET, /* GPDO 17 */ - PORT_GPDO_RESET, /* GPDO 18 */ - PORT_GPDO_RESET, /* GPDO 19 */ - PORT_GPDO_RESET, /* GPDO 20 */ - PORT_GPDO_RESET, /* GPDO 21 */ - PORT_GPDO_RESET, /* GPDO 22 */ - PORT_GPDO_RESET, /* GPDO 23 */ - PORT_GPDO_RESET, /* GPDO 24 */ - PORT_GPDO_RESET, /* GPDO 25 */ - PORT_GPDO_RESET, /* GPDO 26 */ - PORT_GPDO_RESET, /* GPDO 27 */ - PORT_GPDO_RESET, /* GPDO 28 */ - PORT_GPDO_RESET, /* GPDO 29 */ - PORT_GPDO_RESET, /* GPDO 30 */ - PORT_GPDO_RESET, /* GPDO 31 */ - PORT_GPDO_RESET, /* GPDO 32 */ - PORT_GPDO_RESET, /* GPDO 33 */ - PORT_GPDO_RESET, /* GPDO 34 */ - PORT_GPDO_RESET, /* GPDO 35 */ - PORT_GPDO_RESET, /* GPDO 36 */ - PORT_GPDO_RESET, /* GPDO 37 */ - PORT_GPDO_RESET, /* GPDO 38 */ - PORT_GPDO_RESET, /* GPDO 39 */ - PORT_GPDO_RESET, /* GPDO 40 */ - PORT_GPDO_RESET, /* GPDO 41 */ - PORT_GPDO_RESET, /* GPDO 42 */ - PORT_GPDO_RESET, /* GPDO 43 */ - PORT_GPDO_RESET, /* GPDO 44 */ - PORT_GPDO_RESET, /* GPDO 45 */ - PORT_GPDO_RESET, /* GPDO 46 */ - PORT_GPDO_RESET, /* GPDO 47 */ - PORT_GPDO_RESET, /* GPDO 48 */ - PORT_GPDO_RESET, /* GPDO 49 */ - PORT_GPDO_RESET, /* GPDO 50 */ - PORT_GPDO_RESET, /* GPDO 51 */ - PORT_GPDO_RESET, /* GPDO 52 */ - PORT_GPDO_RESET, /* GPDO 53 */ - PORT_GPDO_RESET, /* GPDO 54 */ - PORT_GPDO_RESET, /* GPDO 55 */ - PORT_GPDO_RESET, /* GPDO 56 */ - PORT_GPDO_RESET, /* GPDO 57 */ - PORT_GPDO_RESET, /* GPDO 58 */ - PORT_GPDO_RESET, /* GPDO 59 */ - PORT_GPDO_RESET, /* GPDO 60 */ - PORT_GPDO_RESET, /* GPDO 61 */ - PORT_GPDO_RESET, /* GPDO 62 */ - PORT_GPDO_RESET, /* GPDO 63 */ - PORT_GPDO_RESET, /* GPDO 64 */ - PORT_GPDO_RESET, /* GPDO 65 */ - PORT_GPDO_RESET, /* GPDO 66 */ - PORT_GPDO_RESET, /* GPDO 67 */ - PORT_GPDO_RESET, /* GPDO 68 */ - PORT_GPDO_RESET, /* GPDO 69 */ - PORT_GPDO_RESET, /* GPDO 70 */ - PORT_GPDO_RESET, /* GPDO 71 */ - PORT_GPDO_RESET, /* GPDO 72 */ - PORT_GPDO_RESET, /* GPDO 73 */ - PORT_GPDO_RESET, /* GPDO 74 */ - PORT_GPDO_RESET, /* GPDO 75 */ - PORT_GPDO_RESET, /* GPDO 76 */ - PORT_GPDO_RESET, /* GPDO 77 */ - PORT_GPDO_RESET, /* GPDO 78 */ - PORT_GPDO_RESET, /* GPDO 79 */ - PORT_GPDO_RESET, /* GPDO 80 */ - PORT_GPDO_RESET, /* GPDO 81 */ - PORT_GPDO_RESET, /* GPDO 82 */ - PORT_GPDO_RESET, /* GPDO 83 */ - PORT_GPDO_RESET, /* GPDO 84 */ - PORT_GPDO_RESET, /* GPDO 85 */ - PORT_GPDO_RESET, /* GPDO 86 */ - PORT_GPDO_RESET, /* GPDO 87 */ - PORT_GPDO_RESET, /* GPDO 88 */ - PORT_GPDO_RESET, /* GPDO 89 */ - PORT_GPDO_RESET, /* GPDO 90 */ - PORT_GPDO_RESET, /* GPDO 91 */ - PORT_GPDO_RESET, /* GPDO 92 */ - PORT_GPDO_RESET, /* GPDO 93 */ - PORT_GPDO_RESET, /* GPDO 94 */ - PORT_GPDO_RESET, /* GPDO 95 */ - PORT_GPDO_RESET, /* GPDO 96 */ - PORT_GPDO_RESET, /* GPDO 97 */ - PORT_GPDO_RESET, /* GPDO 98 */ - PORT_GPDO_RESET, /* GPDO 99 */ - PORT_GPDO_RESET, /* GPDO 100 */ - PORT_GPDO_RESET, /* GPDO 101 */ - PORT_GPDO_RESET, /* GPDO 102 */ - PORT_GPDO_RESET, /* GPDO 103 */ - PORT_GPDO_RESET, /* GPDO 104 */ - PORT_GPDO_RESET, /* GPDO 105 */ - PORT_GPDO_RESET, /* GPDO 106 */ - PORT_GPDO_RESET, /* GPDO 107 */ - PORT_GPDO_RESET, /* GPDO 108 */ - PORT_GPDO_RESET, /* GPDO 109 */ - PORT_GPDO_RESET, /* GPDO 110 */ - PORT_GPDO_RESET, /* GPDO 111 */ - PORT_GPDO_RESET, /* GPDO 112 */ - PORT_GPDO_RESET, /* GPDO 113 */ - PORT_GPDO_RESET, /* GPDO 114 */ - PORT_GPDO_RESET, /* GPDO 115 */ - PORT_GPDO_RESET, /* GPDO 116 */ - PORT_GPDO_RESET, /* GPDO 117 */ - PORT_GPDO_RESET, /* GPDO 118 */ - PORT_GPDO_RESET, /* GPDO 119 */ - PORT_GPDO_RESET, /* GPDO 120 */ - PORT_GPDO_RESET, /* GPDO 121 */ - PORT_GPDO_RESET, /* GPDO 122 */ - PORT_GPDO_RESET, /* GPDO 123 */ - PORT_GPDO_RESET, /* GPDO 124 */ - PORT_GPDO_RESET, /* GPDO 125 */ - PORT_GPDO_RESET, /* GPDO 126 */ - PORT_GPDO_RESET, /* GPDO 127 */ - PORT_GPDO_RESET, /* GPDO 128 */ - PORT_GPDO_RESET, /* GPDO 129 */ - PORT_GPDO_RESET, /* GPDO 130 */ - PORT_GPDO_RESET, /* GPDO 131 */ - PORT_GPDO_RESET, /* GPDO 132 */ - PORT_GPDO_RESET, /* GPDO 133 */ - PORT_GPDO_RESET, /* GPDO 134 */ - PORT_GPDO_RESET, /* GPDO 135 */ - PORT_GPDO_RESET, /* GPDO 136 */ - PORT_GPDO_RESET, /* GPDO 137 */ - PORT_GPDO_RESET, /* GPDO 138 */ - PORT_GPDO_RESET, /* GPDO 139 */ - PORT_GPDO_RESET, /* GPDO 140 */ - PORT_GPDO_RESET, /* GPDO 141 */ - PORT_GPDO_RESET, /* GPDO 142 */ - PORT_GPDO_RESET, /* GPDO 143 */ - PORT_GPDO_RESET, /* GPDO 144 */ - PORT_GPDO_RESET, /* GPDO 145 */ - PORT_GPDO_RESET, /* GPDO 146 */ - PORT_GPDO_RESET, /* GPDO 147 */ - PORT_GPDO_RESET, /* GPDO 148 */ - PORT_GPDO_RESET, /* GPDO 149 */ - PORT_GPDO_RESET, /* GPDO 150 */ - PORT_GPDO_RESET, /* GPDO 151 */ - PORT_GPDO_RESET, /* GPDO 152 */ - PORT_GPDO_RESET, /* GPDO 153 */ - PORT_GPDO_RESET, /* GPDO 154 */ - PORT_GPDO_RESET, /* GPDO 155 */ - PORT_GPDO_RESET, /* GPDO 156 */ - PORT_GPDO_RESET, /* GPDO 157 */ - PORT_GPDO_RESET, /* GPDO 158 */ - PORT_GPDO_RESET, /* GPDO 159 */ - PORT_GPDO_RESET, /* GPDO 160 */ - PORT_GPDO_RESET, /* GPDO 161 */ - PORT_GPDO_RESET, /* GPDO 162 */ - PORT_GPDO_RESET, /* GPDO 163 */ - PORT_GPDO_RESET, /* GPDO 164 */ - PORT_GPDO_RESET, /* GPDO 165 */ - PORT_GPDO_RESET, /* GPDO 166 */ - PORT_GPDO_RESET, /* GPDO 167 */ - PORT_GPDO_RESET, /* GPDO 168 */ - PORT_GPDO_RESET, /* GPDO 169 */ - PORT_GPDO_RESET, /* GPDO 170 */ - PORT_GPDO_RESET, /* GPDO 171 */ - PORT_GPDO_RESET, /* GPDO 172 */ - PORT_GPDO_RESET, /* GPDO 173 */ - PORT_GPDO_RESET, /* GPDO 174 */ - PORT_GPDO_RESET, /* GPDO 175 */ - PORT_GPDO_RESET, /* GPDO 176 */ - PORT_GPDO_RESET, /* GPDO 177 */ - PORT_GPDO_RESET, /* GPDO 178 */ - PORT_GPDO_RESET, /* GPDO 179 */ - PORT_GPDO_RESET, /* GPDO 180 */ - PORT_GPDO_RESET, /* GPDO 181 */ - PORT_GPDO_RESET, /* GPDO 182 */ - PORT_GPDO_RESET, /* GPDO 183 */ - PORT_GPDO_RESET, /* GPDO 184 */ - PORT_GPDO_RESET, /* GPDO 185 */ - PORT_GPDO_RESET, /* GPDO 186 */ - PORT_GPDO_RESET, /* GPDO 187 */ - PORT_GPDO_RESET, /* GPDO 188 */ - PORT_GPDO_RESET, /* GPDO 189 */ - PORT_GPDO_RESET, /* GPDO 190 */ - PORT_GPDO_RESET, /* GPDO 191 */ - PORT_GPDO_RESET, /* GPDO 192 */ - PORT_GPDO_RESET, /* GPDO 193 */ - PORT_GPDO_RESET, /* GPDO 194 */ - PORT_GPDO_RESET, /* GPDO 195 */ - PORT_GPDO_RESET, /* GPDO 196 */ - PORT_GPDO_RESET, /* GPDO 197 */ - PORT_GPDO_RESET, /* GPDO 198 */ - PORT_GPDO_RESET, /* GPDO 199 */ - PORT_GPDO_RESET, /* GPDO 200 */ - PORT_GPDO_RESET, /* GPDO 201 */ - PORT_GPDO_RESET, /* GPDO 202 */ - PORT_GPDO_RESET, /* GPDO 203 */ - PORT_GPDO_RESET, /* GPDO 204 */ - PORT_GPDO_RESET, /* GPDO 205 */ - PORT_GPDO_RESET, /* GPDO 206 */ - PORT_GPDO_RESET, /* GPDO 207 */ - PORT_GPDO_RESET, /* GPDO 208 */ - PORT_GPDO_RESET, /* GPDO 209 */ - PORT_GPDO_RESET, /* GPDO 210 */ - PORT_GPDO_RESET, /* GPDO 211 */ - PORT_GPDO_RESET, /* GPDO 212 */ - PORT_GPDO_RESET, /* GPDO 213 */ -}; - -const Port_ConfigType PortConfigData = -{ - .padCnt = sizeof(PortPadConfigData), - .padConfig = PortPadConfigData, - .outCnt = sizeof(PortOutConfigData), - .outConfig = PortOutConfigData, -}; diff --git a/boards/mpc5668_gkit/examples/os_simple/config/Port_Cfg.h b/boards/mpc5668_gkit/examples/os_simple/config/Port_Cfg.h deleted file mode 100644 index ba3e3d9d..00000000 --- a/boards/mpc5668_gkit/examples/os_simple/config/Port_Cfg.h +++ /dev/null @@ -1,92 +0,0 @@ -/* -* Configuration of module: Port (Port_Cfg.h) -* -* Created by: -* Copyright: -* -* Configured for (MCU): MPC5668 -* -* Module vendor: ArcCore -* Generator version: 1.0.0 -* -* Generated by Arctic Studio (http://arccore.com) -*/ - - -#if !(((PORT_SW_MAJOR_VERSION == 1) && (PORT_SW_MINOR_VERSION == 0)) ) -#error Port: Configuration file expected BSW module version to be 1.0.* -#endif - - -#ifndef PORT_CFG_H_ -#define PORT_CFG_H_ - -#include "Std_Types.h" - -#define PORT_VERSION_INFO_API STD_ON -#define PORT_DEV_ERROR_DETECT STD_OFF -#define PORT_SET_PIN_MODE_API STD_OFF -#define PORT_SET_PIN_DIRECTION_API STD_OFF - -#define PORT_BIT0 (1<<15) -#define PORT_BIT1 (1<<14) -#define PORT_BIT2 (1<<13) -#define PORT_BIT3 (1<<12) -#define PORT_BIT4 (1<<11) -#define PORT_BIT5 (1<<10) -#define PORT_BIT6 (1<<9) -#define PORT_BIT7 (1<<8) -#define PORT_BIT8 (1<<7) -#define PORT_BIT9 (1<<6) -#define PORT_BIT10 (1<<5) -#define PORT_BIT11 (1<<4) -#define PORT_BIT12 (1<<3) -#define PORT_BIT13 (1<<2) -#define PORT_BIT14 (1<<1) -#define PORT_BIT15 (1<<0) - -#define PORT_WPE_BIT PORT_BIT14 -#define PORT_WPS_BIT PORT_BIT15 -#define PORT_SRC0 PORT_BIT12 -#define PORT_SRC1 PORT_BIT13 - -#define PORT_PULL_UP (PORT_WPE_BIT|PORT_WPS_BIT) -#define PORT_PULL_DOWN (PORT_WPE_BIT) -#define PORT_PULL_NONE 0 -#define PORT_SLEW_RATE_MIN 0 -#define PORT_SLEW_RATE_MED PORT_BIT13 -#define PORT_SLEW_RATE_MAX (PORT_BIT12|PORT_BIT13) -#define PORT_HYS_ENABLE PORT_BIT11 -#define PORT_ODE_ENABLE PORT_BIT10 -#define PORT_IBE_ENABLE PORT_BIT7 -#define PORT_OBE_ENABLE PORT_BIT6 -#define PORT_IO (0) -#define PORT_GPIO_APC PORT_BIT2 -#define PORT_FUNC0 (0) -#define PORT_FUNC1 (PORT_BIT5) -#define PORT_FUNC2 (PORT_BIT4) -#define PORT_FUNC3 (PORT_BIT4|PORT_BIT5) -#define PORT_FUNC4 (PORT_BIT3) - -#define PORT_PCR_RESET (0) -#define PORT_GPDO_RESET (0) - -#define PORT_GPDO_HIGH (1) - - -typedef uint16 Port_PinType; - -typedef struct -{ - uint16_t padCnt; - const uint16_t *padConfig; - uint16_t outCnt; - const uint8_t *outConfig; -// uint16_t inCnt; -// const uint8_t *inConfig; -} Port_ConfigType; - -extern const Port_ConfigType PortConfigData; - - -#endif /* PORT_CFG_H_ */ diff --git a/boards/mpc5668_gkit/examples/os_simple/os_simple_mpc5668_gkit.arxml b/boards/mpc5668_gkit/examples/os_simple/os_simple_mpc5668_gkit.arxml new file mode 100644 index 00000000..f71b6faf --- /dev/null +++ b/boards/mpc5668_gkit/examples/os_simple/os_simple_mpc5668_gkit.arxml @@ -0,0 +1,690 @@ + + + + + os_simple_mpc5668_gkit + + + os_simple_mpc5668_gkit + + + + + + + MPC5668 + ${fileDir}/config + + + + /os_simple_mpc5668_gkit/SwComposition_os_simple_mpc5668_gkit + + /os_simple_mpc5668_gkit/Os + /os_simple_mpc5668_gkit/Det + /os_simple_mpc5668_gkit/EcuM + /os_simple_mpc5668_gkit/Mcu + + + + SwComposition_os_simple_mpc5668_gkit + + + Os + + + + + true + 2.0.22 + + + + /ArcCore/Os + + + OsOS + /ArcCore/Os/OsOS + + + /ArcCore/Os/OsOS/OsStackMonitoring + true + + + /ArcCore/Os/OsOS/OsStatus + EXTENDED + + + /ArcCore/Os/OsOS/OsUseGetServiceId + true + + + /ArcCore/Os/OsOS/OsUseParameterAccess + true + + + /ArcCore/Os/OsOS/OsUseResScheduler + true + + + /ArcCore/Os/OsOS/OsTickFrequency + 1000 + + + /ArcCore/Os/OsOS/OsInterruptStackSize + 2048 + + + /ArcCore/Os/OsOS/OsIdleStackSize + 512 + + + /ArcCore/Os/OsOS/ArcCoreOsUseDebug + false + + + /ArcCore/Os/OsOS/ArcCoreOsDebugTask + false + + + /ArcCore/Os/OsOS/ArcCoreOsDebugAlarm + false + + + /ArcCore/Os/OsOS/ArcCoreOsDebugResource + false + + + /ArcCore/Os/OsOS/ArcCoreOsDebugScheduleTable + false + + + /ArcCore/Os/OsOS/ArcCoreOsDebugEvent + false + + + /ArcCore/Os/OsOS/ArcOsIsrMaxCount + 10 + + + /ArcCore/Os/OsOS/OsNumberOfCores + 1 + + + + + OsHooks + /ArcCore/Os/OsOS/OsHooks + + + /ArcCore/Os/OsOS/OsHooks/OsErrorHook + true + + + /ArcCore/Os/OsOS/OsHooks/OsPostTaskHook + true + + + /ArcCore/Os/OsOS/OsHooks/OsPreTaskHook + true + + + /ArcCore/Os/OsOS/OsHooks/OsProtectionHook + false + + + /ArcCore/Os/OsOS/OsHooks/OsShutdownHook + true + + + /ArcCore/Os/OsOS/OsHooks/OsStartupHook + true + + + + + + + Alarm1 + + + + + + /ArcCore/Os/OsAlarm + + + /ArcCore/Os/OsAlarm/OsAlarmCounterRef + /os_simple_mpc5668_gkit/Os/Counter1 + + + + + OsAlarmAction + /ArcCore/Os/OsAlarm/OsAlarmAction + + + OsAlarmSetEvent + /ArcCore/Os/OsAlarm/OsAlarmAction/OsAlarmSetEvent + + + /ArcCore/Os/OsAlarm/OsAlarmAction/OsAlarmSetEvent/OsAlarmSetEventRef + /os_simple_mpc5668_gkit/Os/Event1 + + + /ArcCore/Os/OsAlarm/OsAlarmAction/OsAlarmSetEvent/OsAlarmSetEventTaskRef + /os_simple_mpc5668_gkit/Os/eTask2 + + + + + + + OsAlarmAutostart + /ArcCore/Os/OsAlarm/OsAlarmAutostart + + + /ArcCore/Os/OsAlarm/OsAlarmAutostart/OsAlarmAlarmTime + 100 + + + /ArcCore/Os/OsAlarm/OsAlarmAutostart/OsAlarmAutostartType + RELATIVE + + + /ArcCore/Os/OsAlarm/OsAlarmAutostart/OsAlarmCycleTime + 100 + + + + + OsAlarmSetEvent + /ArcCore/Os/OsAlarm/OsAlarmAction/OsAlarmSetEvent + + + /ArcCore/Os/OsAlarm/OsAlarmAction/OsAlarmSetEvent/OsAlarmSetEventRef + /os_simple_mpc5668_gkit/Os/Event1 + + + /ArcCore/Os/OsAlarm/OsAlarmAction/OsAlarmSetEvent/OsAlarmSetEventTaskRef + /os_simple_mpc5668_gkit/Os/eTask1 + + + + + + + bTask3 + + + + + + /ArcCore/Os/OsTask + + + /ArcCore/Os/OsTask/OsTaskActivation + 1 + + + /ArcCore/Os/OsTask/OsTaskPriority + 1 + + + /ArcCore/Os/OsTask/OsTaskProcessType + BASIC + + + /ArcCore/Os/OsTask/ArcCoreOsTaskStackSize + 2048 + + + /ArcCore/Os/OsTask/OsTaskSchedule + FULL + + + + + eTask1 + + + + + + /ArcCore/Os/OsTask + + + /ArcCore/Os/OsTask/OsTaskActivation + 1 + + + /ArcCore/Os/OsTask/OsTaskPriority + 1 + + + /ArcCore/Os/OsTask/OsTaskProcessType + EXTENDED + + + /ArcCore/Os/OsTask/ArcCoreOsTaskStackSize + 2048 + + + /ArcCore/Os/OsTask/OsTaskSchedule + FULL + + + + + /ArcCore/Os/OsTask/OsTaskEventRef + /os_simple_mpc5668_gkit/Os/Event1 + + + + + OsTaskAutostart + /ArcCore/Os/OsTask/OsTaskAutostart + + + + + eTask2 + + + + + + /ArcCore/Os/OsTask + + + /ArcCore/Os/OsTask/OsTaskActivation + 1 + + + /ArcCore/Os/OsTask/OsTaskPriority + 1 + + + /ArcCore/Os/OsTask/OsTaskProcessType + EXTENDED + + + /ArcCore/Os/OsTask/ArcCoreOsTaskStackSize + 2048 + + + /ArcCore/Os/OsTask/OsTaskSchedule + FULL + + + + + /ArcCore/Os/OsTask/OsTaskEventRef + /os_simple_mpc5668_gkit/Os/Event2 + + + + + OsTaskAutostart + /ArcCore/Os/OsTask/OsTaskAutostart + + + + + Event1 + + + + + + /ArcCore/Os/OsEvent + + + /ArcCore/Os/OsEvent/OsEventMask + 1 + + + /ArcCore/Os/OsEvent/ArcOsEventAutoMask + true + + + /ArcCore/Os/OsEvent/ArcOsEventId + 0 + + + + + Event2 + + + + + + /ArcCore/Os/OsEvent + + + /ArcCore/Os/OsEvent/OsEventMask + 2 + + + /ArcCore/Os/OsEvent/ArcOsEventAutoMask + true + + + /ArcCore/Os/OsEvent/ArcOsEventId + 0 + + + + + OsApplication1 + + + + + + /ArcCore/Os/OsApplication + + + /ArcCore/Os/OsApplication/ArcOsAppCoreId + 0 + + + /ArcCore/Os/OsApplication/OsTrusted + false + + + + + /ArcCore/Os/OsApplication/OsAppAlarmRef + /os_simple_mpc5668_gkit/Os/Alarm1 + + + /ArcCore/Os/OsApplication/OsAppTaskRef + /os_simple_mpc5668_gkit/Os/bTask3 + + + /ArcCore/Os/OsApplication/OsAppTaskRef + /os_simple_mpc5668_gkit/Os/eTask1 + + + /ArcCore/Os/OsApplication/OsAppTaskRef + /os_simple_mpc5668_gkit/Os/eTask2 + + + /ArcCore/Os/OsApplication/OsAppCounterRef + /os_simple_mpc5668_gkit/Os/Counter1 + + + + + OsApplicationHooks + /ArcCore/Os/OsApplication/OsApplicationHooks + + + /ArcCore/Os/OsApplication/OsApplicationHooks/OsAppErrorHook + false + + + /ArcCore/Os/OsApplication/OsApplicationHooks/OsAppShutdownHook + false + + + /ArcCore/Os/OsApplication/OsApplicationHooks/OsAppStartupHook + false + + + + + + + Counter1 + + + + + + /ArcCore/Os/OsCounter + + + /ArcCore/Os/OsCounter/OsCounterMaxAllowedValue + 65535 + + + /ArcCore/Os/OsCounter/OsCounterMinCycle + 1 + + + /ArcCore/Os/OsCounter/OsCounterTicksPerBase + 0 + + + /ArcCore/Os/OsCounter/OsCounterType + OS_TICK + + + + + + + Det + + + + + 2.0.1 + true + + + + /ArcCore/Det + + + DetGeneral + /ArcCore/Det/DetGeneral + + + /ArcCore/Det/DetGeneral/DetEnableCallbacks + false + + + /ArcCore/Det/DetGeneral/DetUseRamlog + true + + + /ArcCore/Det/DetGeneral/DetWrapRamlog + true + + + /ArcCore/Det/DetGeneral/DetUseStdErr + false + + + /ArcCore/Det/DetGeneral/DetDeInitAPI + false + + + /ArcCore/Det/DetGeneral/DetNumberOfCallbacks + 5 + + + /ArcCore/Det/DetGeneral/DetRamlogSize + 16 + + + + + + + EcuM + + + + + 2.0.1 + true + + + + /ArcCore/EcuM + + + EcuMGeneral + /ArcCore/EcuM/EcuMGeneral + + + /ArcCore/EcuM/EcuMGeneral/EcuMDevErrorDetect + true + + + /ArcCore/EcuM/EcuMGeneral/EcuMIncludeNvramMgr + false + + + /ArcCore/EcuM/EcuMGeneral/EcuMVersionInfoApi + true + + + /ArcCore/EcuM/EcuMGeneral/EcuMMainFunctionPeriod + 0.2 + + + + + EcuMConfiguration + /ArcCore/EcuM/EcuMConfiguration + + + /ArcCore/EcuM/EcuMConfiguration/EcuMNvramReadallTimeout + 10.0 + + + /ArcCore/EcuM/EcuMConfiguration/EcuMRunMinimumDuration + 10.0 + + + /ArcCore/EcuM/EcuMConfiguration/EcuMNvramWriteallTimeout + 10.0 + + + + + EcuMUserConfig + /ArcCore/EcuM/EcuMConfiguration/EcuMUserConfig + + + + + + + Mcu + + + + + true + 2.0.3 + + + + /ArcCore/Mcu + + + McuGeneralConfiguration + /ArcCore/Mcu/McuGeneralConfiguration + + + /ArcCore/Mcu/McuGeneralConfiguration/McuDevErrorDetect + false + + + /ArcCore/Mcu/McuGeneralConfiguration/McuPerformResetApi + true + + + /ArcCore/Mcu/McuGeneralConfiguration/McuVersionInfoApi + true + + + + + McuModuleConfiguration + /ArcCore/Mcu/McuModuleConfiguration + + + /ArcCore/Mcu/McuModuleConfiguration/McuClockSrcFailureNotification + DISABLED + + + /ArcCore/Mcu/McuModuleConfiguration/McuNumberOfMcuModes + 0 + + + /ArcCore/Mcu/McuModuleConfiguration/McuRamSectors + 1 + + + /ArcCore/Mcu/McuModuleConfiguration/McuResetSetting + 0 + + + + + McuClockSettingConfig + /ArcCore/Mcu/McuModuleConfiguration/McuClockSettingConfig + + + /ArcCore/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuDefaultClockReference + /os_simple_mpc5668_gkit/Mcu/McuModuleConfiguration/McuClockSettingConfig/EXT_REF_112MHZ + + + + + EXT_REF_112MHZ + + + + (extal * (emfd+16)) / ((prediv+1)*(erfd+1)) + + + + /ArcCore/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint + + + /ArcCore/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint/McuClockReferencePointFrequency + 4.0E7 + + + /ArcCore/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint/McuClockReferencePointPllEprediv + 9 + + + /ArcCore/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint/McuClockReferencePointPllEmfd + 40 + + + /ArcCore/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint/McuClockReferencePointPllErfd + 1 + + + + + + + McuModeSettingConf + /ArcCore/Mcu/McuModuleConfiguration/McuModeSettingConf + + + /ArcCore/Mcu/McuModuleConfiguration/McuModeSettingConf/McuMode + 0 + + + + + + + + + + + + -- 2.39.2