ODeV framework
v2
|
Define the Application main entry points. More...
#include "sysdebug.h"
#include "ApplicationContext.h"
#include "HelloWorldTask.h"
#include "PushButtonTask.h"
Functions | |
sys_error_code_t | SysLoadApplicationContext (ApplicationContext *pAppContext) |
sys_error_code_t | SysOnStartApplication (ApplicationContext *pAppContext) |
Variables | |
static AManagedTask * | s_pxHelloWorldObj = NULL |
static AManagedTaskEx * | s_pxPushButtonObj = NULL |
Define the Application main entry points.
The framework weak
function are redefined in this file and they link the application specific code with the framework.
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.
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.
pAppContext | [IN] specifies a pointer to the application context to load with the application specific managed tasks. |
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.
pAppContext | [IN] specifies a pointer to the application context to load with the application specific managed tasks. |
|
static |
Application managed task.
|
static |
Application managed task.