Changeset 7 for trunk/firmware/CubeMX/Src/stm32g0xx_it.c
- Timestamp:
- May 24, 2023, 1:47:09 PM (2 years ago)
- File:
-
- 1 edited
-
trunk/firmware/CubeMX/Src/stm32g0xx_it.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/firmware/CubeMX/Src/stm32g0xx_it.c
r4 r7 100 100 //extern uint32_t overload_shutdown_time; 101 101 extern void (*InrushCurrentManagement)(void); 102 extern int low_bat_shutdown_is_active; 102 103 103 104 //extern uint16_t i_samples[I_RMS_SAMPLES_COUNT]; … … 219 220 220 221 rawMOSFETsVoltageDrop = ADC_values[MOSFETS_VDROP_CHANNEL]; 222 223 /*if (ADC_values[U_BAT_CHANNEL] < ADC_BAT_CRITICAL_VOLTAGE) 224 { 225 MOSFETS_Management = &OpenBothMOSFETSVeryFast; 226 if (low_bat_shutdown_is_active == 0) 227 { 228 sys_data.s.ubsenseb_voltage = 0; 229 low_bat_shutdown_is_active = 1; 230 sys_data.s.device_status |= (1 << LOWBAT_ERROR); 231 sys_data.s.lowbat_error_cnt++; 232 statDataChanged = 1; 233 } 234 }*/ 221 235 222 236 MOSFETS_Management();
Note:
See TracChangeset
for help on using the changeset viewer.
