--- /dev/null
+\r
+#include "McuExtensions.h"\r
+\r
+imask_t McuE_EnterCriticalSection(void) {\r
+ return 0;\r
+}\r
+\r
+void McuE_ExitCriticalSection(imask_t old_state) {\r
+\r
+}\r
\r
# What buildable modules does this board have, \r
# default or private\r
-MOD_AVAIL+=COM PDUR NEWLIB DET\r
+MOD_AVAIL+=COM PDUR NEWLIB DET DCM DEM COMM CANSM CANTP CANIF CANNM NM\r
\r
# Needed by us\r
MOD_USE=\r
+\r
+# Stubs\r
+obj-y += McuExtensionsStub.o
\ No newline at end of file
(void) initRx15765RuntimeData(rxConfig, rxRuntime); /** @req CANTP124 */\r
pduLength = getPduLength(&rxConfig->CanTpAddressingFormant, SINGLE_FRAME, rxPduData);\r
\r
- VALIDATE_NO_RV( rxRuntime->pdurBuffer->SduDataPtr != NULL,\r
+ if (rxRuntime->pdurBuffer != NULL) {\r
+ VALIDATE_NO_RV( rxRuntime->pdurBuffer->SduDataPtr != NULL,\r
SERVICE_ID_CANTP_RX_INDICATION, CANTP_E_INVALID_RX_LENGTH );\r
+ }\r
\r
if (rxConfig->CanTpAddressingFormant == CANTP_STANDARD) { /** @req CANTP094 *//** @req CANTP095 */\r
data = &rxPduData->SduDataPtr[1];\r
#include "PduR.h"\r
#include "PduR_Com.h"\r
#include "Byteorder.h"\r
+#include "Det.h"\r
\r
extern Com_Arc_Config_type Com_Arc_Config;\r
\r
static ComM_ConfigType * ComM_Config;\r
\r
\r
-void ComM_Init( ComM_ConfigType * Config ){\r
+void ComM_Init(const ComM_ConfigType * Config ){\r
COMM_VALIDATE_PARAMETER( (Config != NULL), COMM_SERVICEID_INIT);\r
COMM_VALIDATE_PARAMETER( (Config->Channels != NULL), COMM_SERVICEID_INIT);\r
COMM_VALIDATE_PARAMETER( (Config->Users != NULL), COMM_SERVICEID_INIT);\r
#include "Dem.h"\r
#endif\r
#include "PduR.h"\r
-#include "Mcu.h"\r
+#include "McuExtensions.h"\r
#include "debug.h"\r
\r
/*\r
#include "ComM_Dcm.h"\r
#include "PduR_Dcm.h"\r
#include "ComStack_Types.h"\r
-#include "Mcu.h"\r
+#include "McuExtensions.h"\r
\r
// State variable\r
typedef enum\r
\r
\r
#include <string.h>\r
-#include "Mcu.h"\r
+#include "McuExtensions.h"\r
#include "Dcm.h"\r
#include "Dcm_Internal.h"\r
#include "Det.h"\r
#include "Dem.h"\r
#include "Det.h"\r
#include "MemMap.h"\r
+#if defined(USE_MCU)\r
#include "Mcu.h"\r
+#endif\r
\r
#define ZERO_SUB_FUNCTION 0x00\r
\r
static Dcm_NegativeResponseCodeType udsReadDtcInfoSub_0x06_0x10(const PduInfoType *pduRxData, PduInfoType *pduTxData)\r
{\r
Dcm_NegativeResponseCodeType responseCode = DCM_E_POSITIVERESPONSE;\r
- Dem_DTCOriginType dtcOrigin = NULL;\r
+ Dem_DTCOriginType dtcOrigin;\r
uint8 startRecNum;\r
uint8 endRecNum;\r
\r
\r
default:\r
responseCode = DCM_E_SUBFUNCTIONNOTSUPPORTED;\r
+ dtcOrigin = 0;\r
#if (DCM_DEV_ERROR_DETECT == STD_ON)\r
Det_ReportError(MODULE_ID_DCM, 0, DCM_UDS_READ_DTC_INFO, DCM_E_UNEXPECTED_PARAM);\r
#endif\r
if (dspUdsEcuResetData.resetPending) {\r
if (confirmPduId == dspUdsEcuResetData.resetPduId) {\r
dspUdsEcuResetData.resetPending = FALSE;\r
-#if ( MCU_PERFORM_RESET_API == STD_ON )\r
+#if defined(USE_MCU) && ( MCU_PERFORM_RESET_API == STD_ON )\r
Mcu_PerformReset();\r
#else\r
#if (DCM_DEV_ERROR_DETECT == STD_ON)\r
#define DEM_TYPES_H_\r
#include "Std_Types.h" /** @req DEM176.Std */\r
\r
+#define DEM_EVENT_DESTINATION_END_OF_LIST 0\r
+\r
/*\r
* DTC storage types\r
*/\r
#include "Std_Types.h"\r
#include "CanIf_Types.h"\r
#include "ComStack_Types.h"\r
+#if defined(USE_MCU)\r
#include "Mcu.h"\r
+#endif\r
\r
typedef struct {\r
uint32 txSuccessCnt;\r
\r
\r
/** Initializes the AUTOSAR Communication Manager and restarts the internal state machines.*/\r
-void ComM_Init( ComM_ConfigType *); /**< @req COMM146 */\r
+void ComM_Init(const ComM_ConfigType *); /**< @req COMM146 */\r
\r
/** De-initializes (terminates) the AUTOSAR Communication Manager. */\r
void ComM_DeInit(); /**< @req COMM147 */\r
#define Mcu_GetVersionInfo(_vi) STD_GET_VERSION_INFO(_vi,MCU)\r
#endif\r
\r
-typedef uint32_t imask_t;\r
-\r
/* ArcCore extensions */\r
+\r
void Irq_InstallVector(void (*func)(), IrqType vector, uint8_t priority, Cpu_t cpu );\r
void Irq_GenerateSoftInt( IrqType vector );\r
uint8_t Irq_GetCurrentPriority( Cpu_t cpu);\r
#if defined(CFG_MPC55XX)\r
uint32_t McuE_GetPeripheralClock( McuE_PeriperalClock_t type );\r
#endif\r
-imask_t McuE_EnterCriticalSection(void);\r
-void McuE_ExitCriticalSection(imask_t old_state);\r
+#include "McuExtensions.h"\r
\r
\r
\r
--- /dev/null
+/* -------------------------------- Arctic Core ------------------------------\r
+ * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
+ *\r
+ * Copyright (C) 2009 ArcCore AB <contact@arccore.com>\r
+ *\r
+ * This source code is free software; you can redistribute it and/or modify it\r
+ * under the terms of the GNU General Public License version 2 as published by the\r
+ * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
+ *\r
+ * This program is distributed in the hope that it will be useful, but\r
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\r
+ * for more details.\r
+ * -------------------------------- Arctic Core ------------------------------*/\r
+\r
+\r
+\r
+#ifndef _MCU_EXTENSIONS_H_\r
+#define _MCU_EXTENSIONS_H_\r
+\r
+#include "Std_Types.h"\r
+typedef uint32_t imask_t;\r
+\r
+imask_t McuE_EnterCriticalSection(void);\r
+void McuE_ExitCriticalSection(imask_t old_state);\r
+\r
+#endif\r