/** @file DHL_Main.c @brief Copyright 2006~2010 Digital STREAM Technology, Inc. All Rights Reserved */ #include "DHL_OSAL.h" #include "DHL_SYS.h" #include "DHL_DBG.h" #include "DHL_FE.h" #include "DHL_DEV_Priv.h" #include "DHL_Timer.h" #include "DHL_Demux.h" #include "DHL_PSI.h" #include "DHL_AVCAP.h" #include "DHL_NVM.h" #include "DHL_Graphic.h" #include "DHL_UIO.h" // °£´ÜÇÑ shell test Á¤µµ ÇÏ·Á°í Çϴµ¥ ºÒÇÊ¿äÇÑ AV bios°¡ ¸µÅ©µÇ¾î // µ¢Ä¡°¡ Ä¿Áú °æ¿ì ¾Æ·¡ ¿É¼ÇÀ» »ç¿ëÇÏ¿© Á¶Àý. #define USE_FE 1 #define USE_AVCAP 1 #define USE_DMX 1 #define USE_GRP 1 #if COMMENT ____Platform_Init____(){} #endif void DHL_SYS_PlatformInit(void) { // printf("BKTEST OS_GetTicksPerSecond()=%d\n",OS_GetTicksPerSecond()); DHL_SYS_Init(); DHL_OS_Init(); // DHL_DBG_Init(); // dhl_dev_init(); #if 0 //NEWCON3KR¿¡¼­ »ç¿ëÇÏÁö ¾Ê¾Æ¼­ Á¦°Å DHL_SYS_TimerInit(); #endif #if USE_FE //DHL_FE_Init(); #endif #if USE_AVCAP DHL_AV_Init(); #endif #if USE_DMX DHL_DMX_Init(); DHL_PSI_Init(); #endif DHL_NVM_Init(); #if USE_GRP //DHL_GrpInit(); #endif // DHL_UIO_Init(); //BKTODO: DHL_COM_Init(); #if 0//BKTESST: HAL test AVCAPTestInit(); // OSSemTestInit(); OSTimerTestInit(); OSTaskTestInit(); #endif } void DHL_SYS_PlatformUninit(void) { } void rr(unsigned int addr) { unsigned int val; addr &= ~0x3; val = *((unsigned int *)addr); DHL_OS_Printf("0x%x = 0x%x\n", addr, val); } void rw(unsigned int addr, unsigned int val) { addr &= ~0x3; DHL_OS_Printf("before : 0x%x = 0x%x\n", addr, *((unsigned int *)addr)); *((unsigned int *)addr) = val; DHL_OS_Printf("after : 0x%x = 0x%x\n", addr, *((unsigned int *)addr)); } #if 0//BKTEST void ram_start() { printf(">> BKTEST ram_start\n"); DHL_SYS_PlatformInit(); while(1) { DHL_OS_Delay(100); } } #endif /* end of file */