Changeset 4 for trunk/firmware/CubeMX/Src
- Timestamp:
- Apr 27, 2023, 11:58:15 AM (3 years ago)
- Location:
- trunk/firmware/CubeMX/Src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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.
