Esempio n. 1
0
void hardWareInterFaceInit (void)
    {
    hwMemLibInit(); hwMemPoolCreate(&hwMemPool[0], HWMEM_POOL_SIZE); /* Pre-Kernel Memory Allocation */
    hardWareInterFaceBusInit();         /* vxBus subsystem */
    vxbInit();                          /* vxBus Library Activation */
    vxbTimerLibInit();                  /* vxBus Timer Support */
    }
Esempio n. 2
0
void hardWareInterFaceInit (void)
    {

#ifdef INCLUDE_HWMEM_ALLOC
    /* Pre-Kernel Memory Allocation */
    hwMemLibInit();
    hwMemPoolCreate(pHwMemPool, HWMEM_POOL_SIZE);
#endif /* INCLUDE_HWMEM_ALLOC */

#ifdef INCLUDE_TIMER_SYS
#ifdef INCLUDE_AUX_CLK
    pAuxClkName = AUXCLK_TIMER_NAME;
    auxClkDevUnitNo = AUXCLK_TIMER_UNIT;
    auxClkTimerNo = AUXCLK_TIMER_NUM;
#endif /* INCLUDE_AUX_CLK */
#endif /* INCLUDE_TIMER_SYS */


#ifdef INCLUDE_INTCTLR_DYNAMIC_LIB
	vxbIntDynaCtlrInit();
#endif /* INCLUDE_INTCTLR_DYNAMIC_LIB */

#ifdef INCLUDE_TIMER_SYS
    pSysClkName = SYSCLK_TIMER_NAME;
    sysClkDevUnitNo = SYSCLK_TIMER_UNIT;
    sysClkTimerNo = SYSCLK_TIMER_NUM;
#endif /* INCLUDE_TIMER_SYS */


#ifdef INCLUDE_TIMER_SYS
#ifdef INCLUDE_TIMESTAMP
    pTimestampTimerName = TIMESTAMP_TIMER_NAME;
    timestampDevUnitNo = TIMESTAMP_TIMER_UNIT;
    timestampTimerNo = TIMESTAMP_TIMER_NUM;
#endif /* INCLUDE_TIMESTAMP */
#endif /* INCLUDE_TIMER_SYS */




    /* bus subsystem initialization */
    hardWareInterFaceBusInit();

#ifdef INCLUDE_TIMER_SYS
    vxbTimerLibInit();
#else  /* INCLUDE_TIMER_SYS */
#  ifdef INCLUDE_TIMER_STUB
    vxbTimerStubInit();
#  endif /* INCLUDE_TIMER_STUB */
#endif /* INCLUDE_TIMER_SYS */



    }