Ignore:
Timestamp:
Sep 7, 2025, 3:51:43 PM (7 weeks ago)
Author:
f.jahn
Message:

RTC implementiert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fw_g473rct/SES/src/main.c

    r24 r25  
    4444#include "chip_temperature.h"
    4545#include "shunt_temperature.h"
     46#include "esr.h"
     47#include "ads1260.h"
     48#include "outputs.h"
     49#include "crc.h"
    4650/* USER CODE END Includes */
    4751
     
    139143  MX_USB_PCD_Init();
    140144  /* USER CODE BEGIN 2 */
     145  MX_CRC_Init(); //Cube is not generating this call ?!
    141146  printf("Test debug io\r\n");
    142147  SYS_DATA_Init();
     
    207212     Error_Handler();
    208213  }
     214
     215
     216  // ADS1260 Initialierung
     217  ADS1260_init();
     218  printf("ADS1260 Init\n");
     219  OUTPUTS_Init();
    209220
    210221  /* USER CODE END 2 */
     
    249260      sys_data.s.values.lvp_sense =  (adc5Data[3] * VREF * 21 ) / 65536.0;
    250261        }
     262
     263
     264        if (newCurrentValue == 1)
     265    {
     266      ADS1260_ConversionFinished();
     267      ESR_Exec();
     268
     269      newCurrentValue = 0;
     270
     271    }
    251272
    252273        if(sys_data.s.parameter.command != 0)
Note: See TracChangeset for help on using the changeset viewer.