Ignore:
Timestamp:
Apr 27, 2023, 11:58:15 AM (3 years ago)
Author:
f.jahn
Message:

Fixing project.

Location:
trunk/firmware/CubeMX/Src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/firmware/CubeMX/Src/main.c

    r2 r4  
    21102110
    21112111                                // We disable shortcut detecting interrupt
    2112                                 HAL_NVIC_DisableIRQ(ADC1_COMP_IRQn);
     2112                                //HAL_NVIC_DisableIRQ(ADC1_COMP_IRQn);
    21132113                        //}
    21142114                }
     
    28522852void OVP_not_present__LVP_present(void)
    28532853{
    2854 #ifdef DISABLE_SHORTCUT_DETECTION_DURING_SWITCH_OFF
    2855         DisableShortCutDetection();
    2856 #endif
     2854//#ifdef DISABLE_SHORTCUT_DETECTION_DURING_SWITCH_OFF
     2855//      DisableShortCutDetection();
     2856//#endif
    28572857        HAL_NVIC_DisableIRQ(ADC_DMA_IRQ);
    28582858        MOSFETS_Management = &ADC_OVP_not_present__LVP_present;
  • trunk/firmware/CubeMX/Src/stm32g0xx_it.c

    r1 r4  
    214214{
    215215  /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */
    216   //R2_GPIO_Port->BSRR = R2_Pin;
     216  TP2_GPIO_Port->BSRR = TP2_Pin;
    217217
    218218  static uint32_t current_integral = 0;
     
    240240  else current_integral = 0;
    241241
    242   //R2_GPIO_Port->BRR = R2_Pin;
     242  TP2_GPIO_Port->BRR = TP2_Pin;
    243243
    244244  return;
  • trunk/firmware/CubeMX/Src/tim.c

    r1 r4  
    178178  /* USER CODE BEGIN TIM15_Init 0 */
    179179
     180  // This timer is used to turn on again overcurrent detection after short turn-off.
     181
    180182  /* USER CODE END TIM15_Init 0 */
    181183
Note: See TracChangeset for help on using the changeset viewer.