1 /* -------------------------------- Arctic Core ------------------------------
\r
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
\r
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
\r
6 * This source code is free software; you can redistribute it and/or modify it
\r
7 * under the terms of the GNU General Public License version 2 as published by the
\r
8 * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
\r
10 * This program is distributed in the hope that it will be useful, but
\r
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
\r
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
\r
14 * -------------------------------- Arctic Core ------------------------------*/
\r
16 * This file only be use with the Os_Cfg.c file and os_config_macros.h
\r
18 #include "internal.h"
\r
21 #error os_config_funcs.h is deprecated
\r
25 #if (OS_SC3 == STD_ON) || (OS_SC4 == STD_ON)
\r
26 #if (OS_STATUS_STANDARD == STD_ON )
\r
27 #error req OS327 not fullfilled
\r
32 // COUNTER, RESOURCE, TSAK, must be at least 1
\r
34 #if (OS_ALARM_CNT!=0)
\r
37 OsErrorType os_error;
\r
39 //-------------------------------------------------------------------
\r
41 /*-----------------------------------------------------------------*/
\r
44 /*-----------------------------------------------------------------*/
\r
46 /*-----------------------------------------------------------------*/
\r
50 /*-----------------------------------------------------------------*/
\r
53 /*-----------------------------------------------------------------*/
\r
56 OsMessageType *Os_CfgGetMessage(MessageType message_id) {
\r
57 #if (OS_MESSAGE_CNT!=0)
\r
58 return &message_list[message_id];
\r
64 uint32 Os_CfgGetMessageCnt(void ) {
\r
65 return OS_MESSAGE_CNT;
\r
69 /*-----------------------------------------------------------------*/
\r
71 #if (OS_USE_APPLICATIONS == STD_ON)
\r
72 uint32 Os_CfgGetServiceCnt( void ) {
\r
73 return OS_SERVICE_CNT;
\r