Ignore:
Timestamp:
Sep 9, 2026, 3:02:30 PM (11 days ago)
Author:
f.jahn
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fw_g473rct/Core/Src/main.c

    r73 r76  
    2121#include "adc.h"
    2222#include "crc.h"
     23#include "dac.h"
    2324#include "dma.h"
    2425#include "i2c.h"
     
    174175  printf("System core clock: %uMHz\n", SystemCoreClock / 1000000U);
    175176  /* USER CODE END SysInit */
    176  
     177
    177178  /* Initialize all configured peripherals */
    178179  MX_GPIO_Init();
     
    190191  MX_CRC_Init();
    191192  MX_RTC_Init();
    192   MX_IWDG_Init();
     193  //MX_IWDG_Init();
    193194  MX_TIM3_Init();
    194 #ifndef  NO_USB_SUPPORT
     195  #ifndef NO_USB_SUPPORT
    195196  MX_USB_Device_Init();
    196197  MX_UCPD1_Init();
    197 #endif
     198  #endif
     199  MX_DAC1_Init();
    198200  /* USER CODE BEGIN 2 */
    199201
     
    231233  mbInit(&modbusData, sys_data.s.parameter.baudrate, sys_data.s.parameter.parityMode, sys_data.s.parameter.stopBit, &huart2);
    232234  HAL_IWDG_Refresh(&hiwdg);
    233   HAL_Delay(500);
     235 // HAL_Delay(500);
    234236  HAL_IWDG_Refresh(&hiwdg);
    235237
     
    281283
    282284  /* USBPD initialisation ---------------------------------*/
    283 #ifndef NO_USB_SUPPORT
     285  #ifndef NO_USB_SUPPORT
    284286  MX_USBPD_Init();
    285 #endif
     287  #endif
     288
    286289  /* Infinite loop */
    287290  /* USER CODE BEGIN WHILE */
     
    289292  {
    290293    /* USER CODE END WHILE */
    291 #ifndef NO_USB_SUPPORT
     294        #ifndef NO_USB_SUPPORT
    292295    USBPD_DPM_Run();
    293 #endif
     296        #endif
     297
    294298    /* USER CODE BEGIN 3 */
    295299    HAL_IWDG_Refresh(&hiwdg);
Note: See TracChangeset for help on using the changeset viewer.