From b33f000fa488366e643f6ffdf4aca4973b23f8a1 Mon Sep 17 00:00:00 2001 From: mahi Date: Mon, 21 May 2012 15:09:40 +0200 Subject: [PATCH] Added IoHwAb Service Component to board_common.mk --- boards/board_common.mk | 1 + .../led_rte/IoHwAb_ServiceComponent.c | 47 ------------------- .../led_rte/IoHwAb_ServiceComponent.c | 27 ----------- 3 files changed, 1 insertion(+), 74 deletions(-) delete mode 100644 boards/mpc5516it/examples/led_rte/IoHwAb_ServiceComponent.c delete mode 100644 boards/mpc5567qrtech/examples/led_rte/IoHwAb_ServiceComponent.c diff --git a/boards/board_common.mk b/boards/board_common.mk index d8defd9b..873c4919 100644 --- a/boards/board_common.mk +++ b/boards/board_common.mk @@ -251,6 +251,7 @@ vpath-$(USE_PDUR) += $(ROOTDIR)/communication/PduR obj-$(USE_IOHWAB) += IoHwAb_Digital.o obj-$(USE_IOHWAB) += IoHwAb_Analog.o obj-$(USE_IOHWAB) += IoHwAb_Pwm.o +obj-$(USE_IOHWAB)-$(CFG_IOHWAB_USE_SERVICE_COMPONENT) += IoHwAb_ServiceComponent.o #Dem diff --git a/boards/mpc5516it/examples/led_rte/IoHwAb_ServiceComponent.c b/boards/mpc5516it/examples/led_rte/IoHwAb_ServiceComponent.c deleted file mode 100644 index dbc54df6..00000000 --- a/boards/mpc5516it/examples/led_rte/IoHwAb_ServiceComponent.c +++ /dev/null @@ -1,47 +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 "Rte_Type.h" -#include "IoHwAb.h" - -Std_ReturnType DigitalInput_Get(IoHwAb_SignalType signalId, - DigitalLevel* value, SignalQuality* quality) -{ - Std_ReturnType rv; - IoHwAb_StatusType s; - - rv = IoHwAb_Get_Digital( signalId, value, &s ); - *quality= (SignalQuality)s.quality; - return rv; -} - - -Std_ReturnType DigitalOutput_Set(IoHwAb_SignalType signalId, - const DigitalLevel value) -{ - IoHwAb_StatusType status; - return IoHwAb_Set_Digital( signalId, value, &status ); -} - -Std_ReturnType DigitalOutput_ReadBack(IoHwAb_SignalType signalId, - DigitalLevel* value) -{ - Std_ReturnType rv; - IoHwAb_StatusType s; - - rv = IoHwAb_Get_Digital( signalId, value, &s ); - return rv; -} - diff --git a/boards/mpc5567qrtech/examples/led_rte/IoHwAb_ServiceComponent.c b/boards/mpc5567qrtech/examples/led_rte/IoHwAb_ServiceComponent.c deleted file mode 100644 index 557d5fe9..00000000 --- a/boards/mpc5567qrtech/examples/led_rte/IoHwAb_ServiceComponent.c +++ /dev/null @@ -1,27 +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 "Rte_Type.h" -#include "IoHwAb.h" - - - -Std_ReturnType DigitalOutput_Set(IoHwAb_SignalType signalId, - const DigitalLevel value) -{ - IoHwAb_StatusType status; - return IoHwAb_Set_Digital( signalId, value, &status ); -} - -- 2.39.2