Changeset 4 for trunk/firmware/CubeMX


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

Fixing project.

Location:
trunk/firmware/CubeMX
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/firmware/CubeMX/Inc/main.h

    r2 r4  
    5959/* USER CODE BEGIN EFP */
    6060
    61 //#define DISABLE_SHORTCUT_DETECTION_DURING_SWITCH_OFF
     61#define DISABLE_SHORTCUT_DETECTION_DURING_SWITCH_OFF
    6262
    6363#ifdef DISABLE_SHORTCUT_DETECTION_DURING_SWITCH_OFF
     
    183183#ifdef VARIANT_24V
    184184        #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 sequence
     185        #define SHORTCUT_CURRENT_mV                                     2000    // [mV] Some big value to pass test sequence
    186186        #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 board
     187        #define COPPER_V_DROP_AT_CONTROL_CURRENT_mV     100             // [mV] - must be measured on the board
    188188#else
    189189        #define CONTROL_CURRENT_A                                       500             // [A] long-term current limit of the device.
  • 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.