Explorar el Código

HFR 검수 전 마지막 수정 사항

1. Typedef enum 이름 없는 index 이름 할당
2.UL Shutdown operate  Package 생성
3. 필요없는 지역 변수 삭제
4.
PYJ hace 5 años
padre
commit
0386329a37

+ 16 - 2
.cproject

@@ -73,7 +73,7 @@
73 73
 								<option id="com.atollic.truestudio.common_options.target.fpu.829683864" name="Floating point" superClass="com.atollic.truestudio.common_options.target.fpu" useByScannerDiscovery="false" value="com.atollic.truestudio.common_options.target.fpu.soft" valueType="enumerated"/>
74 74
 								<option id="com.atollic.truestudio.common_options.target.fpucore.1297069055" name="FPU" superClass="com.atollic.truestudio.common_options.target.fpucore" useByScannerDiscovery="false" value="com.atollic.truestudio.common_options.target.fpucore.None" valueType="enumerated"/>
75 75
 								<option id="com.atollic.truestudio.ld.misc.genmapfile.683707994" name="Create map file" superClass="com.atollic.truestudio.ld.misc.genmapfile" useByScannerDiscovery="false"/>
76
-								<option id="com.atollic.truestudio.ld.optimization.malloc_page_size.1413827241" superClass="com.atollic.truestudio.ld.optimization.malloc_page_size" useByScannerDiscovery="false" value="com.atollic.truestudio.ld.optimization.malloc_page_size.4096" valueType="enumerated"/>
76
+								<option id="com.atollic.truestudio.ld.optimization.malloc_page_size.1413827241" name="Page size allocation for malloc() " superClass="com.atollic.truestudio.ld.optimization.malloc_page_size" useByScannerDiscovery="false" value="com.atollic.truestudio.ld.optimization.malloc_page_size.4096" valueType="enumerated"/>
77 77
 								<inputType id="com.atollic.truestudio.ld.input.1372975870" name="Input" superClass="com.atollic.truestudio.ld.input">
78 78
 									<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
79 79
 									<additionalInput kind="additionalinput" paths="$(LIBS)"/>
@@ -155,7 +155,7 @@
155 155
 							<option id="com.atollic.truestudio.toolchain_options.mcu.341415387" name="Microcontroller" superClass="com.atollic.truestudio.toolchain_options.mcu" value="STM32F103ZE" valueType="string"/>
156 156
 							<option id="com.atollic.truestudio.toolchain_options.vendor.2021888636" name="Vendor name" superClass="com.atollic.truestudio.toolchain_options.vendor" value="STMicroelectronics" valueType="string"/>
157 157
 							<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.atollic.truestudio.exe.release.toolchain.platform.2054752829" isAbstract="false" name="Release platform" superClass="com.atollic.truestudio.exe.release.toolchain.platform"/>
158
-							<builder buildPath="${workspace_loc:/STM32F103ZET_JDASMBIC}/Release" id="com.atollic.truestudio.mbs.builder1.1222194476" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="CDT Internal Builder" superClass="com.atollic.truestudio.mbs.builder1">
158
+							<builder buildPath="${workspace_loc:/STM32F103ZET_JDASMBIC}/Release" customBuilderProperties="toolChainpathString=C:\\Program Files (x86)\\Atollic\\TrueSTUDIO for STM32 9.3.0\\ARMTools\\bin|toolChainpathType=1|" id="com.atollic.truestudio.mbs.builder1.1222194476" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="CDT Internal Builder" superClass="com.atollic.truestudio.mbs.builder1">
159 159
 								<outputEntries>
160 160
 									<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="outputPath" name="Release"/>
161 161
 								</outputEntries>
@@ -179,6 +179,7 @@
179 179
 									<listOptionValue builtIn="false" value="../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy"/>
180 180
 									<listOptionValue builtIn="false" value="../Drivers/CMSIS/Device/ST/STM32F1xx/Include"/>
181 181
 									<listOptionValue builtIn="false" value="../Drivers/CMSIS/Include"/>
182
+									<listOptionValue builtIn="false" value="&quot;${workspace_loc:/STM32F103ZET_JDASMBIC/Bluecell_Inc}&quot;"/>
182 183
 								</option>
183 184
 								<option id="com.atollic.truestudio.gcc.symbols.defined.1670122205" name="Defined symbols" superClass="com.atollic.truestudio.gcc.symbols.defined" valueType="definedSymbols">
184 185
 									<listOptionValue builtIn="false" value="USE_HAL_DRIVER"/>
@@ -331,5 +332,18 @@
331 332
 				</scannerInfoProvider>
332 333
 			</profile>
333 334
 		</scannerConfigBuildInfo>
335
+		<scannerConfigBuildInfo instanceId="com.atollic.truestudio.configuration.release.1518366166;com.atollic.truestudio.configuration.release.1518366166.2031504340;com.atollic.truestudio.exe.release.toolchain.gcc.1836874447;com.atollic.truestudio.gcc.input.850396938">
336
+			<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.atollic.truestudio.mbs.ARMToolsPerProjectProfileC"/>
337
+			<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
338
+				<buildOutputProvider>
339
+					<openAction enabled="true" filePath=""/>
340
+					<parser enabled="true"/>
341
+				</buildOutputProvider>
342
+				<scannerInfoProvider id="makefileGenerator">
343
+					<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
344
+					<parser enabled="true"/>
345
+				</scannerInfoProvider>
346
+			</profile>
347
+		</scannerConfigBuildInfo>
334 348
 	</storageModule>
335 349
 </cproject>

+ 10 - 0
.settings/org.eclipse.cdt.managedbuilder.core.prefs

@@ -1,10 +1,20 @@
1 1
 eclipse.preferences.version=1
2
+environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.1518366166/CPATH/delimiter=;
3
+environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.1518366166/CPATH/operation=remove
4
+environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.1518366166/C_INCLUDE_PATH/delimiter=;
5
+environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.1518366166/C_INCLUDE_PATH/operation=remove
6
+environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.1518366166/append=true
7
+environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.1518366166/appendContributed=true
2 8
 environment/buildEnvironmentInclude/com.atollic.truestudio.exe.debug.1518366166/CPATH/delimiter=;
3 9
 environment/buildEnvironmentInclude/com.atollic.truestudio.exe.debug.1518366166/CPATH/operation=remove
4 10
 environment/buildEnvironmentInclude/com.atollic.truestudio.exe.debug.1518366166/C_INCLUDE_PATH/delimiter=;
