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 ------------------------------*/
24 #include "os_config_macros.h"
\r
28 #include "kernel_offset.h"
\r
29 //#include "Hooks.h"
\r
31 extern void dec_exception( void );
\r
33 GEN_APPLICATION_HEAD {
\r
34 GEN_APPLICATON(BLINKER_APP_ID,"PwmApp",true,NULL,NULL,NULL , 0,0,0,0,0,0 )
\r
38 GEN_RESOURCE(RES_SCHEDULER,RESOURCE_TYPE_STANDARD,0,0,0), // Standard resource..
\r
42 DECLARE_STACK(OsIdle,PRIO_STACK_SIZE);
\r
43 DECLARE_STACK(bTask25,PRIO_STACK_SIZE);
\r
44 DECLARE_STACK(bTask100,PRIO_STACK_SIZE);
\r
45 DECLARE_STACK(Startup,PRIO_STACK_SIZE);
\r
52 BLINKER_APP_ID/*app*/,
\r
59 BLINKER_APP_ID/*app*/,
\r
62 GEN_BTASK( bTask100,
\r
66 BLINKER_APP_ID/*app*/,
\r
73 BLINKER_APP_ID/*app*/,
\r
80 // --- INTERRUPTS ---
\r
81 uint8_t os_interrupt_stack[OS_INTERRUPT_STACK_SIZE] __attribute__ ((aligned (0x10)));
\r
84 void * intc_vector_tbl[NUMBER_OF_INTERRUPTS_AND_EXCEPTIONS] __attribute__ ((aligned (0x0800),section(".data")))= {
\r
87 // The type of vector
\r
88 uint8 intc_type_tbl[NUMBER_OF_INTERRUPTS_AND_EXCEPTIONS] = {
\r
94 GEN_COUNTER( OS_TICK_COUNTER,
\r
106 .counter = &counter_list[OS_TICK_COUNTER],
\r
107 .counter_id = OS_TICK_COUNTER,
\r
110 .type = ALARM_ACTION_ACTIVATETASK,
\r
111 .task_id = TASK_ID_bTask25,
\r
118 .counter = &counter_list[OS_TICK_COUNTER],
\r
119 .counter_id = OS_TICK_COUNTER,
\r
122 .type = ALARM_ACTION_ACTIVATETASK,
\r
123 .task_id = TASK_ID_bTask100,
\r
130 GEN_HOOKS( StartupHook, ProtectionHook, ShutdownHook, ErrorHook, PreTaskHook, PostTaskHook )
\r
133 uint32 os_dbg_mask = 0;
\r
135 // D_MASTER_PRINT |\
\r
136 // D_ISR_MASTER_PRINT |\
\r
139 // D_ALARM | D_TASK;
\r
142 #include "os_config_funcs.h"
\r