Changeset 76 for trunk/fw_g473rct/Core/Src/main.c
- Timestamp:
- Sep 9, 2026, 3:02:30 PM (11 days ago)
- File:
-
- 1 edited
-
trunk/fw_g473rct/Core/Src/main.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/fw_g473rct/Core/Src/main.c
r73 r76 21 21 #include "adc.h" 22 22 #include "crc.h" 23 #include "dac.h" 23 24 #include "dma.h" 24 25 #include "i2c.h" … … 174 175 printf("System core clock: %uMHz\n", SystemCoreClock / 1000000U); 175 176 /* USER CODE END SysInit */ 176 177 177 178 /* Initialize all configured peripherals */ 178 179 MX_GPIO_Init(); … … 190 191 MX_CRC_Init(); 191 192 MX_RTC_Init(); 192 MX_IWDG_Init();193 //MX_IWDG_Init(); 193 194 MX_TIM3_Init(); 194 #ifndef NO_USB_SUPPORT 195 #ifndef NO_USB_SUPPORT 195 196 MX_USB_Device_Init(); 196 197 MX_UCPD1_Init(); 197 #endif 198 #endif 199 MX_DAC1_Init(); 198 200 /* USER CODE BEGIN 2 */ 199 201 … … 231 233 mbInit(&modbusData, sys_data.s.parameter.baudrate, sys_data.s.parameter.parityMode, sys_data.s.parameter.stopBit, &huart2); 232 234 HAL_IWDG_Refresh(&hiwdg); 233 HAL_Delay(500);235 // HAL_Delay(500); 234 236 HAL_IWDG_Refresh(&hiwdg); 235 237 … … 281 283 282 284 /* USBPD initialisation ---------------------------------*/ 283 #ifndef NO_USB_SUPPORT 285 #ifndef NO_USB_SUPPORT 284 286 MX_USBPD_Init(); 285 #endif 287 #endif 288 286 289 /* Infinite loop */ 287 290 /* USER CODE BEGIN WHILE */ … … 289 292 { 290 293 /* USER CODE END WHILE */ 291 #ifndef NO_USB_SUPPORT 294 #ifndef NO_USB_SUPPORT 292 295 USBPD_DPM_Run(); 293 #endif 296 #endif 297 294 298 /* USER CODE BEGIN 3 */ 295 299 HAL_IWDG_Refresh(&hiwdg);
Note:
See TracChangeset
for help on using the changeset viewer.