5 11
 environment/buildEnvironmentInclude/com.atollic.truestudio.exe.debug.1518366166/C_INCLUDE_PATH/operation=remove
6 12
 environment/buildEnvironmentInclude/com.atollic.truestudio.exe.debug.1518366166/append=true
7 13
 environment/buildEnvironmentInclude/com.atollic.truestudio.exe.debug.1518366166/appendContributed=true
14
+environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.1518366166/LIBRARY_PATH/delimiter=;
15
+environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.1518366166/LIBRARY_PATH/operation=remove
16
+environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.1518366166/append=true
17
+environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.1518366166/appendContributed=true
8 18
 environment/buildEnvironmentLibrary/com.atollic.truestudio.exe.debug.1518366166/LIBRARY_PATH/delimiter=;
9 19
 environment/buildEnvironmentLibrary/com.atollic.truestudio.exe.debug.1518366166/LIBRARY_PATH/operation=remove
10 20
 environment/buildEnvironmentLibrary/com.atollic.truestudio.exe.debug.1518366166/append=true

+ 5 - 5
Bluecell_Inc/Bluecell_operate.h

@@ -134,21 +134,21 @@ typedef enum{
134 134
     AGC_Alarm_DL3_Index,        
135 135
     AGC_Alarm_DL4_Index,            
136 136
     AGC_Alarm_DL_Index_MAX,      
137
-};
137
+}AGC_Alarm_I;
138 138
 typedef enum{
139 139
     ALC_Alarm_UL1_Index = 0,
140 140
     ALC_Alarm_UL2_Index,        
141 141
     ALC_Alarm_UL3_Index,        
142 142
     ALC_Alarm_UL4_Index,            
143 143
     ALC_Alarm_UL_Index_MAX,            
144
-};
144
+}ALC_Alarm_I;
145 145
 typedef enum{
146 146
     AGC_Table_DL1_Ref_Index = 0,
147 147
     AGC_Table_DL2_Ref_Index,        
148 148
     AGC_Table_DL3_Ref_Index,        
149 149
     AGC_Table_DL4_Ref_Index,            
150 150
     AGC_Table_DL_Ref_Index_MAX,      
151
-};
151
+}AGC_Table_I;
152 152
 #define TABLE_MAX_VALUE 0     
153 153
 #define TABLE_LENGTH_MAX 70    
154 154
 typedef enum{
@@ -1525,14 +1525,14 @@ typedef enum{
1525 1525
     DET_Alarm_DL3_Index,
1526 1526
     DET_Alarm_DL4_Index,
1527 1527
     DET_Alarm_DL_Index_MAX,
1528
-};
1528
+}DET_Alarm_DL_I;
1529 1529
 typedef enum{
1530 1530
     DET_Alarm_UL1_Index = 0,
1531 1531
     DET_Alarm_UL2_Index,
1532 1532
     DET_Alarm_UL3_Index,
1533 1533
     DET_Alarm_UL4_Index,
1534 1534
     DET_Alarm_UL_Index_MAX,
1535
-};
1535
+}DET_Alarm_UL_I;
1536 1536
 typedef enum{
1537 1537
     DET_Alarm_DL1_Shutdown_Index = 0,
1538 1538
     DET_Alarm_DL2_Shutdown_Index,

+ 129 - 39
Bluecell_Src/Bluecell_operate.c

@@ -26,6 +26,11 @@ extern HAL_StatusTypeDef EEPROM_M24C08_Zerowrite(uint8_t devid,uint16_t Address)
26 26
 extern uint8_t Chksum_Create(uint8_t *data);
27 27
 extern uint16_t CRC16_Generate(uint8_t* buf_ptr, int len);
28 28
 extern uint8_t MBIC_APIFLASH_Func(uint8_t* data,uint32_t size);
29
+extern void MBIC_Bootloader_FirmwareUpdate(uint8_t* data);
30
+extern uint8_t* MBIC_HeaderMergeFunction(uint8_t* data,uint16_t Length );
31
+extern void PE43711_atten_ctrl2(PE43711_st* ATT ,uint8_t data);
32
+extern void PE43711_UL4_atten_ctrl(uint8_t data);
33
+
29 34
 
30 35
 /***************************************************************************************/
31 36
 /*                                  Extern Valuable                                    */
@@ -958,7 +963,7 @@ void CompareAttenData(BLUESTATUS_st Curr,BLUESTATUS_st Prev){
958 963
                                 MBIC_Val,// Hidden Atten Low bit
959 964
                                MBIC_UserVal,
960 965
                                MBIC_ALC_Val);// User Atten Low Bit
961
-            printf("%d val = %x \r\n",__LINE__,val);
966
+//            printf("%d val = %x \r\n",__LINE__,val);
962 967
             PE43711_UL4_atten_ctrl(val);
963 968
     }
964 969
 //    memcpy(&bluecell_Prevdatastatus.ATT_DL1_H,&bluecell_Currdatastatus.ATT_DL1_H,32);
@@ -1763,7 +1768,7 @@ void Bluecell_TableSave(uint8_t* data,uint8_t type){
1763 1768
             break;
1764 1769
         case ULO_P4_ATT_Temp_guarantee_Table_Number:printf("Function : %s Line %d \r\n",__func__,__LINE__);
1765 1770
             Bluecell_DataCopy(&Temp_UL4.Table_1_Temp,&data[BLUECELL_DATA + 1],sizeof(TEMP_TABLE_st));
1766
-            EEPROM_M24C08_write(EEPROM_M24C08_ID ,(EEPROM_TEMP_UL3_TABLE_ADDRESDS),&Temp_UL4.Table_1_Temp,sizeof(TEMP_TABLE_st));                                
1771
+            EEPROM_M24C08_write((uint8_t)EEPROM_M24C08_ID ,(EEPROM_TEMP_UL3_TABLE_ADDRESDS),&Temp_UL4.Table_1_Temp,sizeof(TEMP_TABLE_st));                                
1767 1772
             EEPROM_M24C08_Read(EEPROM_M24C08_ID ,(EEPROM_TEMP_UL3_TABLE_ADDRESDS),&Temp_UL4.Table_1_Temp,sizeof(TEMP_TABLE_st));                                        
1768 1773
             break;
1769 1774
     }
@@ -2624,18 +2629,19 @@ bool Bluecell_Operate(uint8_t* data){
2624 2629
         }
2625 2630
         bluecell_Currdatastatus.ATT_UL4_PATH = data[BLUECELL_DATA];
