| ISF 2.2 rev 5 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

mqx_ksdk.c
Go to the documentation of this file.
1 /* ###################################################################
2 ** This component module is generated by Processor Expert. Do not modify it.
3 ** Filename : mqx_ksdk.c
4 ** Project : ISF2P2_K64F_MQX_PROJ
5 ** Processor : MK64FN1M0VLL12
6 ** Component : MQX_KSDK
7 ** Version : Component 1.2.0, Driver 01.00, CPU db: 3.00.000
8 ** Repository : KSDK 1.2.0
9 ** Compiler : GNU C Compiler
10 ** Date/Time : 2016-10-06, 13:38, # CodeGen: 0
11 ** Abstract :
12 ** MQX Lite RTOS Adapter component.
13 **
14 ** Copyright : 1997 - 2015 Freescale Semiconductor, Inc.
15 ** All Rights Reserved.
16 **
17 ** Redistribution and use in source and binary forms, with or without modification,
18 ** are permitted provided that the following conditions are met:
19 **
20 ** o Redistributions of source code must retain the above copyright notice, this list
21 ** of conditions and the following disclaimer.
22 **
23 ** o Redistributions in binary form must reproduce the above copyright notice, this
24 ** list of conditions and the following disclaimer in the documentation and/or
25 ** other materials provided with the distribution.
26 **
27 ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its
28 ** contributors may be used to endorse or promote products derived from this
29 ** software without specific prior written permission.
30 **
31 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
32 ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
33 ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
34 ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
35 ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
36 ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
37 ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
38 ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
39 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
40 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 **
42 ** http: www.freescale.com
43 ** mail: support@freescale.com
44 ** ###################################################################*/
45 /*!
46 ** @file mqx_ksdk.c
47 ** @version 01.00
48 ** @brief
49 ** MQX Lite RTOS Adapter component.
50 */
51 /*!
52 ** @addtogroup mqx_ksdk_module mqx_ksdk module documentation
53 ** @{
54 */
55
56 /* MODULE mqx_ksdk. */
57
58 #include "mqx_ksdk.h"
59 #include "bsp.h"
60
61 /* Application specific header file */
62 #include "rtos_main_task.h"
63 #include "os_tasks.h"
64 #include "MainTask.h"
65 #include "EventHandler_Task1.h"
66 extern void * kernel_data_prv;
67 #if MQXCFG_PREALLOCATED_SYSTEM_STACKS
68 extern uint8_t mqx_interrupt_stack[];
69 #endif
70
71
72 #define TASK_TEMPLATE_LIST_END {0, 0, 0, 0, 0, 0, 0}
73
74
75 /* MQX task template list */
76 const TASK_TEMPLATE_STRUCT MQX_template_list[] =
77 {
78 /* Task: MainTask */
79 {
80 /* Task number */ MAINTASK_TASK,
81 /* Entry point */ (TASK_FPTR)main_task,
82 /* Stack size */ MAINTASK_TASK_STACK_SIZE,
83 /* Task priority */ (PRIORITY_OSA_TO_RTOS(MAINTASK_TASK_PRIORITY)),
84 /* Task name */ MAINTASK_TASK_NAME,
85 /* Task attributes */ (MQX_AUTO_START_TASK),
86 /* Task parameter */ (uint32_t)(NULL),
87 /* Task time slice */ (uint32_t)(0U)
88 },
89 /* Task: EventHandler_Task1 */
90 {
91 /* Task number */ EVENTHANDLER_TASK1_TASK,
92 /* Entry point */ (TASK_FPTR)EH_task,
93 /* Stack size */ EVENTHANDLER_TASK1_TASK_STACK_SIZE,
94 /* Task priority */ (PRIORITY_OSA_TO_RTOS(EVENTHANDLER_TASK1_TASK_PRIORITY)),
95 /* Task name */ EVENTHANDLER_TASK1_TASK_NAME,
96 /* Task attributes */ (0),
97 /* Task parameter */ (uint32_t)(NULL),
98 /* Task time slice */ (uint32_t)(0U)
99 },
100 TASK_TEMPLATE_LIST_END
101 };
102
103 const _WEAK_SYMBOL(MQX_INITIALIZATION_STRUCT MQX_init_struct) =
104 {
105 /* PROCESSOR_NUMBER */ BSP_DEFAULT_PROCESSOR_NUMBER,
106 /* [KPSDK-2559] Workaround to make TAD happy. With new version of TAD START_OF_KERNEL_MEMORY and END_OF_KERNEL_MEMORY can be removed */
107 /* START_OF_KERNEL_MEMORY */ &kernel_data_prv,
108 /* END_OF_KERNEL_MEMORY */ BSP_DEFAULT_END_OF_HEAP,
109 /* INTERRUPT_STACK_SIZE */ BSP_DEFAULT_INTERRUPT_STACK_SIZE,
110 #if MQX_CUSTOM_MAIN
111 /* TASK_TEMPLATE_LIST */ NULL,
112 #else
113 /* TASK_TEMPLATE_LIST */ (TASK_TEMPLATE_STRUCT_PTR)MQX_template_list,
114 #endif /* MQX_CUSTOM_MAIN */
115 /* MQX_HARDWARE_INTERRUPT_LEVEL_MAX*/ BSP_DEFAULT_MQX_HARDWARE_INTERRUPT_LEVEL_MAX,
116 /* MAX_MSGPOOLS */ BSP_DEFAULT_MAX_MSGPOOLS,
117 /* MAX_MSGQS */ BSP_DEFAULT_MAX_MSGQS,
118 /* IO_CHANNEL */ BSP_DEFAULT_IO_CHANNEL,
119 /* IO_OPEN_MODE */ BSP_DEFAULT_IO_OPEN_MODE,
120 /* START_OF_HEAP */ BSP_DEFAULT_START_OF_HEAP,
121 /* END_OF_HEAP */ BSP_DEFAULT_END_OF_HEAP,
122 };
123
124 /* END mqx_ksdk. */
125
126 /*!
127 ** @}
128 */
129 /*
130 ** ###################################################################
131 **
132 ** This file was created by Processor Expert 10.5 [05.21]
133 ** for the Freescale Kinetis series of microcontrollers.
134 **
135 ** ###################################################################
136 */
EVENTHANDLER_TASK1_TASK_PRIORITY
#define EVENTHANDLER_TASK1_TASK_PRIORITY
Definition: EventHandler_Task1.h:73
TASK_TEMPLATE_LIST_END
#define TASK_TEMPLATE_LIST_END
Definition: mqx_ksdk.c:72
EVENTHANDLER_TASK1_TASK_STACK_SIZE
#define EVENTHANDLER_TASK1_TASK_STACK_SIZE
Definition: EventHandler_Task1.h:71
EventHandler_Task1.h
OS_Task component.
MAINTASK_TASK
#define MAINTASK_TASK
Definition: mqx_ksdk.h:362
MQX_template_list
const TASK_TEMPLATE_STRUCT MQX_template_list[]
Definition: mqx_ksdk.c:76
MAINTASK_TASK_STACK_SIZE
#define MAINTASK_TASK_STACK_SIZE
Definition: MainTask.h:70
MQX_init_struct
const MQX_INITIALIZATION_STRUCT MQX_init_struct
_WEAK_SYMBOL
const _WEAK_SYMBOL(MQX_INITIALIZATION_STRUCT MQX_init_struct)
EVENTHANDLER_TASK1_TASK
#define EVENTHANDLER_TASK1_TASK
Definition: mqx_ksdk.h:363
MAINTASK_TASK_NAME
#define MAINTASK_TASK_NAME
Definition: MainTask.h:68
MainTask.h
OS_Task component.
EVENTHANDLER_TASK1_TASK_NAME
#define EVENTHANDLER_TASK1_TASK_NAME
Definition: EventHandler_Task1.h:69
MAINTASK_TASK_PRIORITY
#define MAINTASK_TASK_PRIORITY
Definition: MainTask.h:72
mqx_ksdk.h
MQX Lite RTOS Adapter component.
EH_task
void EH_task(os_task_param_t task_init_data)
Definition: ISFCore1.c:126
kernel_data_prv
void * kernel_data_prv
- © Freescale Semiconductor, Inc. 2016. All Rights Reserved.