Ignore:
Timestamp:
Oct 26, 2025, 5:43:37 PM (3 days ago)
Author:
f.jahn
Message:

24V Version implementiert

Location:
trunk/firmware_v2/Core/Src
Files:
1 added
1 edited

Legend:

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

    r23 r28  
    2121#include "adc.h"
    2222#include "dma.h"
     23#include "iwdg.h"
    2324#include "tim.h"
    2425#include "usart.h"
     
    9697  MX_USART1_UART_Init();
    9798  MX_TIM16_Init();
     99  MX_IWDG_Init();
    98100  /* USER CODE BEGIN 2 */
    99101
     
    125127  * in the RCC_OscInitTypeDef structure.
    126128  */
    127   RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
     129  RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_LSI;
    128130  RCC_OscInitStruct.HSIState = RCC_HSI_ON;
    129131  RCC_OscInitStruct.HSIDiv = RCC_HSI_DIV4;
    130132  RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
     133  RCC_OscInitStruct.LSIState = RCC_LSI_ON;
    131134  if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
    132135  {
Note: See TracChangeset for help on using the changeset viewer.