2626 2631
 #else
2627
-        bluecell_Currdatastatus.ATT_DL4_PATH = data[BLUECELL_DATA]; 
2628
-        bluecell_Currdatastatus.DLI_Shutdown_Retry_Count4 = 0;
2629
-        bluecell_Prevdatastatus.DLI_Shutdown_Retry_Count4 = 0xFF;
2632
+        bluecell_Currdatastatus.ATT_UL4_PATH = data[BLUECELL_DATA]; 
2633
+        printf("PATH : %d \r\n",bluecell_Currdatastatus.ATT_UL4_PATH);
2634
+        bluecell_Currdatastatus.ULO_Shutdown_Retry_Count4 = 0;
2635
+        bluecell_Prevdatastatus.ULO_Shutdown_Retry_Count4 = 0xFF;
2630 2636
         if(data[BLUECELL_DATA]==0){
2631
-            HAL_GPIO_WritePin(PATH_EN_DL4_GPIO_Port,PATH_EN_DL4_Pin,GPIO_PIN_RESET);//CLOCK        
2632
-            DL_PathUserHandl[3] = true;
2637
+            HAL_GPIO_WritePin(PATH_EN_UL4_GPIO_Port,PATH_EN_UL4_Pin,GPIO_PIN_RESET);//CLOCK        
2638
+            UL_PathUserHandl[3] = true;
2633 2639
         }
2634 2640
         else{
2635
-            bluecell_Prevdatastatus.ATT_DL4_H = 0xFF;
2636
-            bluecell_Prevdatastatus.ATT_DL4_L =0xFF;
2637
-            DL_PathUserHandl[3] = false;                    
2638
-            HAL_GPIO_WritePin(PATH_EN_DL4_GPIO_Port,PATH_EN_DL4_Pin,GPIO_PIN_SET);//CLOCK
2641
+            bluecell_Prevdatastatus.ATT_UL4_H = 0xFF;
2642
+            bluecell_Prevdatastatus.ATT_UL4_L =0xFF;
2643
+            UL_PathUserHandl[3] = false;                    
2644
+            HAL_GPIO_WritePin(PATH_EN_UL4_GPIO_Port,PATH_EN_UL4_Pin,GPIO_PIN_SET);//CLOCK
2639 2645
         }                
2640 2646
         CompareAttenData(bluecell_Currdatastatus,bluecell_Prevdatastatus);
2641 2647
 
