Changeset 4 for trunk/firmware/CubeMX
- Timestamp:
- Apr 27, 2023, 11:58:15 AM (3 years ago)
- Location:
- trunk/firmware/CubeMX
- Files:
-
- 4 edited
-
Inc/main.h (modified) (2 diffs)
-
Src/main.c (modified) (2 diffs)
-
Src/stm32g0xx_it.c (modified) (2 diffs)
-
Src/tim.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/firmware/CubeMX/Inc/main.h
r2 r4 59 59 /* USER CODE BEGIN EFP */ 60 60 61 //#define DISABLE_SHORTCUT_DETECTION_DURING_SWITCH_OFF61 #define DISABLE_SHORTCUT_DETECTION_DURING_SWITCH_OFF 62 62 63 63 #ifdef DISABLE_SHORTCUT_DETECTION_DURING_SWITCH_OFF … … 183 183 #ifdef VARIANT_24V 184 184 #define CONTROL_CURRENT_A 380 // [A] long-term current limit of the device. 185 #define SHORTCUT_CURRENT_mV 800// [mV] Some big value to pass test sequence185 #define SHORTCUT_CURRENT_mV 2000 // [mV] Some big value to pass test sequence 186 186 #define INRUSH_CURRENT_mV 1100 // [mV] Some big value to pass test sequence 187 #define COPPER_V_DROP_AT_CONTROL_CURRENT_mV 56// [mV] - must be measured on the board187 #define COPPER_V_DROP_AT_CONTROL_CURRENT_mV 100 // [mV] - must be measured on the board 188 188 #else 189 189 #define CONTROL_CURRENT_A 500 // [A] long-term current limit of the device. -
trunk/firmware/CubeMX/Src/main.c
r2 r4 2110 2110 2111 2111 // We disable shortcut detecting interrupt 2112 HAL_NVIC_DisableIRQ(ADC1_COMP_IRQn);2112 //HAL_NVIC_DisableIRQ(ADC1_COMP_IRQn); 2113 2113 //} 2114 2114 } … … 2852 2852 void OVP_not_present__LVP_present(void) 2853 2853 { 2854 #ifdef DISABLE_SHORTCUT_DETECTION_DURING_SWITCH_OFF2855 DisableShortCutDetection();2856 #endif2854 //#ifdef DISABLE_SHORTCUT_DETECTION_DURING_SWITCH_OFF 2855 // DisableShortCutDetection(); 2856 //#endif 2857 2857 HAL_NVIC_DisableIRQ(ADC_DMA_IRQ); 2858 2858 MOSFETS_Management = &ADC_OVP_not_present__LVP_present; -
trunk/firmware/CubeMX/Src/stm32g0xx_it.c
r1 r4 214 214 { 215 215 /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */ 216 //R2_GPIO_Port->BSRR = R2_Pin;216 TP2_GPIO_Port->BSRR = TP2_Pin; 217 217 218 218 static uint32_t current_integral = 0; … … 240 240 else current_integral = 0; 241 241 242 //R2_GPIO_Port->BRR = R2_Pin;242 TP2_GPIO_Port->BRR = TP2_Pin; 243 243 244 244 return; -
trunk/firmware/CubeMX/Src/tim.c
r1 r4 178 178 /* USER CODE BEGIN TIM15_Init 0 */ 179 179 180 // This timer is used to turn on again overcurrent detection after short turn-off. 181 180 182 /* USER CODE END TIM15_Init 0 */ 181 183
Note:
See TracChangeset
for help on using the changeset viewer.
