1 /* -------------------------------- Arctic Core ------------------------------
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
6 * This source code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by the
8 * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * -------------------------------- Arctic Core ------------------------------*/
18 #include "Platform_Types.h"
19 #include "Os.h" // includes Os_Cfg.h
20 #include "os_config_macros.h"
\r
22 #include "kernel_offset.h"
\r
23 #include "alist_i.h"
\r
26 extern void dec_exception( void );
\r
28 OsTickType OsTickFreq = 1000;
31 #define SERVICE_CNT 1
\r
34 #if ( OS_SC3 == STD_ON) || ( OS_SC4==STD_ON)
\r
35 GEN_TRUSTEDFUNCTIONS_LIST
\r
37 //--- APPLICATIONS ----
\r
39 GEN_APPLICATION_HEAD {
\r
44 NULL,NULL,NULL , 0,0,0,0,0,0 )
\r
48 // --- RESOURCES ---
\r
51 GEN_RESOURCE(RES_SCHEDULER,RESOURCE_TYPE_STANDARD,0,0,0), // Standard resource..
\r
56 DECLARE_STACK(OsIdle,PRIO_STACK_SIZE);
\r
57 DECLARE_STACK(etask_1,PRIO_STACK_SIZE);
\r
58 DECLARE_STACK(etask_2,PRIO_STACK_SIZE);
\r
59 DECLARE_STACK(btask_3,PRIO_STACK_SIZE);
\r
66 APPLICATION_ID_application_1/*app*/,
\r
73 APPLICATION_ID_application_1/*app*/,
\r
80 APPLICATION_ID_application_1/*app*/,
\r
88 APPLICATION_ID_application_1/*app*/,
\r
94 // --- INTERRUPTS ---
\r
96 uint8_t os_interrupt_stack[OS_INTERRUPT_STACK_SIZE] __attribute__ ((aligned (0x10)));
\r
98 GEN_IRQ_VECTOR_TABLE_HEAD {};
99 GEN_IRQ_ISR_TYPE_TABLE_HEAD {};
100 GEN_IRQ_PRIORITY_TABLE_HEAD {};
102 // --- COUNTERS ---
\r
104 GEN_COUNTER( COUNTER_ID_OsTick,
111 CounterType Os_Arc_OsTickCounter = COUNTER_ID_OsTick;
113 // --- MESSAGES ---
\r
118 GEN_ALARM_AUTOSTART( 0, ALARM_AUTOSTART_ABSOLUTE, 100, 10, OSDEFAULTAPPMODE );
121 GEN_ALARM( 0,"Alarm1",COUNTER_ID_OsTick,
122 GEN_ALARM_AUTOSTART_NAME(0),
\r
123 ALARM_ACTION_SETEVENT, TASK_ID_etask_1, 2, 0 ),
\r
126 // --- SCHEDULETABLES ---
\r
130 GEN_HOOKS( StartupHook, ProtectionHook, ShutdownHook, ErrorHook, PreTaskHook, PostTaskHook )
\r
136 uint32 os_dbg_mask = \
\r
138 D_ISR_MASTER_PRINT |\
\r
140 D_ISR_RAMLOG | D_TASK | D_ALARM;
\r
143 // | D_ALARM | D_TASK;
\r
146 #include "os_config_funcs.h"
\r