@@ -2729,6 +2735,35 @@ bool Bluecell_Operate(uint8_t* data){
2729 2735
         tempdata +=  bluecell_Currdatastatus.DLI_Shutdown_Threshold_L ;
2730 2736
         tempdata /= 10;
2731 2737
         printf("DL Shutdown Threas : %d \r\n",tempdata);
2738
+#if 0 // PYJ.2020.07.01_BEGIN -- 
2739
+        tempdata = (( bluecell_Currdatastatus.ULO_Shutdown_Threshold_H << 8) & 0xFF00) ;
2740
+        tempdata +=  bluecell_Currdatastatus.ULO_Shutdown_Threshold_L ;
2741
+        tempdata /= 10;
2742
+        printf("UL Shutdown Threas : %d \r\n",tempdata);        
2743
+
2744
+        tempdata = (( bluecell_Currdatastatus.ATT_UL1_H << 8) & 0xFF00) ;
2745
+        tempdata +=  bluecell_Currdatastatus.ATT_UL1_L;
2746
+        tempdata /= 10;
2747
+        printf("UL1 Shutdown Threas : %d \r\n",tempdata);
2748
+
2749
+        tempdata = (( bluecell_Currdatastatus.ATT_UL2_H << 8) & 0xFF00) ;
2750
+        tempdata +=  bluecell_Currdatastatus.ATT_UL2_L ;
2751
+        tempdata /= 10;
2752
+        printf("UL2 Shutdown Threas : %d \r\n",tempdata);
2753
+
2754
+        tempdata = (( bluecell_Currdatastatus.ATT_UL3_H << 8) & 0xFF00) ;
2755
+        tempdata +=  bluecell_Currdatastatus.ATT_UL3_L ;
2756
+        tempdata /= 10;
2757
+        printf("UL3 Shutdown Threas : %d \r\n",tempdata);
2758
+
2759
+        tempdata = (( bluecell_Currdatastatus.ATT_UL4_H << 8) & 0xFF00) ;
2760
+        tempdata +=  bluecell_Currdatastatus.ATT_UL4_L ;
2761
+        tempdata /= 10;
2762
+        printf("UL4 Shutdown Threas : %d \r\n",tempdata);   
2763
+#endif // PYJ.2020.07.01_END -- 
2764
+
2765
+
2766
+        
2732 2767
 //        printf("Temp Alarm %d \r\n");
2733 2768
         printf("ALC  Alarm 1: %d 2:  %d 3: %d 4: %d\r\n",
2734 2769
             bluecell_Currdatastatus.ALARM_ULO_ALC_Alarm & ALARM_ALC_P1,
@@ -4078,7 +4113,25 @@ uint32_t MBIC_DataSend(uint8_t* data){
4078 4113
 
4079 4114
 }
4080 4115
 uint8_t TxData[2048] = {0,};
4116
+#define ALAMASK_DEFAULT 1
4117
+#define Temp_THREADHOLD_DEFAULT 80
4118
+#define CARRIER_DEFAULT 1
4119
+#define DLI_PATH_DEFAULT
4120
+#define DLI_GAIN_ATT_DEFAULT 0
4121
+
4122
+
4123
+
4124
+void Factory_Set(){
4125
+    bluecell_Currdatastatus.ALARM_MASK1 = ALAMASK_DEFAULT;
4126
+    bluecell_Currdatastatus.ALARM_MASK2 = ALAMASK_DEFAULT;    
4127
+    bluecell_Currdatastatus.ALARM_MASK3 = ALAMASK_DEFAULT;
4128
+    bluecell_Currdatastatus.ALARM_MASK4 = ALAMASK_DEFAULT;    
4129
+    bluecell_Currdatastatus.ALARM_MASK5 = ALAMASK_DEFAULT;  
4130
+    bluecell_Currdatastatus.Temp_High_Threshold = Temp_THREADHOLD_DEFAULT;
4131
+//    bluecell_Currdatastatus.Carrier_ON_OFF = 
4132
+    
4081 4133
 
4134
+}
4082 4135
 bool MBIC_Operate(uint8_t* data){
4083 4136
 	uint8_t datatype = data[MBIC_PAYLOADSTART + 1];
4084 4137
    // uint8_t Length = (data[MBIC_PROT_SUB_DATA_INDEX + 2]);
@@ -5844,20 +5897,20 @@ typedef enum{
5844 5897
     ULO_ALC_L,
5845 5898
 };
5846 5899
 void ALC_Package_Operate(uint8_t*ULO_ADC_Level,uint8_t* ULO_Level,DET_TABLEUL_st*      UL_Table,uint8_t TableIndex,uint8_t* ALC_Atten,uint8_t* UL_Main_Atten,uint8_t* GainOffset ){
5900
+    /*static int16_t PrevLimitdata[ALC_Alarm_UL_Index_MAX] = {0,};
5901
+    static int8_t* ALC_Table;
5902
+    int16_t tmpcalc = 0;
5903
+    static int16_t PrevIwillGiveAtten[ALC_Alarm_UL_Index_MAX] ={0,};*/
5904
+    int16_t Gain_Atten = 0;
5847 5905
     double ret = 0;
5848 5906
     double CurrentATTENVALUE = 0;
5849 5907
     int16_t Limitdata = 0;
5850
-    static int16_t PrevLimitdata[ALC_Alarm_UL_Index_MAX] = {0,};
5851 5908
     double ResdBm = 0;
5852 5909
     int16_t ResultData = 0;
5853 5910
     int16_t IwillGiveAtten = 0;
5854
-    static int8_t* ALC_Table;
5855
-    int16_t tmpcalc = 0;
5856 5911
     int16_t UL_Atten = 0;
5857 5912
     int16_t Main_Atten = 0;
5858
-    int16_t Gain_Atten = 0;
5859 5913
     int16_t GiveAttenPlusULAtten = 0;
5860
-    static int16_t PrevIwillGiveAtten[ALC_Alarm_UL_Index_MAX] ={0,};
5861 5914
 
5862 5915
     UL_Atten = ALC_Atten[ULO_ALC_H] << 8 | ALC_Atten[ULO_ALC_L];
5863 5916
     Main_Atten = UL_Main_Atten[ULO_ALC_H] << 8 | UL_Main_Atten[ULO_ALC_L];
@@ -5879,9 +5932,9 @@ void ALC_Package_Operate(uint8_t*ULO_ADC_Level,uint8_t* ULO_Level,DET_TABLEUL_st
5879 5932
     CurrentATTENVALUE = PE43711_Double(ALC_Atten[ULO_ALC_H],ALC_Atten[ULO_ALC_L]);
5880 5933
     ULO_Level[ULO_ALC_H] = (ResultData & 0xFF00) >> 8;
5881 5934
     ULO_Level[ULO_ALC_L] = (ResultData & 0x00FF);
5882
-    printf("=============ALC ON =====START================\r\n");
5935
+//    printf("=============ALC ON =====START================\r\n");
5883 5936
 //    printf("Current UL ADC VALUE : %f \r\n",ret);
5884
-    printf("ResdBm : UL%d : %f \r\n",TableIndex + 1,ResdBm);    
5937
+//    printf("ResdBm : UL%d : %f \r\n",TableIndex + 1,ResdBm);    
5885 5938
 //    printf("ORIGIN ResdBm : %f  %d\r\n",ResdBm,Main_Atten);
5886 5939
 //    printf("After ResdBm : %f \r\n",ResdBm);
5887 5940
     Limitdata += (Main_Atten * 0.1);
@@ -5951,7 +6004,7 @@ void ALC_Function(){ //DL
5951 6004
   //  int32_t CurrnALC_MAX_SettingValue = 0;
5952 6005
   //  int32_t CurrnALC_MIN_SettingValue = 0;
5953 6006
   //  int32_t ALC_Result = 0;
5954
-    int16_t Limitdata = 0;
6007
+/*    int16_t Limitdata = 0;
5955 6008
     static int16_t PrevLimitdata[ALC_Alarm_UL_Index_MAX] = {0,};
5956 6009
     double ResdBm = 0;
5957 6010
     int16_t ResultData = 0;
@@ -5959,11 +6012,11 @@ void ALC_Function(){ //DL
5959 6012
     int16_t IwillGiveAtten = 0;
5960 6013
     static int8_t* ALC_Table;
5961 6014
     int16_t tmpcalc = 0;
5962
-    int16_t UL_Atten[ALC_Alarm_UL_Index_MAX] = {0,};
5963
-    int16_t Main_Atten[ALC_Alarm_UL_Index_MAX] = {0,};
5964
-    static int16_t PrevIwillGiveAtten[ALC_Alarm_UL_Index_MAX] ={0,};
6015
+    static int16_t PrevIwillGiveAtten[ALC_Alarm_UL_Index_MAX] ={0,};*/
5965 6016
 //    uint8_t tempadc[256];
5966 6017
 
6018
+    int16_t UL_Atten[ALC_Alarm_UL_Index_MAX] = {0,};
6019
+    int16_t Main_Atten[ALC_Alarm_UL_Index_MAX] = {0,};
5967 6020
     
5968 6021
 //    Bluecell_StructCpy(&AutoControl_Save[0],&UL_DET_Table_ref[TABLE_MAX_VALUE],sizeof(ALC_dBm_t));
5969 6022
 //    Bluecell_StructCpy(&tempadc[0],&Det_UL1.Table_Det_15_dBm_H,sizeof(DET_TABLEUL_st));
@@ -6677,15 +6730,15 @@ void DL_Det_Function(uint8_t Table_Num,uint8_t* CurrADC_Level,DET_TABLEDL_st* DL
6677 6730
     Level[DL_Level_L] = (Levelret & 0x00FF);
6678 6731
 }
6679 6732
 void AGC_Function(){//DL
6680
-    double ret = 0;
6733
+    /*double ret = 0;
6681 6734
     int8_t ResdBm = 0;
6682
-
6683 6735
     int16_t Levelret = 0;
6684 6736
     int i = 0;
6685
-    int16_t Limitdata = 0;
6686 6737
     int16_t IwillgiveAtten = 0;
6687 6738
     int16_t ResultData = 0;
6688
-    static int8_t* AGC_Table;// = &DL_DET_Table_ref[MBIC_Table_DL1_INDEX][TABLE_MAX_VALUE];
6739
+    static int8_t* AGC_Table;// = &DL_DET_Table_ref[MBIC_Table_DL1_INDEX][TABLE_MAX_VALUE];*/
6740
+
6741
+    int16_t Limitdata = 0;
6689 6742
     int16_t DL_Curr_Atten[AGC_Alarm_DL_Index_MAX] = {
6690 6743
         bluecell_Currdatastatus.ATT_DL1_H  << 8 | bluecell_Currdatastatus.ATT_DL1_L,
6691 6744
         bluecell_Currdatastatus.ATT_DL2_H  << 8 | bluecell_Currdatastatus.ATT_DL2_L,
@@ -7409,8 +7462,8 @@ typedef enum{
7409 7462
 };
7410 7463
 
7411 7464
 void DL_Shutdown_Operate(uint8_t index,uint8_t* path,uint8_t* retrycnt,uint8_t* ShutdownAlarm,uint8_t* MainAtten){
7412
-    GPIO_TypeDef *Port;
7413
-    uint16_t Pin;
7465
+    GPIO_TypeDef *Port = 0;
7466
+    uint16_t Pin = 0;
7414 7467
     uint8_t AlarmFlag = 0;
7415 7468
 
7416 7469
 
@@ -7434,10 +7487,11 @@ void DL_Shutdown_Operate(uint8_t index,uint8_t* path,uint8_t* retrycnt,uint8_t*
7434 7487
             Port = PATH_EN_DL4_GPIO_Port;
7435 7488
             Pin = PATH_EN_DL4_Pin;        
7436 7489
             AlarmFlag = ALARM_DLI_SHUTDOWN_P4;
7490
+//            printf("Timer : %d   | Retry Cnt : %d | PrevMBIC_DL_ShutdownCount[%d] %d | MBIC_DL_ShutdownCount[%d] %d | DL_PathUserHandl[index] %d \r\n",DET_DL_Shutdown_Off_AlarmTimerCnt[index],(*retrycnt),index + 1,PrevMBIC_DL_ShutdownCount[index],index + 1,MBIC_DL_ShutdownCount[index],DL_PathUserHandl[index]);
7437 7491
             break;
7438 7492
     }
7439
-    if(MBIC_DL_ShutdownCount[index] < 3
7440
-        && (PrevMBIC_DL_ShutdownCount[index] != MBIC_DL_ShutdownCount[index])
7493
+    if((*retrycnt) < 3
7494
+        /*&& (PrevMBIC_DL_ShutdownCount[index] != MBIC_DL_ShutdownCount[index])*/
7441 7495
         && DET_DL_Shutdown_Off_AlarmTimerCnt[index] >= MBIC_RECOVERY_SHUTDOWN_MAINTAIN_SEC
7442 7496
         && DL_PathUserHandl[index] == false
7443 7497
         && (*retrycnt) > 0){
@@ -7729,9 +7783,9 @@ UL_Shutdown_Operate(DET_Alarm_UL1_Shutdown_Index,
7729 7783
                         &bluecell_Currdatastatus.ULO_Shutdown_Alarm1);
7730 7784
 #endif // PYJ.2020.06.28_END -- 
7731 7785
 
7732
-void UL_Shutdown_Operate(uint8_t Index,uint8_t* Path,uint8_t* PrevATT,uint8_t* RetryCnt,uint8_t* ShutdownAlarm){
7733
-    GPIO_TypeDef *Port;
7734
-    uint16_t Pin;
7786
+void UL_Shutdown_Operate(uint8_t Index,uint8_t* Path,uint8_t* PrevATT,uint8_t* RetryCnt,uint8_t* ShutdownAlarm,uint8_t AlarmFlag){
7787
+    GPIO_TypeDef *Port = 0;
7788
+    uint16_t Pin = 0;
7735 7789
 
7736 7790
 
7737 7791
     switch(Index){
@@ -7750,20 +7804,24 @@ void UL_Shutdown_Operate(uint8_t Index,uint8_t* Path,uint8_t* PrevATT,uint8_t* R
7750 7804
         case DET_Alarm_UL4_Shutdown_Index: 
7751 7805
         Port = PATH_EN_UL4_GPIO_Port;
7752 7806
         Pin = PATH_EN_UL4_Pin;  
7807
+//        printf("Timer : %d   | Retry Cnt : %d |  \r\n",DET_UL_Shutdown_Off_AlarmTimerCnt[Index],(*RetryCnt),Index + 1,PrevMBIC_UL_ShutdownCount[Index],Index + 1,MBIC_UL_ShutdownCount[Index]);        
7753 7808
         break;
7754 7809
 
7755 7810
     }
7756
-    if(MBIC_UL_ShutdownCount[Index] < 3
7757
-        && (PrevMBIC_UL_ShutdownCount[Index] != MBIC_UL_ShutdownCount[Index])
7758
-        && DET_UL_Shutdown_Off_AlarmTimerCnt[Index] >= MBIC_RECOVERY_SHUTDOWN_MAINTAIN_SEC){
7811
+    
7812
+    if((*RetryCnt) < 3
7813
+//        && (PrevMBIC_UL_ShutdownCount[Index] != MBIC_UL_ShutdownCount[Index])
7814
+        && DET_UL_Shutdown_Off_AlarmTimerCnt[Index] >= MBIC_RECOVERY_SHUTDOWN_MAINTAIN_SEC
7815
+        && (*RetryCnt) > 0){
7759 7816
         HAL_GPIO_WritePin(Port,Pin,GPIO_PIN_SET);//CLOCK
7817
+//        printf();
7760 7818
         *Path = true;            
7761 7819
         PrevATT[UL_Shutdown_H] = 0xFF;
7762 7820
         PrevATT[UL_Shutdown_L] = 0xFF;
7763 7821
         PrevMBIC_UL_ShutdownCount[Index] = MBIC_UL_ShutdownCount[Index];
7764 7822
         CompareAttenData(bluecell_Currdatastatus,bluecell_Prevdatastatus); 
7765 7823
     }
7766
-    else if(MBIC_UL_ShutdownCount[Index] == 3
7824
+    else if((*RetryCnt) == 3
7767 7825
         && DET_UL_Shutdown_Off_AlarmTimerCnt[Index] >= MBIC_RECOVERY_LAST_SHUTDOWN_MAINTAIN_SEC){
7768 7826
         HAL_GPIO_WritePin(Port,Pin,GPIO_PIN_SET);//CLOCK
7769 7827
         *Path = true;            
@@ -7781,7 +7839,7 @@ void UL_Shutdown_Operate(uint8_t Index,uint8_t* Path,uint8_t* PrevATT,uint8_t* R
7781 7839
         
7782 7840
         if((*RetryCnt) >= RETRYCNT_MAX){
7783 7841
             (*RetryCnt) = RETRYCNT_MAX;
7784
-            bluecell_Currdatastatus.ALARM_ULO_SHTUTDOWN |= ALARM_ULO_SHUTDOWN_P1;
7842
+            bluecell_Currdatastatus.ALARM_ULO_SHTUTDOWN |= AlarmFlag;
7785 7843
             *ShutdownAlarm       = true;
7786 7844
         }else{
7787 7845
         }
@@ -7790,10 +7848,11 @@ void UL_Shutdown_Operate(uint8_t Index,uint8_t* Path,uint8_t* PrevATT,uint8_t* R
7790 7848
     else{
7791 7849
         if(DET_UL_Shutdown_Off_AlarmTimerCnt[Index] >= MBIC_OFF_MAINTAIN_SEC
7792 7850
             && (*RetryCnt) != RETRYCNT_MAX){
7793
-            bluecell_Currdatastatus.ALARM_ULO_SHTUTDOWN &= ~ALARM_ULO_SHUTDOWN_P1;
7851
+            bluecell_Currdatastatus.ALARM_ULO_SHTUTDOWN &= ~AlarmFlag;
7794 7852
             *ShutdownAlarm       = false;            
7795 7853
         }
7796 7854
     } 
7855
+
7797 7856
 }
7798 7857
 
7799 7858
 void ULO_ShutdownAlarmCheck(){
@@ -7854,6 +7913,35 @@ void ULO_ShutdownAlarmCheck(){
7854 7913
         
7855 7914
 #endif // PYJ.2020.06.21_END -- 
7856 7915
 #if 1 // PYJ.2020.06.19_BEGIN --
7916
+#if 1 // PYJ.2020.07.01_BEGIN -- 
7917
+    UL_Shutdown_Operate(DET_Alarm_UL1_Shutdown_Index,
7918
+                            &bluecell_Currdatastatus.ATT_UL1_PATH,
7919
+                            &bluecell_Prevdatastatus.ATT_UL1_H,
7920
+                            &bluecell_Currdatastatus.ULO_Shutdown_Retry_Count1,
7921
+                            &bluecell_Currdatastatus.ULO_Shutdown_Alarm1,
7922
+                            ALARM_ULO_SHUTDOWN_P1);
7923
+    UL_Shutdown_Operate(DET_Alarm_UL2_Shutdown_Index,
7924
+                            &bluecell_Currdatastatus.ATT_UL2_PATH,
7925
+                            &bluecell_Prevdatastatus.ATT_UL2_H,
7926
+                            &bluecell_Currdatastatus.ULO_Shutdown_Retry_Count2,
7927
+                            &bluecell_Currdatastatus.ULO_Shutdown_Alarm2,
7928
+                            ALARM_ULO_SHUTDOWN_P2);
7929
+    UL_Shutdown_Operate(DET_Alarm_UL3_Shutdown_Index,
7930
+                    &bluecell_Currdatastatus.ATT_UL3_PATH,
7931
+                    &bluecell_Prevdatastatus.ATT_UL3_H,
7932
+                    &bluecell_Currdatastatus.ULO_Shutdown_Retry_Count3,
7933
+                    &bluecell_Currdatastatus.ULO_Shutdown_Alarm3,
7934
+                    ALARM_ULO_SHUTDOWN_P3);
7935
+    UL_Shutdown_Operate(DET_Alarm_UL4_Shutdown_Index,
7936
+                            &bluecell_Currdatastatus.ATT_UL4_PATH,
7937
+                            &bluecell_Prevdatastatus.ATT_UL4_H,
7938
+                            &bluecell_Currdatastatus.ULO_Shutdown_Retry_Count4,
7939
+                            &bluecell_Currdatastatus.ULO_Shutdown_Alarm4,
7940
+                            ALARM_ULO_SHUTDOWN_P4);
7941
+#else
7942
+
7943
+
7944
+
7857 7945
         /***************************************************************************************************************/
7858 7946
         /*                                             SHUTDOWN UL1                                                    */
7859 7947
         /***************************************************************************************************************/  
@@ -8066,6 +8154,8 @@ void ULO_ShutdownAlarmCheck(){
8066 8154
             }
8067 8155
         } 
8068 8156
         
8157
+        
8158
+#endif // PYJ.2020.07.01_END -- 
8069 8159
 
8070 8160
 #if 0 // PYJ.2020.06.21_BEGIN -- 
8071 8161
         if(ADC_Alarm_UL_Shutdown_Set[DET_Alarm_UL3_Shutdown_Index] == true

+ 7 - 7
Bluecell_Src/eeprom.c

@@ -24,7 +24,7 @@ extern BLUESTATUS_st bluecell_Currdatastatus;
24 24
 
25 25
 
26 26
 uint8_t testdata[120];
27
-
27
+/*
28 28
 typedef enum{
29 29
     Test_DL1 = 0,
30 30
     Test_DL2 = 0,
@@ -36,9 +36,9 @@ typedef enum{
36 36
     Test_UL2 = 0,
37 37
     Test_UL3 = 0,
38 38
     Test_UL4 = 0,    
39
-};
39
+};*/
40 40
 void EEPROM_M24C08_Init(void){
41
-    uint8_t* data = 0;
41
+/*    uint8_t* data = 0;
42 42
     int16_t DL_Main_Atten[4] = {0,};
43 43
     int16_t DL_Offset_Atten[4] = {0,};
44 44
 
@@ -62,7 +62,7 @@ void EEPROM_M24C08_Init(void){
62 62
     bool UL_shutdown_Path = 0;
63 63
 
64 64
     int16_t DL_Shutdown_ThreadHold = 0;        
65
-    int16_t UL_Shutdown_ThreadHold = 0; 
65
+    int16_t UL_Shutdown_ThreadHold = 0;*/
66 66
 
67 67
 //    DL_High_ThreasHold = bluecell_Currdatastatus.MBIC_ULO_ALC_Atten4_H << 8 | bluecell_Currdatastatus.MBIC_ULO_ALC_Atten4_L;
68 68
 //    ALC_TEMP[0] = bluecell_Currdatastatus.MBIC_ULO_ALC_Atten1_H << 8 | bluecell_Currdatastatus.MBIC_ULO_ALC_Atten1_L;
@@ -87,9 +87,9 @@ void EEPROM_M24C08_Init(void){
87 87
     EEPROM_M24C08_Read(EEPROM_M24C08_ID,EEPROM_DET_DL2_TABLE_ADDRESDS,&Det_DL3.Table_Det5_dBm_H,sizeof(DET_TABLEDL_st) );
88 88
     EEPROM_M24C08_Read(EEPROM_M24C08_ID,EEPROM_DET_DL3_TABLE_ADDRESDS,&Det_DL4.Table_Det5_dBm_H,sizeof(DET_TABLEDL_st) );
89 89
 
90
-    uint8_t* tmpdata;
90
+//    uint8_t* tmpdata;
91 91
     EEPROM_M24C08_Read(EEPROM_M24C08_ID,EEPROM_DET_DL4_TABLE_ADDRESDS,&Det_UL1.Table_Det_15_dBm_H,sizeof(DET_TABLEUL_st) );
92
-    tmpdata = &Det_UL1.Table_Det_15_dBm_H;
92
+    //tmpdata = &Det_UL1.Table_Det_15_dBm_H;
93 93
 //    for(int i =0; i < sizeof(DET_TABLEUL_st) ; i++){
94 94
 //        printf("[%d]%f \r\n",i,(tmpdata[i * 2] << 8 | tmpdata[i*2+1])*0.001);
95 95
 //    }
@@ -144,7 +144,7 @@ void EEPROM_M24C08_Init(void){
144 144
 //    printf("UL3\r\n");    Table_DET_DataSetting(&UL_Table_ref[ALC_Table_UL3_Ref_Index][DLUL_TABLE_MAX_VALUE],Det_UL3.Table_Ref ,TableDataSetting_ATT_DET_STEP,Det_UL3.Table_Length);
145 145
 //    printf("UL4\r\n");    Table_DET_DataSetting(&UL_Table_ref[ALC_Table_UL4_Ref_Index][DLUL_TABLE_MAX_VALUE],Det_UL4.Table_Ref ,TableDataSetting_ATT_DET_STEP,Det_UL4.Table_Length);
146 146
 
147
-#if 1// PYJ.2020.06.28_BEGIN -- 
147
+#if 0// PYJ.2020.06.28_BEGIN --
148 148
     DL_Main_Atten[Test_DL1] = (bluecell_Currdatastatus.ATT_DL1_H << 8) | bluecell_Currdatastatus.ATT_DL1_L;
149 149
     DL_Main_Atten[Test_DL2] = bluecell_Currdatastatus.ATT_DL2_H << 8 | bluecell_Currdatastatus.ATT_DL2_L;
150 150
     DL_Main_Atten[Test_DL3] = bluecell_Currdatastatus.ATT_DL3_H << 8 | bluecell_Currdatastatus.ATT_DL3_L;

+ 1 - 1
Bluecell_Src/uart.c

@@ -100,7 +100,7 @@ void GetDataFromUartQueue(UART_HandleTypeDef *huart)
100 100
 //        printf("data cnt zero !!!  \r\n");
101 101
         //RF_Ctrl_Main(&uart_buf[Header]);
102 102
 //        HAL_UART_Transmit(dst, &temp_buf[BLUECELL_HEADER00], 11, 3000);
103
-#if 1// PYJ.2019.07.15_BEGIN --
103
+#if 0// PYJ.2019.07.15_BEGIN --
104 104
             printf("\r\n[RX]");
105 105
             for(int i = 0; i < cnt; i++){
106 106
                 printf("%02x ",uart_buf[i]);

+ 1 - 0
Jdats-cppcheck-build-dir/__temp__.c

@@ -0,0 +1 @@
1
+int x;

+ 1 - 0
Jdats-cppcheck-build-dir/__temp__.cpp

@@ -0,0 +1 @@
1
+int x;

+ 0 - 0
Jdats-cppcheck-build-dir/files.txt


+ 5 - 0
Jdats-cppcheck-build-dir/lastResults.xml

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<results version="2">
3
+    <cppcheck version="2.0"/>
4
+    <errors/>
5
+</results>

+ 2 - 0
Jdats-cppcheck-build-dir/statistics.txt

@@ -0,0 +1,2 @@
1
+[01.07.2020]
2
+1593575672317

+ 10 - 0
Jdats.cppcheck

@@ -0,0 +1,10 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="1">
3
+    <builddir>Jdats-cppcheck-build-dir</builddir>
4
+    <platform>Unspecified</platform>
5
+    <importproject>.cproject</importproject>
6
+    <analyze-all-vs-configs>false</analyze-all-vs-configs>
7
+    <check-headers>true</check-headers>
8
+    <check-unused-templates>false</check-unused-templates>
9
+    <max-ctu-depth>10</max-ctu-depth>
10
+</project>

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 2136 - 0
Release/STM32F103ZET_JDASMBIC.map


BIN
Release/Src/main.o


+ 11 - 0
Release/Src/main.su

@@ -0,0 +1,11 @@
1
+main.c:171:10:ShutdownCnt_Get	0	static
2
+main.c:174:6:ShutdownCnt_Set	0	static
3
+main.c:178:6:Pol_Delay_us	8	static
4
+main.c:188:5:_write	8	static
5
+main.c:200:6:HAL_ADC_ConvCpltCallback	20	static
6
+main.c:406:6:SystemClock_Config	96	static
7
+main.c:241:5:main	104	static
8
+main.c:869:6:DL_Shutdown_Timer	0	static
9
+main.c:894:6:UL_Shutdown_Timer	0	static
10
+main.c:930:6:HAL_TIM_PeriodElapsedCallback	8	static
11
+main.c:1440:6:Error_Handler	0	static

BIN
Release/Src/stm32f1xx_hal_msp.o


+ 9 - 0
Release/Src/stm32f1xx_hal_msp.su

@@ -0,0 +1,9 @@
1
+stm32f1xx_hal_msp.c:75:6:HAL_MspInit	8	static
2
+stm32f1xx_hal_msp.c:101:6:HAL_ADC_MspInit	56	static
3
+stm32f1xx_hal_msp.c:203:6:HAL_ADC_MspDeInit	8	static
4
+stm32f1xx_hal_msp.c:268:6:HAL_I2C_MspInit	32	static
5
+stm32f1xx_hal_msp.c:302:6:HAL_I2C_MspDeInit	0	static
6
+stm32f1xx_hal_msp.c:331:6:HAL_TIM_Base_MspInit	8	static
7
+stm32f1xx_hal_msp.c:353:6:HAL_TIM_Base_MspDeInit	0	static
8
+stm32f1xx_hal_msp.c:378:6:HAL_UART_MspInit	48	static
9
+stm32f1xx_hal_msp.c:510:6:HAL_UART_MspDeInit	8	static

BIN
Release/Src/system_stm32f1xx.o


+ 1 - 1
STM32F103ZET_JDASMBIC.elf.launch

@@ -57,5 +57,5 @@
57 57
 </listAttribute>
58 58
 <stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;memoryBlockExpressionList context=&quot;reserved-for-future-use&quot;/&gt;&#13;&#10;"/>
59 59
 <stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
60
-<stringAttribute key="saved_expressions&lt;seperator&gt;Unknown" value="uart_buf,0x08005000,0x8005000,Bank2data,data,Currdata,Currdata[MBIC_BOOT_VERSION + 2],Bank1data"/>
60
+<stringAttribute key="saved_expressions&lt;seperator&gt;Unknown" value="uart_buf,0x08005000,0x8005000,Bank2data,data,Currdata,Currdata[MBIC_BOOT_VERSION + 2],Bank1data,retrycnt,MBIC_DL_ShutdownCount,MBIC_DL_ShutdownCount[3],MBIC_DL_ShutdownCount[0],MBIC_DL_ShutdownCount[1],MBIC_DL_ShutdownCount[2],MBIC_DL_ShutdownCount[4]"/>
61 61
 </launchConfiguration>

+ 12 - 12
Src/main.c

@@ -238,7 +238,7 @@ extern const uint16_t crc16_tab[256];
238 238
 
239 239
 
240 240
 
241
-main(void)  {
241
+int main(void)  {
242 242
   /* USER CODE BEGIN 1 */
243 243
 
244 244
   /* USER CODE END 1 */
@@ -866,7 +866,7 @@ static void MX_GPIO_Init(void)
866 866
 }
867 867
 
868 868
 /* USER CODE BEGIN 4 */
869
-void DL_Shutdown_Timer(uint8_t* pdata,uint8_t Table_num){
869
+void DL_Shutdown_Timer(uint8_t Table_num){
870 870
     if(bluecell_Currdatastatus.DLI_Shutdown_ON_OFF == true){
871 871
           if(ADC_Alarm_DL_Shutdown_Set[DET_Alarm_DL1_Shutdown_Index + Table_num] == true){
872 872
               DET_DL_Shutdown_Off_AlarmTimerCnt[DET_Alarm_DL1_Shutdown_Index + Table_num] = 0; // OFF CNT = 0;
@@ -891,7 +891,7 @@ void DL_Shutdown_Timer(uint8_t* pdata,uint8_t Table_num){
891 891
           }
892 892
   }
893 893
 }
894
-void UL_Shutdown_Timer(uint8_t* pdata,uint8_t Table_num){
894
+void UL_Shutdown_Timer(uint8_t Table_num){
895 895
     if(bluecell_Currdatastatus.ULO_Shutdown_ON_OFF == true){
896 896
           if(ADC_Alarm_UL_Shutdown_Set[DET_Alarm_UL1_Shutdown_Index + Table_num] == true){
897 897
               DET_UL_Shutdown_Off_AlarmTimerCnt[DET_Alarm_UL1_Shutdown_Index + Table_num] = 0; // OFF CNT = 0;
@@ -930,7 +930,7 @@ void UL_Shutdown_Timer(uint8_t* pdata,uint8_t Table_num){
930 930
 void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
931 931
 {
932 932
   /* USER CODE BEGIN Callback 0 */
933
-    uint8_t* pdata;
933
+  //  uint8_t* pdata;
934 934
   /* USER CODE END Callback 0 */
935 935
   if (htim->Instance == TIM2) {
936 936
     HAL_IncTick();
@@ -945,22 +945,22 @@ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
945 945
       AGCTimerCnt++;
946 946
       
947 947
 //    pdata = &bluecell_Currdatastatus.ATT_UL1_PATH;
948
-    UL_Shutdown_Timer(pdata,DET_Alarm_UL1_Shutdown_Index);
948
+    UL_Shutdown_Timer(DET_Alarm_UL1_Shutdown_Index);
949 949
 //    pdata = &bluecell_Currdatastatus.ATT_UL2_PATH;
950
-    UL_Shutdown_Timer(pdata,DET_Alarm_UL2_Shutdown_Index);
950
+    UL_Shutdown_Timer(DET_Alarm_UL2_Shutdown_Index);
951 951
 //    pdata = &bluecell_Currdatastatus.ATT_UL3_PATH;
952
-    UL_Shutdown_Timer(pdata,DET_Alarm_UL3_Shutdown_Index);
952
+    UL_Shutdown_Timer(DET_Alarm_UL3_Shutdown_Index);
953 953
 //    pdata = &bluecell_Currdatastatus.ATT_UL4_PATH;
954
-    UL_Shutdown_Timer(pdata,DET_Alarm_UL4_Shutdown_Index);
954
+    UL_Shutdown_Timer(DET_Alarm_UL4_Shutdown_Index);
955 955
 
956 956
 //    pdata = &bluecell_Currdatastatus.ATT_DL1_PATH;
957
-    DL_Shutdown_Timer(pdata,DET_Alarm_DL1_Shutdown_Index);
957
+    DL_Shutdown_Timer(DET_Alarm_DL1_Shutdown_Index);
958 958
 //    pdata = &bluecell_Currdatastatus.ATT_DL2_PATH;
959
-    DL_Shutdown_Timer(pdata,DET_Alarm_DL2_Shutdown_Index);
959
+    DL_Shutdown_Timer(DET_Alarm_DL2_Shutdown_Index);
960 960
 //    pdata = &bluecell_Currdatastatus.ATT_DL3_PATH;
961
-    DL_Shutdown_Timer(pdata,DET_Alarm_DL3_Shutdown_Index);
961
+    DL_Shutdown_Timer(DET_Alarm_DL3_Shutdown_Index);
962 962
 //    pdata = &bluecell_Currdatastatus.ATT_DL4_PATH;
963
-    DL_Shutdown_Timer(pdata,DET_Alarm_DL4_Shutdown_Index);
963
+    DL_Shutdown_Timer(DET_Alarm_DL4_Shutdown_Index);
964 964
   
965 965
       /*ALC Alarm timer start*/
966 966
       if(ALC_AlarmSet[ALC_Alarm_UL1_Index] == true){