Freescale Semiconductor Inc.
    Regional Technical Application Center

 

Main Page | Class List | Directories | File List | File Members | Related Pages

Scheduler.h

Go to the documentation of this file.
00001 /****************************************************************************************************/
00013 /****************************************************************************************************/
00014 /*                                                                                                  */
00015 /* All software, source code, included documentation, and any implied know-how are property of      */
00016 /* Freescale Semiconductor and therefore considered CONFIDENTIAL INFORMATION.                       */
00017 /* This confidential information is disclosed FOR DEMONSTRATION PURPOSES ONLY.                      */
00018 /*                                                                                                  */
00019 /* All Confidential Information remains the property of Freescale Semiconductor and will not be     */
00020 /* copied or reproduced without the express written permission of the Discloser, except for copies  */
00021 /* that are absolutely necessary in order to fulfill the Purpose.                                   */
00022 /*                                                                                                  */
00023 /* Services performed by FREESCALE in this matter are performed AS IS and without any warranty.     */
00024 /* CUSTOMER retains the final decision relative to the total design and functionality of the end    */
00025 /* product.                                                                                         */
00026 /* FREESCALE neither guarantees nor will be held liable by CUSTOMER for the success of this project.*/
00027 /*                                                                                                  */
00028 /* FREESCALE disclaims all warranties, express, implied or statutory including, but not limited to, */
00029 /* implied warranty of merchantability or fitness for a particular purpose on any hardware,         */
00030 /* software ore advise supplied to the project by FREESCALE, and or any product resulting from      */
00031 /* FREESCALE services.                                                                              */
00032 /* In no event shall FREESCALE be liable for incidental or consequential damages arising out of     */
00033 /* this agreement. CUSTOMER agrees to hold FREESCALE harmless against any and all claims demands or */
00034 /* actions by anyone on account of any damage,or injury, whether commercial, contractual, or        */
00035 /* tortuous, rising directly or indirectly as a result of the advise or assistance supplied CUSTOMER*/ 
00036 /* in connectionwith product, services or goods supplied under this Agreement.                      */
00037 /*                                                                                                  */
00038 /****************************************************************************************************/
00039 #ifndef __SCHEDULER_H__
00040   #define __SCHEDULER_H__
00041   /*--------------------------Includes -------------------------------------------------------------*/
00042   #include "Derivative.h"
00043   #include "Mcu.h"
00044   #include "Emios.h"
00045         
00047     #define   LOOP_TIME_100ms    (((float32_t)SYS_FREQ *  (float32_t)0.100) / ((float32_t)eMIOS_GLOBAL_PRESCALER * (float32_t)eMIOS_TM_LOCAL_PRESCALER))
00048     #define   LOOP_TIME_50ms     (((float32_t)SYS_FREQ *  (float32_t)0.05)  / ((float32_t)eMIOS_GLOBAL_PRESCALER * (float32_t)eMIOS_TM_LOCAL_PRESCALER))
00049         
00050         /* -- External Global Variables ---------------------------------------------*/
00051         extern uint8_t gu8Scheduler_Ctrl;
00052         extern uint8_t gu8Scheduler_Flag;
00053         extern uint8_t gu8SleepModeEnabled;
00054         /*---------------------------- Functions ------------------------------------*/
00055         void vfnScheduler_Init(void);
00056         void vfnStart_Scheduler(void);
00057         void Scheduler_Fnc_Handler(void);
00058 #endif