Changeset 28 for trunk/firmware_v2/Core
- Timestamp:
- Oct 26, 2025, 5:43:37 PM (3 days ago)
- Location:
- trunk/firmware_v2/Core
- Files:
-
- 2 added
- 2 edited
-
Inc/iwdg.h (added)
-
Inc/stm32c0xx_hal_conf.h (modified) (1 diff)
-
Src/iwdg.c (added)
-
Src/main.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/firmware_v2/Core/Inc/stm32c0xx_hal_conf.h
r17 r28 41 41 /* #define HAL_I2C_MODULE_ENABLED */ 42 42 /* #define HAL_I2S_MODULE_ENABLED */ 43 /* #define HAL_IWDG_MODULE_ENABLED */ 43 #define HAL_IWDG_MODULE_ENABLED 44 44 /* #define HAL_IRDA_MODULE_ENABLED */ 45 45 /* #define HAL_PCD_MODULE_ENABLED */ -
trunk/firmware_v2/Core/Src/main.c
r23 r28 21 21 #include "adc.h" 22 22 #include "dma.h" 23 #include "iwdg.h" 23 24 #include "tim.h" 24 25 #include "usart.h" … … 96 97 MX_USART1_UART_Init(); 97 98 MX_TIM16_Init(); 99 MX_IWDG_Init(); 98 100 /* USER CODE BEGIN 2 */ 99 101 … … 125 127 * in the RCC_OscInitTypeDef structure. 126 128 */ 127 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI ;129 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_LSI; 128 130 RCC_OscInitStruct.HSIState = RCC_HSI_ON; 129 131 RCC_OscInitStruct.HSIDiv = RCC_HSI_DIV4; 130 132 RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT; 133 RCC_OscInitStruct.LSIState = RCC_LSI_ON; 131 134 if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) 132 135 {
Note: See TracChangeset
for help on using the changeset viewer.
