source: svn/newcon3bcm2_21bu/dst/dhl/src/DHL_Main.c @ 45

Last change on this file since 45 was 45, checked in by megakiss, 11 years ago
  • Property svn:executable set to *
File size: 1.9 KB
Line 
1/**
2        @file
3                DHL_Main.c
4
5        @brief
6               
7
8        Copyright 2006~2010 Digital STREAM Technology, Inc.
9        All Rights Reserved
10*/
11
12#include "DHL_OSAL.h"
13#include "DHL_SYS.h"
14
15#include "DHL_DBG.h"
16
17#include "DHL_FE.h"
18#include "DHL_DEV_Priv.h"
19
20#include "DHL_Timer.h"
21
22#include "DHL_Demux.h"
23#include "DHL_PSI.h"
24#include "DHL_AVCAP.h"
25
26#include "DHL_NVM.h"
27#include "DHL_Graphic.h"
28
29#include "DHL_UIO.h"
30
31// °£´ÜÇÑ shell test Á¤µµ ÇÏ·Á°í Çϴµ¥ ºÒÇÊ¿äÇÑ AV bios°¡ ¸µÅ©µÇ¾î
32// µ¢Ä¡°¡ Ä¿Áú °æ¿ì ¾Æ·¡ ¿É¼ÇÀ» »ç¿ëÇÏ¿© Á¶Àý.
33
34#define USE_FE 1
35#define USE_AVCAP 1
36#define USE_DMX 1
37#define USE_GRP 1
38
39
40#if COMMENT
41____Platform_Init____(){}
42#endif
43
44
45void DHL_SYS_PlatformInit(void)
46{
47//      printf("BKTEST OS_GetTicksPerSecond()=%d\n",OS_GetTicksPerSecond());
48
49        DHL_SYS_Init();
50        DHL_OS_Init();
51//      DHL_DBG_Init();
52//      dhl_dev_init();
53
54#if 0 //NEWCON3KR¿¡¼­ »ç¿ëÇÏÁö ¾Ê¾Æ¼­ Á¦°Å
55        DHL_SYS_TimerInit();
56#endif
57
58#if USE_FE
59        //DHL_FE_Init();
60#endif
61
62#if USE_AVCAP
63        DHL_AV_Init();
64#endif
65
66#if USE_DMX
67        DHL_DMX_Init();
68        DHL_PSI_Init();
69#endif
70
71        DHL_NVM_Init();
72
73#if USE_GRP
74        //DHL_GrpInit();
75#endif
76
77//      DHL_UIO_Init();
78       
79//BKTODO:       DHL_COM_Init();
80       
81#if 0//BKTESST: HAL test
82        AVCAPTestInit();
83//      OSSemTestInit();
84        OSTimerTestInit();
85        OSTaskTestInit();
86#endif
87}
88
89void DHL_SYS_PlatformUninit(void)
90{
91
92}
93
94void rr(unsigned int addr)
95{
96        unsigned int val;
97       
98        addr &= ~0x3;
99        val = *((unsigned int *)addr);
100       
101        DHL_OS_Printf("0x%x = 0x%x\n", addr, val);
102}
103
104void rw(unsigned int addr, unsigned int val)
105{
106        addr &= ~0x3;
107
108        DHL_OS_Printf("before : 0x%x = 0x%x\n", addr, *((unsigned int *)addr));
109
110        *((unsigned int *)addr) = val;
111       
112        DHL_OS_Printf("after  : 0x%x = 0x%x\n", addr, *((unsigned int *)addr));
113}
114
115
116
117
118#if 0//BKTEST
119
120void ram_start()
121{
122        printf(">> BKTEST ram_start\n");
123        DHL_SYS_PlatformInit();
124        while(1)
125        {
126                DHL_OS_Delay(100);
127        }
128}
129#endif
130/* end of file */
131
Note: See TracBrowser for help on using the repository browser.