Changeset 60 in svn for branches/remocon/zasc/app_c/dst_eroum_interface.c
- Timestamp:
- May 28, 2015 3:52:35 PM (11 years ago)
- File:
-
- 1 edited
-
branches/remocon/zasc/app_c/dst_eroum_interface.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/remocon/zasc/app_c/dst_eroum_interface.c
r39 r60 850 850 DHL_ERROR DHL_TUN_Start(int rf, DHL_MODULATION_MODE nMode) 851 851 { 852 #if 0 852 853 int freqkHz = DST_GetMHzFrequencybyIndex(rf) * 1000; 853 854 if (DST_g_bUseAirFreq) … … 883 884 #endif 884 885 tuner_start_tick = DST_OS_GetTickCount(); 886 #endif 885 887 return DHL_OK_; 886 888 } … … 1057 1059 } 1058 1060 1061 int nLEDState =0; 1059 1062 void DHL_SetLED(bool bRed, bool bGreen) 1060 1063 { 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) 1065 1070 { 1066 1071 void dhl_led_control2(DS_U32 onoff); … … 1071 1076 buser_AOV_input_LED(g_sys_rfm, value); 1072 1077 } 1073 bFirst = false;1074 bRedOld = bRed;1075 bGreenOld = bGreen;1078 // bFirst = false; 1079 // bRedOld = bRed; 1080 // bGreenOld = bGreen; 1076 1081 } 1077 1082 } … … 1196 1201 static void tIRTask() 1197 1202 { 1203 #if 0 1198 1204 while (1) 1199 1205 { … … 1207 1213 if (g_IrCallBack) g_IrCallBack(ir_code, ir_repeat, DST_g_KeyPressTime); 1208 1214 } 1215 #endif 1209 1216 } 1210 1217 static void IRCallback(unsigned int code, unsigned int repeat) … … 1824 1831 } 1825 1832 #endif // CC FeedingÀ» À§ÇÑ Å×½ºÆ® ÇÔ¼ö 1833 1834 1835 1836 void 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 }
Note: See TracChangeset
for help on using the changeset viewer.
