From 61b812a1ff55f6fc80bb533f13887c6a3d7338b4 Mon Sep 17 00:00:00 2001 From: mahi Date: Tue, 26 Jun 2012 09:33:58 +0200 Subject: [PATCH] Generated for mpc5516it --- .../os_simple/os_simple_mpc5516it.arxml | 2 +- .../com_simple/com_simple_mpc5516it.arxml | 40 ++++ .../examples/com_simple/config/Can_Cfg.h | 2 +- .../examples/com_simple/config/Can_PBcfg.c | 4 +- .../examples/com_simple/config/Com_Cfg.h | 2 +- .../examples/com_simple/config/Com_PbCfg.c | 18 +- .../examples/com_simple/config/Com_PbCfg.h | 2 +- .../examples/com_simple/config/Mcu_Cfg.c | 2 +- .../examples/com_simple/config/Mcu_Cfg.h | 2 +- .../examples/led_rte/config/IoHwAb_Analog.c | 24 ++- .../examples/led_rte/config/IoHwAb_Analog.h | 14 +- .../examples/led_rte/config/IoHwAb_Cfg.h | 2 +- .../examples/led_rte/config/IoHwAb_Dcm.h | 10 +- .../examples/led_rte/config/IoHwAb_Digital.c | 96 ++++----- .../examples/led_rte/config/IoHwAb_Digital.h | 20 +- .../examples/led_rte/config/IoHwAb_Pwm.c | 44 ++-- .../examples/led_rte/config/IoHwAb_Pwm.h | 18 +- .../examples/led_rte/config/Rte_Type.h | 192 ++++++++---------- .../led_rte/led_rte_ecuc_mpc5516.arxml | 7 +- 19 files changed, 257 insertions(+), 244 deletions(-) diff --git a/boards/linux/examples/os_simple/os_simple_mpc5516it.arxml b/boards/linux/examples/os_simple/os_simple_mpc5516it.arxml index 13c916c3..637cfda0 100644 --- a/boards/linux/examples/os_simple/os_simple_mpc5516it.arxml +++ b/boards/linux/examples/os_simple/os_simple_mpc5516it.arxml @@ -13,7 +13,7 @@ MPC551x - ${fileDir}/config + ${RESOURCE_LOC}/config diff --git a/boards/mpc5516it/examples/com_simple/com_simple_mpc5516it.arxml b/boards/mpc5516it/examples/com_simple/com_simple_mpc5516it.arxml index 95e3d47c..3745e612 100644 --- a/boards/mpc5516it/examples/com_simple/com_simple_mpc5516it.arxml +++ b/boards/mpc5516it/examples/com_simple/com_simple_mpc5516it.arxml @@ -275,6 +275,10 @@ /ArcCore/Com/ComConfig/ComSignal/ComTransferProperty PENDING + + /ArcCore/Com/ComConfig/ComSignal/ComRxDataTimeoutAction + NONE + @@ -334,6 +338,10 @@ /ArcCore/Com/ComConfig/ComSignal/ComTransferProperty PENDING + + /ArcCore/Com/ComConfig/ComSignal/ComRxDataTimeoutAction + NONE + @@ -393,6 +401,10 @@ /ArcCore/Com/ComConfig/ComSignal/ComTransferProperty PENDING + + /ArcCore/Com/ComConfig/ComSignal/ComRxDataTimeoutAction + NONE + @@ -452,6 +464,10 @@ /ArcCore/Com/ComConfig/ComSignal/ComTransferProperty PENDING + + /ArcCore/Com/ComConfig/ComSignal/ComRxDataTimeoutAction + NONE + @@ -614,6 +630,10 @@ /ArcCore/Com/ComConfig/ComSignal/ComTransferProperty TRIGGERED + + /ArcCore/Com/ComConfig/ComSignal/ComRxDataTimeoutAction + NONE + @@ -673,6 +693,10 @@ /ArcCore/Com/ComConfig/ComSignal/ComTransferProperty TRIGGERED + + /ArcCore/Com/ComConfig/ComSignal/ComRxDataTimeoutAction + NONE + @@ -732,6 +756,10 @@ /ArcCore/Com/ComConfig/ComSignal/ComTransferProperty TRIGGERED + + /ArcCore/Com/ComConfig/ComSignal/ComRxDataTimeoutAction + NONE + @@ -791,6 +819,10 @@ /ArcCore/Com/ComConfig/ComSignal/ComTransferProperty TRIGGERED + + /ArcCore/Com/ComConfig/ComSignal/ComRxDataTimeoutAction + NONE + @@ -1138,6 +1170,10 @@ /ArcCore/Can/CanConfigSet/CanController/CanWakeupProcessing INTERRUPT + + /ArcCore/Can/CanConfigSet/CanController/CanErrorProcessing + INTERRUPT + @@ -1269,6 +1305,10 @@ /ArcCore/Can/CanGeneral/CanVersionInfoApi false + + /ArcCore/Can/CanGeneral/CanErrorCbk + CanIf_Arc_Error + diff --git a/boards/mpc5516it/examples/com_simple/config/Can_Cfg.h b/boards/mpc5516it/examples/com_simple/config/Can_Cfg.h index aedd5ab0..536d3311 100644 --- a/boards/mpc5516it/examples/com_simple/config/Can_Cfg.h +++ b/boards/mpc5516it/examples/com_simple/config/Can_Cfg.h @@ -7,7 +7,7 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 2.0.1 +* Generator version: 2.0.3 * * Generated by Arctic Studio (http://arccore.com) */ diff --git a/boards/mpc5516it/examples/com_simple/config/Can_PBcfg.c b/boards/mpc5516it/examples/com_simple/config/Can_PBcfg.c index b70539b1..8108872b 100644 --- a/boards/mpc5516it/examples/com_simple/config/Can_PBcfg.c +++ b/boards/mpc5516it/examples/com_simple/config/Can_PBcfg.c @@ -7,7 +7,7 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 2.0.1 +* Generator version: 2.0.3 * * Generated by Arctic Studio (http://arccore.com) */ @@ -78,7 +78,7 @@ const Can_ControllerConfigType CanControllerConfigData[] = .CanControllerPropSeg = 4, .CanControllerSeg1 = 4, .CanControllerSeg2 = 4, - .Can_Arc_Flags = (CAN_CTRL_BUSOFF_PROCESSING_INTERRUPT | CAN_CTRL_RX_PROCESSING_INTERRUPT | CAN_CTRL_TX_PROCESSING_INTERRUPT | CAN_CTRL_WAKEUP_PROCESSING_INTERRUPT | CAN_CTRL_ACTIVATION | CAN_CTRL_FIFO), + .Can_Arc_Flags = (CAN_CTRL_BUSOFF_PROCESSING_INTERRUPT | CAN_CTRL_RX_PROCESSING_INTERRUPT | CAN_CTRL_TX_PROCESSING_INTERRUPT | CAN_CTRL_WAKEUP_PROCESSING_INTERRUPT | CAN_CTRL_ERROR_PROCESSING_INTERRUPT | CAN_CTRL_ACTIVATION | CAN_CTRL_FIFO), .CanCpuClockRef = PERIPHERAL_CLOCK_FLEXCAN_A, .Can_Arc_Hoh = &CanHardwareObjectConfig_Controller_A[0], .Can_Arc_HohCnt = 2, diff --git a/boards/mpc5516it/examples/com_simple/config/Com_Cfg.h b/boards/mpc5516it/examples/com_simple/config/Com_Cfg.h index b5456aff..fd206e42 100644 --- a/boards/mpc5516it/examples/com_simple/config/Com_Cfg.h +++ b/boards/mpc5516it/examples/com_simple/config/Com_Cfg.h @@ -7,7 +7,7 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 2.0.7 +* Generator version: 2.0.8 * * Generated by Arctic Studio (http://arccore.com) */ diff --git a/boards/mpc5516it/examples/com_simple/config/Com_PbCfg.c b/boards/mpc5516it/examples/com_simple/config/Com_PbCfg.c index 4699a1f5..955f406d 100644 --- a/boards/mpc5516it/examples/com_simple/config/Com_PbCfg.c +++ b/boards/mpc5516it/examples/com_simple/config/Com_PbCfg.c @@ -7,7 +7,7 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 2.0.7 +* Generator version: 2.0.8 * * Generated by Arctic Studio (http://arccore.com) */ @@ -82,7 +82,9 @@ const ComSignal_type ComSignal[] = { .Com_Arc_IsSignalGroup = 0, .ComGroupSignal = NULL, + .ComRxDataTimeoutAction = COM_TIMEOUT_DATA_ACTION_NONE, + .Com_Arc_EOL = 0 }, { @@ -108,7 +110,9 @@ const ComSignal_type ComSignal[] = { .Com_Arc_IsSignalGroup = 0, .ComGroupSignal = NULL, + .ComRxDataTimeoutAction = COM_TIMEOUT_DATA_ACTION_NONE, + .Com_Arc_EOL = 0 }, { @@ -134,7 +138,9 @@ const ComSignal_type ComSignal[] = { .Com_Arc_IsSignalGroup = 0, .ComGroupSignal = NULL, + .ComRxDataTimeoutAction = COM_TIMEOUT_DATA_ACTION_NONE, + .Com_Arc_EOL = 0 }, { @@ -160,7 +166,9 @@ const ComSignal_type ComSignal[] = { .Com_Arc_IsSignalGroup = 0, .ComGroupSignal = NULL, + .ComRxDataTimeoutAction = COM_TIMEOUT_DATA_ACTION_NONE, + .Com_Arc_EOL = 0 }, { @@ -186,7 +194,9 @@ const ComSignal_type ComSignal[] = { .Com_Arc_IsSignalGroup = 0, .ComGroupSignal = NULL, + .ComRxDataTimeoutAction = COM_TIMEOUT_DATA_ACTION_NONE, + .Com_Arc_EOL = 0 }, { @@ -212,7 +222,9 @@ const ComSignal_type ComSignal[] = { .Com_Arc_IsSignalGroup = 0, .ComGroupSignal = NULL, + .ComRxDataTimeoutAction = COM_TIMEOUT_DATA_ACTION_NONE, + .Com_Arc_EOL = 0 }, { @@ -238,7 +250,9 @@ const ComSignal_type ComSignal[] = { .Com_Arc_IsSignalGroup = 0, .ComGroupSignal = NULL, + .ComRxDataTimeoutAction = COM_TIMEOUT_DATA_ACTION_NONE, + .Com_Arc_EOL = 0 }, { @@ -264,7 +278,9 @@ const ComSignal_type ComSignal[] = { .Com_Arc_IsSignalGroup = 0, .ComGroupSignal = NULL, + .ComRxDataTimeoutAction = COM_TIMEOUT_DATA_ACTION_NONE, + .Com_Arc_EOL = 0 }, { diff --git a/boards/mpc5516it/examples/com_simple/config/Com_PbCfg.h b/boards/mpc5516it/examples/com_simple/config/Com_PbCfg.h index cb004cb1..ffef12ec 100644 --- a/boards/mpc5516it/examples/com_simple/config/Com_PbCfg.h +++ b/boards/mpc5516it/examples/com_simple/config/Com_PbCfg.h @@ -7,7 +7,7 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 2.0.7 +* Generator version: 2.0.8 * * Generated by Arctic Studio (http://arccore.com) */ diff --git a/boards/mpc5516it/examples/com_simple/config/Mcu_Cfg.c b/boards/mpc5516it/examples/com_simple/config/Mcu_Cfg.c index 80f25c64..8967e39f 100644 --- a/boards/mpc5516it/examples/com_simple/config/Mcu_Cfg.c +++ b/boards/mpc5516it/examples/com_simple/config/Mcu_Cfg.c @@ -7,7 +7,7 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 2.0.2 +* Generator version: 2.0.3 * * Generated by Arctic Studio (http://arccore.com) */ diff --git a/boards/mpc5516it/examples/com_simple/config/Mcu_Cfg.h b/boards/mpc5516it/examples/com_simple/config/Mcu_Cfg.h index 34b29774..eca13bcb 100644 --- a/boards/mpc5516it/examples/com_simple/config/Mcu_Cfg.h +++ b/boards/mpc5516it/examples/com_simple/config/Mcu_Cfg.h @@ -7,7 +7,7 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 2.0.2 +* Generator version: 2.0.3 * * Generated by Arctic Studio (http://arccore.com) */ diff --git a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Analog.c b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Analog.c index 80a5efe1..3544cf5e 100644 --- a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Analog.c +++ b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Analog.c @@ -7,7 +7,7 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 3.1.2 +* Generator version: 3.1.3 * * Generated by Arctic Studio (http://arccore.com) */ @@ -16,18 +16,20 @@ #include "IoHwAb.h" #include "IoHwAb_Internal.h" -/***************************************** Private macros *****************************************/ - +/***************************************** Private macros *****************************************/ + #define IOHWAB_ADC_MAX_MILLIVOLTS ( 5000 ) #define IOHWAB_ADC_VALUE_OF( mV ) ( mV * ADC_MAX_VALUE / IOHWAB_ADC_MAX_MILLIVOLTS ) -/**************************************** Analog scalings *****************************************/ - -/***************************************** Analog inputs ******************************************/ - -/********************************** Parameterized analog inputs ***********************************/ - +/***************************************** Signal states ******************************************/ + +/**************************************** Analog scalings *****************************************/ + +/***************************************** Analog inputs ******************************************/ + +/********************************** Parameterized analog inputs ***********************************/ + +/************************************** Adc group callbacks ***************************************/ +/******************************************** Dcm Api *********************************************/ -/************************************** Adc group callbacks ***************************************/ - diff --git a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Analog.h b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Analog.h index 62a02253..15f07245 100644 --- a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Analog.h +++ b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Analog.h @@ -7,7 +7,7 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 3.1.2 +* Generator version: 3.1.3 * * Generated by Arctic Studio (http://arccore.com) */ @@ -19,17 +19,13 @@ #error IoHwAb: Configuration file expected BSW module version to be 1.0.* #endif -/****************************************** Analog types ******************************************/ - +/****************************************** Analog types ******************************************/ -/***************************************** Analog inputs ******************************************/ - -/********************************** Parameterized analog inputs ***********************************/ - +/***************************************** Analog inputs ******************************************/ -/************************************ Analog validation macros ************************************/ - +/********************************** Parameterized analog inputs ***********************************/ +/************************************ Analog validation macros ************************************/ #endif /* IOHWAB_ANALOG_H_ */ diff --git a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Cfg.h b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Cfg.h index de787ebc..051c6b70 100644 --- a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Cfg.h +++ b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Cfg.h @@ -7,7 +7,7 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 3.1.2 +* Generator version: 3.1.3 * * Generated by Arctic Studio (http://arccore.com) */ diff --git a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Dcm.h b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Dcm.h index 55ac4759..ba647cc4 100644 --- a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Dcm.h +++ b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Dcm.h @@ -7,7 +7,7 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 3.1.2 +* Generator version: 3.1.3 * * Generated by Arctic Studio (http://arccore.com) */ @@ -21,9 +21,11 @@ #include "IoHwAb_Types.h" -/******************************************** Digital *********************************************/ - -Std_ReturnType IoHwAb_Dcm_DigitalSignal_Led4( uint8 action, IoHwAb_LevelType value ); +/******************************************** Digital *********************************************/ + +Std_ReturnType IoHwAb_Dcm_DigitalSignal_Led4(uint8 action, IoHwAb_LevelType value); + +/********************************************* Analog *********************************************/ #endif /* IOHWAB_DCM_H_ */ diff --git a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Digital.c b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Digital.c index c3ce15f9..3165fba0 100644 --- a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Digital.c +++ b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Digital.c @@ -7,7 +7,7 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 3.1.2 +* Generator version: 3.1.3 * * Generated by Arctic Studio (http://arccore.com) */ @@ -19,119 +19,109 @@ #else #if defined(USE_DET) - #include "Det.h" +#include "Det.h" #endif #error "DIO Module is needed by IOHWAB" #endif -/************************************ External Device Drivers *************************************/ - -/***************************************** Signal states ******************************************/ - -boolean IoHwAb_DigitalSignal_Led4_Locked = IOHWAB_UNLOCKED; -IoHwAb_LevelType IoHwAb_DigitalSignal_Led4_Saved = IOHWAB_LOW; +/************************************ External Device Drivers *************************************/ + +/***************************************** Signal states ******************************************/ + +boolean IoHwAb_DigitalSignal_Led4_Locked = IOHWAB_UNLOCKED; +IoHwAb_LevelType IoHwAb_DigitalSignal_Led4_Saved = IOHWAB_LOW; const IoHwAb_LevelType IoHwAb_DigitalSignal_Led4_Default = IOHWAB_LOW; -/**************************************** Digital outputs *****************************************/ - +/**************************************** Digital outputs *****************************************/ + /********************************** DigitalSignal_Led4 functions **********************************/ -Std_ReturnType IoHwAb_Set_Digital_DigitalSignal_Led4( IoHwAb_LevelType newValue, IoHwAb_StatusType *status ) { +Std_ReturnType IoHwAb_Set_Digital_DigitalSignal_Led4(IoHwAb_LevelType newValue, IoHwAb_StatusType *status) { Std_ReturnType rv = E_OK; Dio_LevelType setLevel = 0; IoHwAb_QualityType q = IOHWAB_GOOD; - - if( IOHWAB_UNLOCKED == IoHwAb_DigitalSignal_Led4_Locked ) { + + if (IOHWAB_UNLOCKED == IoHwAb_DigitalSignal_Led4_Locked) { setLevel = (Dio_LevelType) newValue; } else { setLevel = (Dio_LevelType) IoHwAb_DigitalSignal_Led4_Saved; } - - Dio_WriteChannel( DIO_CHANNEL_NAME_LEDS_LED4, setLevel ); + + Dio_WriteChannel(DIO_CHANNEL_NAME_LEDS_LED4, setLevel); status->quality = q; return rv; } -Std_ReturnType IoHwAb_Dcm_DigitalSignal_Led4( uint8 action, IoHwAb_LevelType value ) { +Std_ReturnType IoHwAb_Dcm_DigitalSignal_Led4(uint8 action, IoHwAb_LevelType value) { imask_t state; Std_ReturnType rv = E_OK; - switch(action) { + switch (action) { case IOHWAB_RETURNCONTROLTOECU: IoHwAb_DigitalSignal_Led4_Locked = IOHWAB_UNLOCKED; break; - + case IOHWAB_RESETTODEFAULT: IoHwAb_LockSave(state); IoHwAb_DigitalSignal_Led4_Saved = IoHwAb_DigitalSignal_Led4_Default; IoHwAb_DigitalSignal_Led4_Locked = IOHWAB_LOCKED; IoHwAb_LockRestore(state); break; - + case IOHWAB_FREEZECURRENTSTATE: - if( IOHWAB_UNLOCKED == IoHwAb_DigitalSignal_Led4_Locked ) { + if (IOHWAB_UNLOCKED == IoHwAb_DigitalSignal_Led4_Locked) { IoHwAb_LockSave(state); - IoHwAb_DigitalSignal_Led4_Saved = Dio_ReadChannel( DIO_CHANNEL_NAME_LEDS_LED4 ); + IoHwAb_DigitalSignal_Led4_Saved = Dio_ReadChannel(DIO_CHANNEL_NAME_LEDS_LED4); IoHwAb_DigitalSignal_Led4_Locked = IOHWAB_LOCKED; IoHwAb_LockRestore(state); } break; - + case IOHWAB_SHORTTERMADJUST: IoHwAb_LockSave(state); IoHwAb_DigitalSignal_Led4_Saved = value; IoHwAb_DigitalSignal_Led4_Locked = IOHWAB_LOCKED; IoHwAb_LockRestore(state); break; - + default: rv = E_NOT_OK; break; } - + return rv; } -/***************************************** Digital inputs *****************************************/ - -/************************************* Parameterized digital **************************************/ - +/***************************************** Digital inputs *****************************************/ + +/************************************* Parameterized digital **************************************/ + Std_ReturnType IoHwAb_Set_Digital(IoHwAb_SignalType signal, IoHwAb_LevelType newValue, IoHwAb_StatusType *status) { - IOHWAB_VALIDATE_RETURN ( - IOHWAB_SIGNAL_IS_VALID_DIGITAL_OUTPUT(signal), - IOHWAB_DIGITAL_SET_ID, - IOHWAB_E_PARAM_SIGNAL, - E_NOT_OK - ); + IOHWAB_VALIDATE_RETURN(IOHWAB_SIGNAL_IS_VALID_DIGITAL_OUTPUT(signal), IOHWAB_DIGITAL_SET_ID, IOHWAB_E_PARAM_SIGNAL, E_NOT_OK); switch (signal) { - case IOHWAB_SIGNAL_DIGITALSIGNAL_LED4: { - return IoHwAb_Set_Digital_DigitalSignal_Led4( newValue, status ); - } break; - - default: { - return E_NOT_OK; - } break; + case IOHWAB_SIGNAL_DIGITALSIGNAL_LED4: { + return IoHwAb_Set_Digital_DigitalSignal_Led4(newValue, status); } -} + break; + default: { + return E_NOT_OK; + } + break; + } +} -Std_ReturnType IoHwAb_Get_Digital( IoHwAb_SignalType signal, IoHwAb_LevelType *value, IoHwAb_StatusType *status ) { +Std_ReturnType IoHwAb_Get_Digital(IoHwAb_SignalType signal, IoHwAb_LevelType *value, IoHwAb_StatusType *status) { - IOHWAB_VALIDATE_RETURN ( - IOHWAB_SIGNAL_IS_VALID_DIGITAL_INPUT(signal), - IOHWAB_DIGITAL_GET_ID, - IOHWAB_E_PARAM_SIGNAL, - E_NOT_OK - ); + IOHWAB_VALIDATE_RETURN(IOHWAB_SIGNAL_IS_VALID_DIGITAL_INPUT(signal), IOHWAB_DIGITAL_GET_ID, IOHWAB_E_PARAM_SIGNAL, E_NOT_OK); switch (signal) { - default: { - return E_NOT_OK; - } break; + default: { + return E_NOT_OK; + } } } - diff --git a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Digital.h b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Digital.h index a16fa2be..da219ccb 100644 --- a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Digital.h +++ b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Digital.h @@ -7,7 +7,7 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 3.1.2 +* Generator version: 3.1.3 * * Generated by Arctic Studio (http://arccore.com) */ @@ -19,21 +19,21 @@ #error IoHwAb: Configuration file expected BSW module version to be 1.0.* #endif -/**************************************** Digital outputs *****************************************/ - +/**************************************** Digital outputs *****************************************/ + #define IOHWAB_SIGNAL_DIGITALSIGNAL_LED4 0 -Std_ReturnType IoHwAb_SetDigitalSignal_Led4( IoHwAb_LevelType newValue, IoHwAb_StatusType *status ); +Std_ReturnType IoHwAb_SetDigitalSignal_Led4(IoHwAb_LevelType newValue, IoHwAb_StatusType *status); + +/***************************************** Digital inputs *****************************************/ + +/************************************* Parameterized digital **************************************/ -/***************************************** Digital inputs *****************************************/ - -/************************************* Parameterized digital **************************************/ - Std_ReturnType IoHwAb_Set_Digital(IoHwAb_SignalType signal, IoHwAb_LevelType newValue, IoHwAb_StatusType *status); Std_ReturnType IoHwAb_Get_Digital(IoHwAb_SignalType signal, IoHwAb_LevelType *value, IoHwAb_StatusType *status); -/*********************************** Digital validation macros ************************************/ - +/*********************************** Digital validation macros ************************************/ + #define IOHWAB_SIGNAL_COUNT_DIGITAL_OUTPUT 1 #define IOHWAB_SIGNAL_IS_VALID_DIGITAL_OUTPUT(signal) \ diff --git a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Pwm.c b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Pwm.c index 5b363456..f640e750 100644 --- a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Pwm.c +++ b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Pwm.c @@ -7,46 +7,38 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 3.1.2 +* Generator version: 3.1.3 * * Generated by Arctic Studio (http://arccore.com) */ #include "IoHwAb.h" #include "IoHwAb_Internal.h" -/****************************************** Pwm outputs *******************************************/ - -/************************************ Parameterized Pwm output ************************************/ - -Std_ReturnType IoHwAb_Set_Duty( IoHwAb_SignalType signal, IoHwAb_DutyType duty, IoHwAb_StatusType *status ) { - - IOHWAB_VALIDATE_RETURN ( - IOHWAB_SIGNAL_IS_VALID_PWM_DUTY_OUTPUT(signal), - IOHWAB_PWMDUTY_SET_ID, - IOHWAB_E_PARAM_SIGNAL, - E_NOT_OK - ); +/****************************************** Pwm outputs *******************************************/ + +/************************************ Parameterized Pwm output ************************************/ + +Std_ReturnType IoHwAb_Set_Duty(IoHwAb_SignalType signal, IoHwAb_DutyType duty, IoHwAb_StatusType *status) { + + IOHWAB_VALIDATE_RETURN(IOHWAB_SIGNAL_IS_VALID_PWM_DUTY_OUTPUT(signal), IOHWAB_PWMDUTY_SET_ID, IOHWAB_E_PARAM_SIGNAL, E_NOT_OK); switch (signal) { - default: { - return E_NOT_OK; - } break; + default: { + return E_NOT_OK; + } + break; } } -Std_ReturnType IoHwAb_Set_FrequencyAndDuty( IoHwAb_SignalType signal, IoHwAb_FrequencyType frequency, IoHwAb_DutyType duty, IoHwAb_StatusType *status ) { +Std_ReturnType IoHwAb_Set_FrequencyAndDuty(IoHwAb_SignalType signal, IoHwAb_FrequencyType frequency, IoHwAb_DutyType duty, IoHwAb_StatusType *status) { - IOHWAB_VALIDATE_RETURN ( - IOHWAB_SIGNAL_IS_VALID_PWM_FREQUENCYANDDUTY_OUTPUT(signal), - IOHWAB_PWMFREQUENCYANDDUTY_SET_ID, - IOHWAB_E_PARAM_SIGNAL, - E_NOT_OK - ); + IOHWAB_VALIDATE_RETURN(IOHWAB_SIGNAL_IS_VALID_PWM_FREQUENCYANDDUTY_OUTPUT(signal), IOHWAB_PWMFREQUENCYANDDUTY_SET_ID, IOHWAB_E_PARAM_SIGNAL, E_NOT_OK); switch (signal) { - default: { - return E_NOT_OK; - } break; + default: { + return E_NOT_OK; + } + break; } } diff --git a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Pwm.h b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Pwm.h index eb740b75..0aad53b8 100644 --- a/boards/mpc5516it/examples/led_rte/config/IoHwAb_Pwm.h +++ b/boards/mpc5516it/examples/led_rte/config/IoHwAb_Pwm.h @@ -7,7 +7,7 @@ * Configured for (MCU): MPC551x * * Module vendor: ArcCore -* Generator version: 3.1.2 +* Generator version: 3.1.3 * * Generated by Arctic Studio (http://arccore.com) */ @@ -19,15 +19,15 @@ #error IoHwAb: Configuration file expected BSW module version to be 1.0.* #endif -/****************************************** Pwm outputs *******************************************/ - -/************************************ Parameterized Pwm output ************************************/ - -Std_ReturnType IoHwAb_Set_Duty( IoHwAb_SignalType signal, IoHwAb_DutyType duty, IoHwAb_StatusType *status ); -Std_ReturnType IoHwAb_Set_FrequencyAndDuty( IoHwAb_SignalType signal, IoHwAb_FrequencyType frequency, IoHwAb_DutyType duty, IoHwAb_StatusType *status ); +/****************************************** Pwm outputs *******************************************/ + +/************************************ Parameterized Pwm output ************************************/ + +Std_ReturnType IoHwAb_Set_Duty(IoHwAb_SignalType signal, IoHwAb_DutyType duty, IoHwAb_StatusType *status); +Std_ReturnType IoHwAb_Set_FrequencyAndDuty(IoHwAb_SignalType signal, IoHwAb_FrequencyType frequency, IoHwAb_DutyType duty, IoHwAb_StatusType *status); + +/************************************* Pwm validation macros **************************************/ -/************************************* Pwm validation macros **************************************/ - #define IOHWAB_SIGNAL_COUNT_PWM_DUTY_OUTPUT 0 #define IOHWAB_SIGNAL_COUNT_PWM_FREQUENCYANDDUTY_OUTPUT 0 diff --git a/boards/mpc5516it/examples/led_rte/config/Rte_Type.h b/boards/mpc5516it/examples/led_rte/config/Rte_Type.h index f4685db6..390c492b 100644 --- a/boards/mpc5516it/examples/led_rte/config/Rte_Type.h +++ b/boards/mpc5516it/examples/led_rte/config/Rte_Type.h @@ -21,33 +21,9 @@ typedef void * Rte_Instance; -typedef float Float; - -#define _DEFINED_TYPEDEF_FOR_Float_ - -typedef sint32 SInt32; -#define SInt32_LowerLimit -2147483648 -#define SInt32_UpperLimit 2147483647 - -#define _DEFINED_TYPEDEF_FOR_SInt32_ - -typedef uint8 UInt8; -#define UInt8_LowerLimit 0 -#define UInt8_UpperLimit 255 - -#define _DEFINED_TYPEDEF_FOR_UInt8_ - -typedef uint32 UInt32; -#define UInt32_LowerLimit 0 -#define UInt32_UpperLimit 4294967295 - -#define _DEFINED_TYPEDEF_FOR_UInt32_ - -typedef sint32 MilliOhm; -#define MilliOhm_LowerLimit -2147483647 -#define MilliOhm_UpperLimit 2147483647 +typedef boolean Boolean; -#define _DEFINED_TYPEDEF_FOR_MilliOhm_ +#define _DEFINED_TYPEDEF_FOR_Boolean_ typedef uint8 DigitalLevel; #ifndef Low @@ -61,15 +37,15 @@ typedef uint8 DigitalLevel; #define _DEFINED_TYPEDEF_FOR_DigitalLevel_ -typedef boolean Boolean; +typedef float Float; -#define _DEFINED_TYPEDEF_FOR_Boolean_ +#define _DEFINED_TYPEDEF_FOR_Float_ -typedef sint32 MilliAmpere; -#define MilliAmpere_LowerLimit -2147483647 -#define MilliAmpere_UpperLimit 2147483647 +typedef sint32 Hertz; +#define Hertz_LowerLimit -2147483647 +#define Hertz_UpperLimit 2147483647 -#define _DEFINED_TYPEDEF_FOR_MilliAmpere_ +#define _DEFINED_TYPEDEF_FOR_Hertz_ typedef uint16 IoHwAb_SignalType; #define IoHwAb_SignalType_LowerLimit 0 @@ -77,11 +53,17 @@ typedef uint16 IoHwAb_SignalType; #define _DEFINED_TYPEDEF_FOR_IoHwAb_SignalType_ -typedef sint8 SInt8; -#define SInt8_LowerLimit -128 -#define SInt8_UpperLimit 127 +typedef sint32 MilliAmpere; +#define MilliAmpere_LowerLimit -2147483647 +#define MilliAmpere_UpperLimit 2147483647 -#define _DEFINED_TYPEDEF_FOR_SInt8_ +#define _DEFINED_TYPEDEF_FOR_MilliAmpere_ + +typedef sint32 MilliOhm; +#define MilliOhm_LowerLimit -2147483647 +#define MilliOhm_UpperLimit 2147483647 + +#define _DEFINED_TYPEDEF_FOR_MilliOhm_ typedef sint32 MilliVolt; #define MilliVolt_LowerLimit -2147483647 @@ -89,6 +71,52 @@ typedef sint32 MilliVolt; #define _DEFINED_TYPEDEF_FOR_MilliVolt_ +typedef uint8 NvM_RequestResultType; +#ifndef NVM_REQ_OK +#define NVM_REQ_OK ((NvM_RequestResultType)0) +#endif /*NVM_REQ_OK*/ +#ifndef NVM_REQ_NOT_OK +#define NVM_REQ_NOT_OK ((NvM_RequestResultType)1) +#endif /*NVM_REQ_NOT_OK*/ +#ifndef NVM_REQ_PENDING +#define NVM_REQ_PENDING ((NvM_RequestResultType)2) +#endif /*NVM_REQ_PENDING*/ +#ifndef NVM_REQ_INTEGRITY_FAILED +#define NVM_REQ_INTEGRITY_FAILED ((NvM_RequestResultType)3) +#endif /*NVM_REQ_INTEGRITY_FAILED*/ +#ifndef NVM_REQ_BLOCK_SKIPPED +#define NVM_REQ_BLOCK_SKIPPED ((NvM_RequestResultType)4) +#endif /*NVM_REQ_BLOCK_SKIPPED*/ +#ifndef NVM_REQ_NV_INVALIDATED +#define NVM_REQ_NV_INVALIDATED ((NvM_RequestResultType)5) +#endif /*NVM_REQ_NV_INVALIDATED*/ + +#define _DEFINED_TYPEDEF_FOR_NvM_RequestResultType_ + +typedef sint32 Percent; +#define Percent_LowerLimit -2147483647 +#define Percent_UpperLimit 2147483647 + +#define _DEFINED_TYPEDEF_FOR_Percent_ + +typedef sint16 SInt16; +#define SInt16_LowerLimit -32768 +#define SInt16_UpperLimit 32767 + +#define _DEFINED_TYPEDEF_FOR_SInt16_ + +typedef sint32 SInt32; +#define SInt32_LowerLimit -2147483648 +#define SInt32_UpperLimit 2147483647 + +#define _DEFINED_TYPEDEF_FOR_SInt32_ + +typedef sint8 SInt8; +#define SInt8_LowerLimit -128 +#define SInt8_UpperLimit 127 + +#define _DEFINED_TYPEDEF_FOR_SInt8_ + typedef uint8 SignalQuality; #ifndef SignalQuality_InitialValue #define SignalQuality_InitialValue ((SignalQuality)0) @@ -107,93 +135,35 @@ typedef uint8 SignalQuality; #define _DEFINED_TYPEDEF_FOR_SignalQuality_ -typedef sint32 Hertz; -#define Hertz_LowerLimit -2147483647 -#define Hertz_UpperLimit 2147483647 - -#define _DEFINED_TYPEDEF_FOR_Hertz_ - -typedef sint32 Percent; -#define Percent_LowerLimit -2147483647 -#define Percent_UpperLimit 2147483647 - -#define _DEFINED_TYPEDEF_FOR_Percent_ - -typedef sint16 SInt16; -#define SInt16_LowerLimit -32768 -#define SInt16_UpperLimit 32767 - -#define _DEFINED_TYPEDEF_FOR_SInt16_ - typedef uint16 UInt16; #define UInt16_LowerLimit 0 #define UInt16_UpperLimit 65535 #define _DEFINED_TYPEDEF_FOR_UInt16_ -typedef struct { - Float value; -} Rte_DE_Float; - -typedef struct { - SInt32 value; -} Rte_DE_SInt32; - -typedef struct { - UInt8 value; -} Rte_DE_UInt8; - -typedef struct { - UInt32 value; -} Rte_DE_UInt32; - -typedef struct { - MilliOhm value; -} Rte_DE_MilliOhm; - -typedef struct { - DigitalLevel value; -} Rte_DE_DigitalLevel; - -typedef struct { - Boolean value; -} Rte_DE_Boolean; - -typedef struct { - MilliAmpere value; -} Rte_DE_MilliAmpere; - -typedef struct { - IoHwAb_SignalType value; -} Rte_DE_IoHwAb_SignalType; - -typedef struct { - SInt8 value; -} Rte_DE_SInt8; +typedef uint32 UInt32; +#define UInt32_LowerLimit 0 +#define UInt32_UpperLimit 4294967295 -typedef struct { - MilliVolt value; -} Rte_DE_MilliVolt; +#define _DEFINED_TYPEDEF_FOR_UInt32_ -typedef struct { - SignalQuality value; -} Rte_DE_SignalQuality; +typedef uint8 UInt8; +#define UInt8_LowerLimit 0 +#define UInt8_UpperLimit 255 -typedef struct { - Hertz value; -} Rte_DE_Hertz; +#define _DEFINED_TYPEDEF_FOR_UInt8_ -typedef struct { - Percent value; -} Rte_DE_Percent; +typedef UInt8 DstPtrType[1024]; -typedef struct { - SInt16 value; -} Rte_DE_SInt16; +#define _DEFINED_TYPEDEF_FOR_DstPtrType_ -typedef struct { - UInt16 value; -} Rte_DE_UInt16; +typedef uint8 Rte_ModeType_WdgMMode; +#define RTE_TRANSITION_WdgMMode ((Rte_ModeType_WdgMMode)5) +#define RTE_MODE_WdgMMode_ALIVE_OK ((Rte_ModeType_WdgMMode)3) +#define RTE_MODE_WdgMMode_ALIVE_FAILED ((Rte_ModeType_WdgMMode)2) +#define RTE_MODE_WdgMMode_ALIVE_EXPIRED ((Rte_ModeType_WdgMMode)1) +#define RTE_MODE_WdgMMode_ALIVE_STOPPED ((Rte_ModeType_WdgMMode)4) +#define RTE_MODE_WdgMMode_ALIVE_DEACTIVATED ((Rte_ModeType_WdgMMode)0) typedef struct { } Rte_PDS_Blinker_DigitalOutput_P; diff --git a/boards/mpc5516it/examples/led_rte/led_rte_ecuc_mpc5516.arxml b/boards/mpc5516it/examples/led_rte/led_rte_ecuc_mpc5516.arxml index 710e482b..01657198 100644 --- a/boards/mpc5516it/examples/led_rte/led_rte_ecuc_mpc5516.arxml +++ b/boards/mpc5516it/examples/led_rte/led_rte_ecuc_mpc5516.arxml @@ -992,6 +992,11 @@ DigitalOutput_Set_RunnableMapping + + + + + /ArcCore/Rte/SwComponentInstance/RunnableEntityMapping @@ -1072,7 +1077,7 @@ - + SignalId /led_rte_ecuc_mpc5516/GeneratedIoHardwareAbstraction/IoHwAb_SignalType 0 -- 2.39.2