ODeV framework  v2
Functions | Variables
App.c File Reference

Define the Application main entry points. More...

#include "sysdebug.h"
#include "ApplicationContext.h"
#include "HelloWorldTask.h"
#include "PushButtonTask.h"
+ Include dependency graph for App.c:

Functions

sys_error_code_t SysLoadApplicationContext (ApplicationContext *pAppContext)
 
sys_error_code_t SysOnStartApplication (ApplicationContext *pAppContext)
 

Variables

static AManagedTasks_pxHelloWorldObj = NULL
 
static AManagedTaskExs_pxPushButtonObj = NULL
 

Detailed Description

Define the Application main entry points.

Author
STMicroelectronics - ST-Korea - MCD Team
Version
1.0.0
Date
Nov 2, 2018

The framework weak function are redefined in this file and they link the application specific code with the framework.

Attention

© COPYRIGHT 2018 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ SysLoadApplicationContext()

sys_error_code_t SysLoadApplicationContext ( ApplicationContext pAppContext)

This function is used by the system in order to add all the managed tasks to the application context. It is defined as weak in order to allow the user application to redefine it.

Parameters
pAppContext[IN] specifies a pointer to the application context to load with the application specific managed tasks.
Returns
SYS_NO_ERROR_CODE if success, an error code otherwise.

◆ SysOnStartApplication()

sys_error_code_t SysOnStartApplication ( ApplicationContext pAppContext)

This function is called by the framework at the end of the initialization process and before the Init task releases the control to the application tasks. At this point all managed task has been created and the hardware is initialized. The application has a chance to execute some other initialization code before the scheduler runs the first application task.

Parameters
pAppContext[IN] specifies a pointer to the application context to load with the application specific managed tasks.
Returns
SYS_NO_ERROR_CODE if success, an error code otherwise.
+ Here is the call graph for this function:

Variable Documentation

◆ s_pxHelloWorldObj

AManagedTask* s_pxHelloWorldObj = NULL
static

Application managed task.

◆ s_pxPushButtonObj

AManagedTaskEx* s_pxPushButtonObj = NULL
static

Application managed task.