#ifndef OSCFG_H
#define OSCFG_H
/******************************************************************************
*
*       (C) Copyright 2006, Freescale Semiconductor, Inc. All Rights Reserved.
*
*       THIS SOURCE CODE IS CONFIDENTIAL AND PROPRIETARY AND MAY NOT
*       BE USED OR DISTRIBUTED WITHOUT THE WRITTEN PERMISSION OF
*       Freescale Semiconductor, Inc.
*
*       : 1.42 $ : kruv001 : 2006/02/10 09:51:26 : 2006/02/10 09:51:26 $
*
* Note: The implementation was used: OSEKturbo_OSMPC55xx_2_2_1_82
*       OSEK System generator Target Specific DLL - Version: 2.2.82
*
******************************************************************************/
#if defined(OSSECTIONS)
#if defined(OSCWPPC)
#pragma section data_type ".osdata" ".osbss" data_mode=far_abs code_mode=pc_rel
#pragma section const_type ".osrodata" ".osrodata" data_mode=far_abs code_mode=pc_rel
#elif defined(OSDIABPPC)
#pragma section DATA "" ".osbss"
#pragma section CONST ".osrodata" ".osrodata"
#endif  /* defined(OSCWPPC) */
#endif /* defined(OSSECTIONS) */



    
                                                                                                                                                                                                                                             
    







/* Application modes */
#define mode0      ((AppModeType)0)

/*  Task identifications    */
    /* Tasks/resources priorities/identifiers  */

                /* Task ID */
#define init     ((TaskType)0)
                /* Task ID */
#define baseRate     ((TaskType)1)
                /* Task ID */
#define subRate_1     ((TaskType)2)

extern      void            Funcinit(void);          /* Task init entry point */      
extern      void            FuncbaseRate(void);          /* Task baseRate entry point */      
extern      void            FuncsubRate_1(void);          /* Task subRate_1 entry point */      

/* Resources definitions */
#define RateTransition     &OsResources[0]


/* Interrupt priority management */


extern          void       OSISRSystemTimer(void);
#define     OSISRHEADirq_DMA_eSCI_A_TX_handler
#define     OSISRirq_DMA_eSCI_A_TX_handler()   OSISR2DISP(irq_DMA_eSCI_A_TX_handler)
#define     OSEOIRirq_DMA_eSCI_A_TX_handler()  OSEOIR()
#define     OSSISRCLEARBITirq_DMA_eSCI_A_TX_handler()
extern          OSISRHEADirq_DMA_eSCI_A_TX_handler         void       irq_DMA_eSCI_A_TX_handler(void);

/* ISRs definition */


#define   irq_DMA_eSCI_A_TX_handlerId     3

#define     irq_DMA_eSCI_A_TX_handlerLEVEL     3
#define     irq_DMA_eSCI_A_TX_handlerPRIORITY     3


/*  Alarms identification   */

#define baseAlarm        &OsAlarms[0]
#define subAlarm_1        &OsAlarms[1]




/* Alarm Call Backs prototypes   */



/*  Counters identification */

#define SystemTimer        ((CtrType)0)
#define OSMINCYCLE_SystemTimer        ((TickType)0)
#define OSMAXALLOWEDVALUE_SystemTimer ((TickType)0xFFFFFFFF)
#define OSTICKSPERBASE_SystemTimer    ((TickType)4000)

#define OSMINCYCLE        ((TickType)0)
#define OSMAXALLOWEDVALUE ((TickType)0xFFFFFFFF)
#define OSTICKSPERBASE    ((TickType)4000)
#define OSTICKDURATION    ((TickType)524288000)






#if defined(OSSECTIONS)
#if defined(OSCWPPC)
#pragma section data_type
#pragma section const_type
#elif defined(OSDIABPPC)
#pragma section DATA
#pragma section CONST
#endif  /* defined(OSCWPPC) */
#endif /* defined(OSSECTIONS) */

#endif  /* #ifndef OSCFG_H */
