Changeset 60 in svn


Ignore:
Timestamp:
May 28, 2015 3:52:35 PM (11 years ago)
Author:
phkim
Message:
  1. phkim
  2. 리모콘
  3. 기능 테스트 1
Location:
branches/remocon/zasc/app_c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/remocon/zasc/app_c/DST_Main.c

    r37 r60  
    2121} 
    2222#else // _GET_SW_VERSION_ 
    23 #include "DST_HostInterface.h" 
    24 #include "DST_ChannelTune.h" 
    25 #include "DST_SignalMonitor.h" 
    26 #include "DST_WinManagerTask.h" 
    27 #include "DST_WinManager.h" 
    28 #include "DST_UserInterface.h" 
    29 #include "DST_DB.h" 
    30 #include "DST_DB_Engine.h" 
     23#include "DST_nec_ir_sender.h" 
    3124 
    3225void DST_CCManagerInit(void); 
    3326void DST_LoadFlash(DS_U8 Version); 
    34 void DST_SimpleTask(void); 
     27//void DST_SimpleTask(void); 
    3528 
    3629// new delete overloading 
     
    8780        DST_Printf("--------------------------------------------------\n"); 
    8881        DST_Printf("\n"); 
    89         DST_DB_Open(); 
    90         if (DST_EEPROM_GetNeedReset() == 1)  
    91         { 
    92                 DST_Factory_Reset(); 
    93         } 
    94         CT_ChMapUpdate(); 
    95         DHL_INFO_SetLastPowerState(true); 
    96         DST_UI_SetCh34(DST_UI_GetCh34()); // TV/CVBS Ãâ·Â °áÁ¤ 
    97         DST_WinManagerInit(); // À©µµ¿ì ¸Þ´ÏÀú ÃʱâÈ­ 
    98         DST_DB_TuneFirstChannel(); 
    99         DST_SimpleTask(); 
    100         DST_CCManagerInit(); 
    101         DST_UI_SetVolume(DST_EEPROM_GetVolume()); 
     82//      DST_DB_Open(); 
     83//      if (DST_EEPROM_GetNeedReset() == 1) 
     84//      { 
     85//              DST_Factory_Reset(); 
     86//      } 
     87//      CT_ChMapUpdate(); 
     88//      DHL_INFO_SetLastPowerState(true); 
     89//      DST_UI_SetCh34(DST_UI_GetCh34()); // TV/CVBS Ãâ·Â °áÁ¤ 
     90//      DST_WinManagerInit(); // À©µµ¿ì ¸Þ´ÏÀú ÃʱâÈ­ 
     91//      DST_DB_TuneFirstChannel(); 
     92//      DST_SimpleTask(); 
     93//      DST_CCManagerInit(); 
     94//      DST_UI_SetVolume(DST_EEPROM_GetVolume()); 
    10295        while (1) 
    10396        { 
     
    107100                DST_Printf("Current Time = %02d:%02d:%02d\n", (int)hour, (int)min, (int)sec); 
    108101//              DST_OS_PrintMemUnit(); 
     102                DST_NEC_IR_Send(0x20, 0x08, 0x03); // CMB ¸®¸ðÄÜÀÇ Mute Ű 
    109103#ifndef DSTAR 
    110104                // m_report(); 
  • branches/remocon/zasc/app_c/dst_eroum_interface.c

    r39 r60  
    850850DHL_ERROR DHL_TUN_Start(int rf, DHL_MODULATION_MODE nMode) 
    851851{ 
     852#if 0 
    852853        int freqkHz = DST_GetMHzFrequencybyIndex(rf) * 1000; 
    853854        if (DST_g_bUseAirFreq) 
     
    883884#endif 
    884885        tuner_start_tick = DST_OS_GetTickCount(); 
     886#endif 
    885887        return DHL_OK_; 
    886888} 
     
    10571059} 
    10581060 
     1061int nLEDState =0; 
    10591062void DHL_SetLED(bool bRed, bool bGreen) 
    10601063{ 
    1061         static bool bFirst = true; 
    1062         static bool bRedOld = false; 
    1063         static bool bGreenOld = false; 
    1064         if (bFirst == true || bRedOld != bRed || bGreenOld != bGreen) 
     1064//      static bool bFirst = true; 
     1065//      static bool bRedOld = false; 
     1066//      static bool bGreenOld = false; 
     1067        if(bRed) nLEDState =1; 
     1068        else nLEDState=0; 
     1069//      if (bFirst == true || bRedOld != bRed || bGreenOld != bGreen) 
    10651070        { 
    10661071                void dhl_led_control2(DS_U32 onoff); 
     
    10711076                        buser_AOV_input_LED(g_sys_rfm, value); 
    10721077                }        
    1073                 bFirst = false; 
    1074                 bRedOld = bRed; 
    1075                 bGreenOld =  bGreen; 
     1078//              bFirst = false; 
     1079//              bRedOld = bRed; 
     1080//              bGreenOld =  bGreen; 
    10761081        } 
    10771082} 
     
    11961201static void tIRTask() 
    11971202{ 
     1203#if 0 
    11981204        while (1) 
    11991205        { 
     
    12071213                if (g_IrCallBack) g_IrCallBack(ir_code, ir_repeat, DST_g_KeyPressTime); 
    12081214        } 
     1215#endif 
    12091216} 
    12101217static void IRCallback(unsigned int code, unsigned int repeat) 
     
    18241831} 
    18251832#endif // CC FeedingÀ» À§ÇÑ Å×½ºÆ® ÇÔ¼ö 
     1833 
     1834 
     1835 
     1836void DHL_Delay562_5us(int count) 
     1837{ 
     1838        int i = 0; 
     1839        for (i = 0; i < count; i++) 
     1840        { 
     1841                if (nLEDState == 0) 
     1842                { 
     1843                        printf("."); 
     1844                } 
     1845                else 
     1846                { 
     1847                        printf("T"); 
     1848                } 
     1849        } 
     1850 
     1851        //dhl_sys_delay562_5us(count); 
     1852} 
  • branches/remocon/zasc/app_c/dst_eroum_interface.h

    r2 r60  
    412412bool DHL_INFO_GetLastPowerState(); 
    413413void DHL_INFO_SetLastPowerState(bool bOn); 
     414 
     415 
     416void DHL_Delay562_5us(int count); 
     417 
    414418#if 0 
    415419____Flash_Memory___() 
Note: See TracChangeset for help on using the changeset viewer.