ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
MainTask.c
Go to the documentation of this file.
1 /* ###################################################################
2 ** This component module is generated by Processor Expert. Do not modify it.
3 ** Filename : MainTask.c
4 ** Project : ISF2P2_K64F_MQX_PROJ
5 ** Processor : MK64FN1M0VLL12
6 ** Component : OS_Task
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 ** OS_Task component.
13 ** Contents :
14 ** Init - osa_status_t MainTask_Init(void);
15 **
16 ** Copyright : 1997 - 2015 Freescale Semiconductor, Inc.
17 ** All Rights Reserved.
18 **
19 ** Redistribution and use in source and binary forms, with or without modification,
20 ** are permitted provided that the following conditions are met:
21 **
22 ** o Redistributions of source code must retain the above copyright notice, this list
23 ** of conditions and the following disclaimer.
24 **
25 ** o Redistributions in binary form must reproduce the above copyright notice, this
26 ** list of conditions and the following disclaimer in the documentation and/or
27 ** other materials provided with the distribution.
28 **
29 ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its
30 ** contributors may be used to endorse or promote products derived from this
31 ** software without specific prior written permission.
32 **
33 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
34 ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35 ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
36 ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
37 ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
38 ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
39 ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
40 ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
41 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
42 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43 **
44 ** http: www.freescale.com
45 ** mail: support@freescale.com
46 ** ###################################################################*/
47 /*!
48 ** @file MainTask.c
49 ** @version 01.00
50 ** @brief
51 ** OS_Task component.
52 */
53 /*!
54 ** @addtogroup MainTask_module MainTask module documentation
55 ** @{
56 */
57 
58 /* MODULE MainTask. */
59 
60 #include "rtos_main_task.h"
61 #include "MainTask.h"
62 
63 
64 /*
65 ** ===================================================================
66 ** Method : Init (component OS_Task)
67 **
68 ** Description :
69 ** The method creates and starts task defined by OS_Task
70 ** component.
71 ** This method is internal. It is used by Processor Expert only.
72 ** ===================================================================
73 */
74 osa_status_t MainTask_Init(void)
75 {
76  _task_id task_id = _task_create(0, MAINTASK_TASK, (uint32_t)(NULL));
77  if (task_id == MQX_NULL_TASK_ID) {
78  return kStatus_OSA_Error;
79  }
80  return kStatus_OSA_Success;
81 }
82 
83 /* END MainTask. */
84 
85 /*!
86 ** @}
87 */
88 /*
89 ** ###################################################################
90 **
91 ** This file was created by Processor Expert 10.5 [05.21]
92 ** for the Freescale Kinetis series of microcontrollers.
93 **
94 ** ###################################################################
95 */
#define MAINTASK_TASK
Definition: mqx_ksdk.h:362
OS_Task component.
osa_status_t MainTask_Init(void)
Definition: MainTask.c:74