annotate chipsetsw/system/Main/create_RVtasks.c @ 25:0a6d65238088 default tip

use neutralized version of bootloader.lib
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 07 Sep 2015 18:21:02 +0000
parents abe969a9b145
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
1 /*************************************************************************************
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
2 * *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
3 * Name create_RVtasks.c *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
4 * *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
5 * Function this file contains functions allowing tasks creation in *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
6 * the Riviera environment *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
7 * *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
8 * Version 0.1 *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
9 * *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
10 * Date Modification *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
11 * ------------------------------------ *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
12 * 03 August 2000 Create *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
13 * *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
14 * Author Pascal Puel *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
15 * *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
16 * (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
17 * *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
18 * --------------------------------------------------------------------------------- *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
19 * *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
20 * History: *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
21 * *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
22 * 10/18/2001 - Updated for R2D by Christophe Favergeon *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
23 * 08/28/2002 - Clean-Up by Gerard Cauvy *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
24 * *
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
25 ************************************************************************************/
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
26
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
27 #ifndef _WINDOWS
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
28 #include "rv.cfg"
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
29 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
30
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
31 #include "rv/rv_general.h"
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
32 #include "rvf/rvf_api.h"
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
33 #include "rvm/rvm_api.h"
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
34 #include "rvm/rvm_use_id_list.h"
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
35 #include "rvt/rvt_gen.h"
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
36 //sys_types.h is necessary for function prototypes in buzzer.h
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
37 #include "sys_types.h"
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
38 #include "buzzer/buzzer.h"
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
39 #include "rv/rv_defined_swe.h"
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
40 #include "chipset.cfg"
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
41
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
42 #ifndef _WINDOWS
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
43 # include "power/power.h"
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
44 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
45
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
46 #include <stdio.h>
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
47 #include <string.h>
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
48
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
49
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
50 #define START_TASK_ID (MAX_RVF_TASKS-1)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
51 #define RV_START_TASK_PRIO (249)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
52
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
53 T_RVT_USER_ID rv_trace_user_id = 0xff;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
54 T_RVT_USER_ID etm_trace_user_id;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
55
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
56 extern void etm_receive(unsigned char *inbuf, unsigned short size);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
57
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
58 #ifdef MIXED_TRACE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
59 T_RVT_USER_ID l23_trace_user_id;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
60 extern void ext_processExtInput (T_RVT_BUFFER, UINT16);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
61 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
62
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
63 #ifdef RVM_RNET_BR_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
64 T_RVT_USER_ID rnet_trace_user_id;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
65 extern void rnet_receive (UINT8 *inbuf, UINT16 size);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
66 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
67
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
68 #if (TEST==1)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
69
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
70 // The name that uniquely identifies the Memory Bank MUST be
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
71 // 'TEST1', whereas it might be used by some other software
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
72 // entity for testing purpose.
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
73 #define RVTEST_MENU_MB_NAME ("TEST1")
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
74
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
75 // Memory requirements.
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
76 #define RVTEST_MENU_MB_SIZE (5000)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
77 #define RVTEST_MENU_MB_WATERMARK (4000)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
78
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
79 extern void rv_test (UINT32 p);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
80 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
81
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
82
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
83 /*******************************************************************************
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
84 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
85 ** Function rvt_init_trace
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
86 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
87 ** Description This function is called by the RV_START task to register
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
88 ** the Riviera Frame in the trace module
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
89 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
90 ** Returns void
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
91 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
92 *******************************************************************************/
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
93 void rvt_init_trace (void)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
94 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
95 rvt_register_id ("RV", &rv_trace_user_id, rvt_set_trace_level);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
96 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
97
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
98 #ifdef RVM_ETM_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
99 /*******************************************************************************
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
100 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
101 ** Function etm_init_trace
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
102 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
103 ** Description This function is called by the RV_START task to register
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
104 ** the ETM in the trace module
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
105 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
106 ** Returns void
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
107 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
108 *******************************************************************************/
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
109 void etm_init_trace (void)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
110 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
111 extern T_RVT_USER_ID tm_trace_user_id;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
112
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
113 rvt_register_id("TM", &etm_trace_user_id, etm_receive);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
114
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
115 #if (PSP_STANDALONE != 1)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
116 tm_trace_user_id = etm_trace_user_id; // TML1 use the tm_trace_user_id
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
117 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
118 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
119 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
120
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
121 #ifdef MIXED_TRACE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
122 /*******************************************************************************
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
123 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
124 ** Function l23_init_trace
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
125 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
126 ** Description This function is called by the RV_START task to register
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
127 ** the Protocol Stack (Layers 2 & 3) in the trace module
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
128 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
129 ** Returns void
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
130 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
131 *******************************************************************************/
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
132 void l23_init_trace (void)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
133 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
134 rvt_register_id ("L23", &l23_trace_user_id, ext_processExtInput);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
135 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
136 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
137
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
138 #ifdef RVM_RNET_BR_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
139 /*******************************************************************************
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
140 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
141 ** Function rnet_init_trace
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
142 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
143 ** Description This function is called by the RV_START task to register
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
144 ** RNET in the trace module
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
145 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
146 ** Returns void
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
147 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
148 *******************************************************************************/
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
149 void rnet_init_trace (void)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
150 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
151 rvt_register_id ("RNET", &rnet_trace_user_id, rnet_receive);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
152 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
153 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
154
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
155
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
156 /*******************************************************************************
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
157 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
158 ** Function rv_start_swe_and_check
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
159 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
160 ** Description This internal function is called by the stater task to
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
161 ** start the basic SWEs in the system and to check if
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
162 ** they started successfully or not.
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
163 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
164 ** Returns void
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
165 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
166 *******************************************************************************/
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
167 #if (CHIPSET!=15) || (REMU==0)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
168 BOOLEAN rv_start_swe_and_check (T_RVM_USE_ID swe_use_id, T_RVM_NAME swe_name)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
169 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
170 T_RV_RETURN return_path = {0};
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
171 T_RV_HDR *msg_ptr = NULL;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
172 UINT16 rec_evt = 0;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
173 char error_msg[150] = "";
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
174
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
175 /* temporary initialization of addr_id */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
176 return_path.addr_id = START_TASK_ID;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
177 return_path.callback_func = NULL;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
178
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
179 /* attempt to initialize the required SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
180 if (rvm_start_swe (swe_use_id, return_path) != RVM_OK)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
181 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
182 sprintf (error_msg,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
183 "create_RVtasks: Unable to start %s (0x%.8x). Error in rvm_start_swe",
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
184 (char *)swe_name,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
185 swe_use_id);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
186 rvf_send_trace ((char *)error_msg,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
187 strlen((char *)error_msg),
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
188 NULL_PARAM,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
189 RV_TRACE_LEVEL_WARNING, RVM_USE_ID);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
190 return FALSE;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
191 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
192
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
193 /*
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
194 * wait for the SWE to be actually started.
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
195 * note that the 'RVM_EVT_TO_APPLI' notification is sent back
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
196 * once xxx_start () is invoked.
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
197 */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
198 while (rec_evt = rvf_evt_wait (START_TASK_ID, \
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
199 0xFFFF, \
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
200 0xFFFFFFFFL))
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
201 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
202 if (rec_evt & ~RVF_TASK_MBOX_0_EVT_MASK)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
203 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
204 sprintf (error_msg,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
205 "create_RVtasks: Starting %s (0x%.8x). Event ",
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
206 (char *)swe_name,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
207 swe_use_id);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
208 rvf_send_trace ((char *)error_msg,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
209 strlen((char *)error_msg),
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
210 (UINT32)rec_evt,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
211 RV_TRACE_LEVEL_WARNING,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
212 RVM_USE_ID);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
213 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
214 if (rec_evt & RVF_TASK_MBOX_0_EVT_MASK)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
215 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
216 if ((msg_ptr = (T_RV_HDR *) rvf_read_addr_mbox (START_TASK_ID, \
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
217 RVF_TASK_MBOX_0)) == NULL)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
218 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
219 sprintf (error_msg,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
220 "create_RVtasks: Starting %s (0x%.8x). Message NULL",
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
221 (char *)swe_name,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
222 swe_use_id);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
223 rvf_send_trace ((char *)error_msg,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
224 strlen((char *)error_msg),
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
225 NULL_PARAM,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
226 RV_TRACE_LEVEL_WARNING,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
227 RVM_USE_ID);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
228 continue;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
229 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
230 if (msg_ptr->msg_id != RVM_EVT_TO_APPLI)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
231 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
232 sprintf (error_msg,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
233 "create_RVtasks: Starting %s (0x%.8x). Message ID ",
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
234 (char *)swe_name,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
235 swe_use_id);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
236 rvf_send_trace ((char *)error_msg,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
237 strlen((char *)error_msg),
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
238 msg_ptr->msg_id,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
239 RV_TRACE_LEVEL_WARNING,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
240 RVM_USE_ID);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
241 rvf_free_buf (msg_ptr);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
242 continue;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
243 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
244 break;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
245 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
246 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
247 switch (((T_RVM_APPLI_RESULT *)msg_ptr)->result)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
248 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
249 case RVM_OK:
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
250 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
251 sprintf (error_msg,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
252 "create_RVtasks: %s (0x%.8x) started",
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
253 (char *)swe_name,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
254 swe_use_id);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
255 rvf_send_trace ((char *)error_msg,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
256 strlen ((char *)error_msg),
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
257 NULL_PARAM,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
258 RV_TRACE_LEVEL_DEBUG_HIGH,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
259 RVM_USE_ID);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
260 rvf_free_buf (msg_ptr);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
261 return TRUE;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
262 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
263 case RVM_NOT_READY:
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
264 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
265 sprintf (error_msg,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
266 "create_RVtasks: %s (0x%.8x) already started",
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
267 (char *)swe_name,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
268 swe_use_id);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
269 rvf_send_trace ((char *)error_msg,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
270 strlen ((char *)error_msg),
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
271 NULL_PARAM,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
272 RV_TRACE_LEVEL_DEBUG_MEDIUM,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
273 RVM_USE_ID);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
274 rvf_free_buf (msg_ptr);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
275 return TRUE;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
276 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
277 default:
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
278 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
279 break;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
280 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
281 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
282 sprintf (error_msg,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
283 "create_RVtasks: Unable to start %s (0x%.8x). Error ",
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
284 (char *)swe_name,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
285 swe_use_id);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
286 rvf_send_trace ((char *)error_msg,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
287 strlen ((char *)error_msg),
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
288 ((T_RVM_APPLI_RESULT *)msg_ptr)->result,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
289 RV_TRACE_LEVEL_WARNING,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
290 RVM_USE_ID);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
291 rvf_free_buf (msg_ptr);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
292 return FALSE;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
293 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
294
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
295 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
296 /*******************************************************************************
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
297 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
298 ** Function rv_start
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
299 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
300 ** Description This function is called by the RV_START task. It starts the
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
301 ** Riviera environment and the TRACE task. This start must be
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
302 ** done after Application_initialize().
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
303 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
304 ** Returns void
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
305 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
306 *******************************************************************************/
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
307 void rv_start (void)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
308 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
309 #if (TEST==1)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
310 T_RVF_MB_ID mb_id = RVF_INVALID_MB_ID;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
311 T_RVF_MB_PARAM mb_requirements = {0};
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
312 volatile UINT16 result = 0;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
313 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
314
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
315 /* initialize the RVM and the RVF at the same time */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
316 #if (CHIPSET!=15) || (REMU==0)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
317 rvm_start_environment ();
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
318 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
319 /*
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
320 ** Init trace module
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
321 */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
322 rvt_init_trace ();
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
323 #ifdef RVM_ETM_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
324 etm_init_trace ();
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
325 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
326
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
327 #if (_GSM==1)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
328 #ifdef MIXED_TRACE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
329 l23_init_trace ();
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
330 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
331 #endif // if (_GSM==1)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
332
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
333 #ifdef RVM_RNET_BR_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
334 rnet_init_trace ();
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
335 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
336
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
337 #if (REMU==1)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
338 #ifdef RVM_LLS_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
339 /* initialize LLS SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
340 lls_init();
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
341 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
342
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
343 #ifdef RVM_RNG_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
344 /* initialize RNG SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
345 rng_init ();
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
346 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
347 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
348
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
349 #if (CHIPSET!=15) || (REMU==0)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
350 #ifdef RVM_RVT_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
351 /* initialize TRACE SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
352 rv_start_swe_and_check (RVT_USE_ID, "RVT");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
353 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
354
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
355 #ifdef RVM_I2C_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
356 rv_start_swe_and_check (I2C_USE_ID, "I2C");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
357 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
358
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
359 #ifdef RVM_DMA_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
360 rv_start_swe_and_check (DMA_USE_ID, "DMA");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
361 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
362
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
363 #ifdef RVM_DMG_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
364 rv_start_swe_and_check (DMG_USE_ID, "DMG");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
365 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
366
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
367 #ifdef RVM_NAN_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
368 rv_start_swe_and_check (NAN_USE_ID, "NAN");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
369 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
370
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
371 #ifdef RVM_MC_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
372 rv_start_swe_and_check (MC_USE_ID, "MC");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
373 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
374
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
375 #ifdef RVM_FFS_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
376 /* initialize FFS SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
377 rv_start_swe_and_check (FFS_USE_ID, "FFS");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
378 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
379
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
380 #ifdef RVM_SPI_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
381 /* initialize SPI SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
382 rv_start_swe_and_check (SPI_USE_ID, "SPI");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
383 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
384
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
385 #ifdef RVM_PWR_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
386 /* initialize PWR SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
387 rv_start_swe_and_check (PWR_USE_ID, "PWR");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
388 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
389
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
390 #ifdef RVM_LCC_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
391 /* initialize LCC(PWR) SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
392 rv_start_swe_and_check (LCC_USE_ID, "LCC");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
393 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
394
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
395 #ifdef RVM_KPD_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
396 /* initialize KPD SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
397 rv_start_swe_and_check (KPD_USE_ID, "KPD");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
398 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
399
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
400 #ifdef RVM_DAR_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
401 /* initialize DAR SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
402 rv_start_swe_and_check (DAR_USE_ID, "DAR");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
403 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
404
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
405 #ifdef RVM_R2D_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
406 /* initialize R2D SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
407 rv_start_swe_and_check (R2D_USE_ID, "R2D");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
408 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
409
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
410 #ifdef RVM_LCD_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
411 /* initialize LCD SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
412 rv_start_swe_and_check (LCD_USE_ID, "LCD");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
413 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
414
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
415
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
416 #ifdef RVM_ETM_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
417 /* initialize ETM SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
418 rv_start_swe_and_check (ETM_USE_ID, "ETM");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
419 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
420
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
421 #ifdef RVM_TTY_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
422 /* initialize TTY SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
423 rv_start_swe_and_check (TTY_USE_ID, "TTY");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
424 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
425
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
426
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
427 #ifdef RVM_AUDIO_MAIN_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
428 /* initialize AUDIO SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
429 rv_start_swe_and_check (AUDIO_USE_ID, "AUDIO");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
430 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
431
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
432 #if (PSP_STANDALONE==0)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
433 #ifdef RVM_AUDIO_BGD_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
434 /* initialize AUDIO BACKGROUND SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
435 rv_start_swe_and_check (AUDIO_BGD_USE_ID, "AUDIO_BGD");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
436 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
437 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
438
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
439 #if (PSP_STANDALONE==0)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
440 #ifdef RVM_BAE_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
441 /* initialize BAE SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
442 rv_start_swe_and_check (BAE_USE_ID, "BAE");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
443 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
444 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
445
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
446 #ifdef RVM_AS_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
447 /* initialize AS (Audio Services) SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
448 rv_start_swe_and_check (AS_USE_ID, "AS");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
449 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
450
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
451 #if (PSP_STANDALONE==0)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
452 #ifdef RVM_BPR_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
453 /* initialize sample BPR SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
454 rv_start_swe_and_check (BPR_USE_ID, "BPR");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
455 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
456
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
457 #endif /* PSP_STANDALONE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
458
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
459 #ifdef RVM_RTC_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
460 /* initialize RTC SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
461 rv_start_swe_and_check (RTC_USE_ID, "RTC");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
462 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
463
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
464 #ifdef RVM_LLS_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
465 /* initialize LLS SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
466 rv_start_swe_and_check (LLS_USE_ID, "LLS");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
467 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
468
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
469 #ifdef RVM_TUT_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
470 /* initialize TUT SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
471 // rv_start_swe_and_check (TUT_USE_ID, "TUT");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
472 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
473
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
474 #ifdef RVM_RGUI_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
475 /* initialize RGUI SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
476 rv_start_swe_and_check (RGUI_USE_ID, "RGUI");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
477 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
478
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
479 #ifdef RVM_ATP_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
480 /* initialize ATP SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
481 rv_start_swe_and_check (ATP_USE_ID, "ATP");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
482 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
483
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
484 /*
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
485 * FreeCalypso: the main.lib:Create_RVtasks.obj binary blob we got with our
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
486 * TCS211 semi-src does not start MKS, even though the SWE itself is enabled
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
487 * in the build system and pulled into the link.
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
488 */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
489 #if 0
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
490 #ifdef RVM_MKS_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
491 rv_start_swe_and_check (MKS_USE_ID, "MKS");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
492 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
493 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
494
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
495 #ifdef RVM_IMG_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
496 rv_start_swe_and_check (IMG_USE_ID, "IMG");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
497 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
498
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
499 #ifdef RVM_GBI_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
500 rv_start_swe_and_check (GBI_USE_ID, "GBI");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
501 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
502
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
503 #ifdef RVM_CAMD_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
504 rv_start_swe_and_check (CAMD_USE_ID, "CAMD");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
505 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
506
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
507 #ifdef RVM_USB_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
508 /* initialize USB SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
509 rv_start_swe_and_check (USB_USE_ID, "USB");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
510 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
511
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
512 #ifdef RVM_CAMA_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
513 rv_start_swe_and_check (CAMA_USE_ID, "CAMA");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
514 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
515
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
516 #ifdef RVM_MFW_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
517 /* initialize MFW SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
518 rv_start_swe_and_check (MFW_USE_ID, "MFW");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
519 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
520
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
521 #ifdef RVM_SMBS_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
522 /* initialize SMBS SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
523 rv_start_swe_and_check (SMBS_USE_ID, "SMBS");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
524 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
525
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
526 #ifdef RVM_USBFAX_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
527 /* initialize USB SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
528 rv_start_swe_and_check (USBFAX_USE_ID, "USBFAX");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
529 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
530
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
531 #ifdef RVM_USBTRC_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
532 /* initialize USBTRC SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
533 rv_start_swe_and_check (USBTRC_USE_ID, "USBTRC");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
534 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
535
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
536 #ifdef RVM_USBMS_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
537 /* initialize USBMS SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
538 rv_start_swe_and_check (USBMS_USE_ID, "USBMS");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
539 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
540
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
541 #ifdef RVM_RFS_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
542 /* initialize RFS SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
543 rv_start_swe_and_check (RFS_USE_ID, "RFS");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
544 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
545
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
546
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
547 #ifdef RVM_CCI_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
548 /* initialize CCI SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
549 rv_start_swe_and_check (CCI_USE_ID, "CCI");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
550 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
551
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
552 #ifdef RVM_BTUI_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
553 /* initialize sample BTUI SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
554 rv_start_swe_and_check (BTUI_USE_ID, "BTUI");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
555 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
556 #ifdef RVM_JPEG_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
557 /* initialize sample JPEG SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
558 rv_start_swe_and_check (JPEG_USE_ID, "JPEG");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
559 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
560 #ifdef RVM_JPEG_SWE
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
561 /* initialize sample JPEG SWE */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
562 rv_start_swe_and_check (JPEG_USE_ID, "JPEG");
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
563 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
564 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
565 // WARNING WARNING ----------------------------------------------------
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
566 // Do not perform any SWE initialization after this line !
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
567 // WARNING WARNING ----------------------------------------------------
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
568
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
569 #if (REMU==0) /* moved this to kpd start function. rv_start function for REMU. rv_start is called from Application Initialize
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
570 context. Since this is a blocking call, we cannot afford to block in Application_Initialization. */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
571 #ifndef _WINDOWS
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
572 // Perform switch ON processing.
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
573 Switch_ON();
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
574 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
575
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
576 #if (_GSM==1)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
577 BZ_KeyBeep_ON (); // Audio feedback if ON/OFF pushed
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
578 #endif // if (_GSM==1)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
579
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
580 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
581 #if (CHIPSET!=15) || (REMU==0)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
582 /* dump the Riviera memory state */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
583 rvf_delay (RVF_MS_TO_TICKS (300)) ;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
584 rvf_dump_mem ();
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
585 rvf_dump_pool();
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
586 rvf_dump_tasks();
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
587 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
588 #if (TEST==1)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
589 #if (PSP_STANDALONE == 1)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
590 /* Just For Testing Reset of UICC */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
591 // bspUicc_reset(1,0);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
592
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
593 /* Just For Testing GEA */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
594 // bspTest_Gea3_ciph_req(1);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
595
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
596 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
597 #if (CHIPSET!=15) || (REMU==0)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
598 // create a Memory Bank for the 'Test Selection Menu'.
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
599 mb_requirements.size = RVTEST_MENU_MB_SIZE;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
600 mb_requirements.watermark = RVTEST_MENU_MB_WATERMARK;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
601 mb_requirements.pool_id = RVF_POOL_EXTERNAL_MEM;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
602 if (rvf_create_mb (RVTEST_MENU_MB_NAME,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
603 mb_requirements,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
604 &mb_id) != RVF_OK)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
605 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
606 // error case.
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
607 result++;
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
608 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
609
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
610 #if (PSP_STANDALONE == 1)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
611 /* Just For Testing Reset of UICC */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
612 bspUicc_reset(1,0); /* Just For Testing GEA */
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
613 bspTest_Gea3_ciph_req(1);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
614 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
615
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
616 // Go to the 'Test Selection Menu' (using rv_test ()).
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
617 rv_test (0);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
618 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
619 #endif // (TEST==1)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
620
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
621 #if (CHIPSET!=15) || (REMU==0)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
622 // infinite wait
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
623 rvf_evt_wait (START_TASK_ID,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
624 0xFFFF,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
625 0xFFFFFFFFL);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
626 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
627 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
628
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
629 #if (TEST==1)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
630 #define RV_START_TASK_STACK (4096)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
631 #else
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
632 #define RV_START_TASK_STACK (1024)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
633 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
634 #if (CHIPSET!=15) || (REMU==0)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
635 UINT8 stack_start[RV_START_TASK_STACK];
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
636
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
637
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
638 /*******************************************************************************
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
639 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
640 ** Function create_tasks
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
641 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
642 ** Description This function is called once at startup to allow task
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
643 ** creation thanks to Riviera environment.
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
644 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
645 ** Returns void
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
646 **
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
647 *******************************************************************************/
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
648 void create_tasks (void)
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
649 {
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
650
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
651 // Tasks creation
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
652 rvf_create_legacy_task ((TASKPTR) rv_start, START_TASK_ID,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
653 "RV_START", stack_start,
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
654 RV_START_TASK_STACK, RV_START_TASK_PRIO, 0, RUNNING);
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
655
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
656 }
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
657 #endif
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
658
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
659
abe969a9b145 contortions for rebuilding create_RVtasks.c from source (pulled from LoCosto)
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
660