source: svn/newcon3bcm2_21bu/dst/dmw/src/example/dmw_test_main.c

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 2.6 KB
Line 
1/*
2        dmwtestmain.c
3
4*/
5
6#include "DHL_OSAL.h"
7#include "DHL_SYS.h"
8#include "DHL_DBG.h"
9
10
11#define LINK_DHL_TEST 0
12#define LINK_EPG 0
13#define LINK_SDDS 0
14#define LINK_GRP 0
15#define LINK_PSI 1  // new psi
16
17
18#include "DMG_Service.h"
19
20#include "DMW_Main.h"
21
22#include "DMW_Timer.h"
23#include "DMW_SysTime.h"
24#include "DMW_Mutex.h"
25#include "DMW_Channel.h"
26#include "DMW_ChannelAPI.h"
27#include "DMW_ChannelDemux.h"
28
29#if LINK_EPG
30#include "DMW_EpgBase.h"
31#include "DMW_EpgInterface.h"
32#endif
33
34
35
36void dmw_debug(void)
37{
38        /* register MW debug symbols */
39        Dmc_RegisterChannelSymbols();                                   /* channeltask/av/tune/scan/util.c */
40        Dmc_RegisterChannelDemuxSymbols();              /* channeldemux.c */
41       
42        DMW_HAL_RegisterChannelHalSymbols();    /* channelhal.c */
43       
44        DMW_CDB_RegisterChannelUcmSymbols();    /* ucm.c */
45        DMW_CDB_RegisterChannelNvRamSymbols();/* channeldb.c nvram.c */
46       
47        DMW_SYS_RegisterTimerSymbols();                         /* systime.c */
48        DMW_RegisterSysTimeSymbols();                                   /* time.c */
49        DMW_RegisterMutexSymbols();                                             /* mutex.c */
50
51#if LINK_EPG
52        Dmc_EpgRegisterEpgSymbols();                                    /* epgbase/debug/driver.c */
53        DMW_EPG_RegisterEpgIntfSymbols();                       /* epgintf.c */
54#endif
55
56        /* App_SetDebugLevel(1); */
57}
58 
59
60void main(void)
61{
62        DHL_SYS_PlatformInit();
63
64        DHL_OS_Printf("\n-------------------------------------\n");
65        DHL_OS_Printf("This is dmwtest program.\n");
66        DHL_OS_Printf("DATE: %s, Time: %s \n", __DATE__, __TIME__);
67
68        dmw_debug();
69
70                if (1) {
71                        /* shell ÀÌ µ¿ÀÛÇϸé ÀÌ test routineÀº ´õÀÌ»ó ÇÒ ÀÏÀº ¾øÀ½ */
72                        DHL_DBG_SHELL_INFO info;
73                        DHL_DBG_GetDbgShellInfo(&info);
74                        if (info.started) {
75                                /* ¹«ÇÑ ´ë±â.. */
76                                while(1) DHL_OS_Delay(DHL_TIMEOUT_FOREVER);
77                        }
78                }
79
80#if LINK_GRP
81        DMG_DrawInit();
82        DMG_MenuInit(NULL);
83       
84        DHL_CreatePlane(0, 720, 480, eDHL_PIXELTYPE_ARGB8888);
85        DHL_CreatePlane(1, 720, 480, eDHL_PIXELTYPE_ARGB8888);
86       
87        DHL_SetDisplayPlane(1);
88#endif
89
90        while (1) 
91        {
92                DHL_OS_Printf("End of test\n");
93                DHL_OS_Delay(1000);
94        }
95}
96
97
98
99#if COMMENT
100__________(){}
101#endif
102
103/*
104        Å×½ºÆ®¸¦ À§ÇØ °­Á¦·Î link°¡ ÇÊ¿äÇÑ ¸ðµâ ÁöÁ¤.
105*/
106
107#include "DHL_AVCAP.h"
108#include "DHL_Graphic.h"
109#include "DMW_Main.h"
110#if LINK_SDDS
111        #include "DMW_PsiSdds.h"
112#endif
113#if LINK_PSI
114        #include "DMW_PsiAPI.h"
115#endif
116
117void force_link(void)
118{
119#if LINK_DHL_TEST
120        void PsiTest_Init(void);
121        void FeTest_Tune(void);
122        void Timer_Test(void);
123#endif
124        void m2_init(void);
125       
126        m2_init();
127
128#if LINK_EPG
129        Dmc_EpgInit();
130#endif
131
132#if LINK_DHL_TEST
133        PsiTest_Init();
134        FeTest_Tune();
135        Timer_Test();
136#endif
137
138#if LINK_SDDS
139        DMW_SDDS_Init();
140#endif
141
142#if LINK_PSI
143        DMW_PSI_Init();
144#endif
145}
146
Note: See TracBrowser for help on using the repository browser.