From 429bf9dc68c73222be4a7440fac40a91a0b96cd9 Mon Sep 17 00:00:00 2001 From: wangxujie Date: Tue, 1 Jul 2025 08:22:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E4=BB=BD-111?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 3 +- Core/Src/freertos.c | 28 +- Core/Src/main.c | 69 +-- Core/Src/tim.c | 4 +- MDK-ARM/valve_debugging.uvoptx | 48 +- MDK-ARM/valve_debugging.uvprojx | 1003 ++----------------------------- valve_debugging.ioc | 7 +- 7 files changed, 137 insertions(+), 1025 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 0e68e83..65b8adc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,6 +14,7 @@ "freertos.h": "c", "lan8742.h": "c", "lwip.h": "c", - "dhcp.h": "c" + "dhcp.h": "c", + "limits": "cpp" } } \ No newline at end of file diff --git a/Core/Src/freertos.c b/Core/Src/freertos.c index aedb2c9..259eab0 100644 --- a/Core/Src/freertos.c +++ b/Core/Src/freertos.c @@ -63,15 +63,15 @@ extern ETH_HandleTypeDef heth; extern struct tcp_pcb *server_pcb_hart[TCP_MAX]; /* USER CODE END FunctionPrototypes */ -void start_lwip_task(void const *argument); -void start_dac_task(void const *argument); -void start_ch438_task(void const *argument); +void start_lwip_task(void const * argument); +void start_dac_task(void const * argument); +void start_ch438_task(void const * argument); extern void MX_LWIP_Init(void); void MX_FREERTOS_Init(void); /* (MISRA C 2004 rule 8.1) */ /* GetIdleTaskMemory prototype (linked to static allocation support) */ -void vApplicationGetIdleTaskMemory(StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize); +void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize ); /* USER CODE BEGIN GET_IDLE_TASK_MEMORY */ static StaticTask_t xIdleTaskTCBBuffer; @@ -87,12 +87,11 @@ void vApplicationGetIdleTaskMemory(StaticTask_t **ppxIdleTaskTCBBuffer, StackTyp /* USER CODE END GET_IDLE_TASK_MEMORY */ /** - * @brief FreeRTOS initialization - * @param None - * @retval None - */ -void MX_FREERTOS_Init(void) -{ + * @brief FreeRTOS initialization + * @param None + * @retval None + */ +void MX_FREERTOS_Init(void) { /* USER CODE BEGIN Init */ /* USER CODE END Init */ @@ -129,6 +128,7 @@ void MX_FREERTOS_Init(void) /* USER CODE BEGIN RTOS_THREADS */ /* add threads, ... */ /* USER CODE END RTOS_THREADS */ + } /* USER CODE BEGIN Header_start_lwip_task */ @@ -138,7 +138,7 @@ void MX_FREERTOS_Init(void) * @retval None */ /* USER CODE END Header_start_lwip_task */ -void start_lwip_task(void const *argument) +void start_lwip_task(void const * argument) { /* init code for LWIP */ MX_LWIP_Init(); @@ -154,7 +154,7 @@ void start_lwip_task(void const *argument) { if (tcp_echo_flags[tcp_hart_num] == 1) { - if (((phyreg >> 2) & 0x1) != 0x1) // PHY_BSR寄存器的�?2位表示PHY是否连接 PHY_LINKED_STATUS + if (((phyreg >> 2) & 0x1) != 0x1) // PHY_BSR寄存器的??2位表示PHY是否连接 PHY_LINKED_STATUS { /* When the netif link is down this function must be called */ @@ -184,7 +184,7 @@ void start_lwip_task(void const *argument) * @retval None */ /* USER CODE END Header_start_dac_task */ -void start_dac_task(void const *argument) +void start_dac_task(void const * argument) { /* USER CODE BEGIN start_dac_task */ /* Infinite loop */ @@ -208,7 +208,7 @@ void start_dac_task(void const *argument) * @retval None */ /* USER CODE END Header_start_ch438_task */ -void start_ch438_task(void const *argument) +void start_ch438_task(void const * argument) { /* USER CODE BEGIN start_ch438_task */ /* Infinite loop */ diff --git a/Core/Src/main.c b/Core/Src/main.c index 8791c1c..8288971 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -65,9 +65,9 @@ void MX_FREERTOS_Init(void); /* USER CODE END 0 */ /** - * @brief The application entry point. - * @retval int - */ + * @brief The application entry point. + * @retval int + */ int main(void) { /* USER CODE BEGIN 1 */ @@ -99,6 +99,7 @@ int main(void) /* USER CODE BEGIN 2 */ hart_ht1200m_reset(); // 初始化HT1200M模块 HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_4); // PWM输出,用于驱动HT1200M模块 + HAL_TIM_Base_Start_IT(&htim3); // 启动TIM3定时器,用于处理CH438中断 /* USER CODE END 2 */ /* Call init function for freertos objects (in freertos.c) */ @@ -120,22 +121,22 @@ int main(void) } /** - * @brief System Clock Configuration - * @retval None - */ + * @brief System Clock Configuration + * @retval None + */ void SystemClock_Config(void) { RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; /** Configure the main internal regulator output voltage - */ + */ __HAL_RCC_PWR_CLK_ENABLE(); __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1); /** Initializes the RCC Oscillators according to the specified parameters - * in the RCC_OscInitTypeDef structure. - */ + * in the RCC_OscInitTypeDef structure. + */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; RCC_OscInitStruct.HSEState = RCC_HSE_ON; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; @@ -150,8 +151,9 @@ void SystemClock_Config(void) } /** Initializes the CPU, AHB and APB buses clocks - */ - RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2; + */ + RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK + |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV4; @@ -168,32 +170,31 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { if (CH438_1_INT_Pin == GPIO_Pin) { - ch438_1_int_flag = 1; // 设置CH438_1的中断标志,用于中断处理函数中判断是否为CH438_1的中断请�? + ch438_1_int_flag = 1; // 设置CH438_1的中断标志,用于中断处理函数中判断是否为CH438_1的中断请??? // ch438_interrupt_handler_ch438_chip_1(); } if (CH438_2_INT_Pin == GPIO_Pin) { - ch438_2_int_flag = 1; // 设置CH438_1的中断标志,用于中断处理函数中判断是否为CH438_2的中断请�? + ch438_2_int_flag = 1; // 设置CH438_1的中断标志,用于中断处理函数中判断是否为CH438_2的中断请??? // ch438_interrupt_handler_ch438_chip_2(); } } /* USER CODE END 4 */ /** - * @brief Period elapsed callback in non blocking mode - * @note This function is called when TIM4 interrupt took place, inside - * HAL_TIM_IRQHandler(). It makes a direct call to HAL_IncTick() to increment - * a global variable "uwTick" used as application time base. - * @param htim : TIM handle - * @retval None - */ + * @brief Period elapsed callback in non blocking mode + * @note This function is called when TIM4 interrupt took place, inside + * HAL_TIM_IRQHandler(). It makes a direct call to HAL_IncTick() to increment + * a global variable "uwTick" used as application time base. + * @param htim : TIM handle + * @retval None + */ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { /* USER CODE BEGIN Callback 0 */ /* USER CODE END Callback 0 */ - if (htim->Instance == TIM4) - { + if (htim->Instance == TIM4) { HAL_IncTick(); } /* USER CODE BEGIN Callback 1 */ @@ -202,30 +203,30 @@ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) if (ch438_1_int_flag == 2) { ch438_interrupt_handler_ch438_chip_1(); + ch438_1_int_flag = 0; } if (ch438_1_int_flag == 1) { ch438_1_int_flag++; - ch438_1_int_flag = 0; } if (ch438_2_int_flag == 2) { ch438_interrupt_handler_ch438_chip_2(); + ch438_2_int_flag = 0; } if (ch438_2_int_flag == 1) { ch438_2_int_flag++; - ch438_2_int_flag = 0; } } /* USER CODE END Callback 1 */ } /** - * @brief This function is executed in case of error occurrence. - * @retval None - */ + * @brief This function is executed in case of error occurrence. + * @retval None + */ void Error_Handler(void) { /* USER CODE BEGIN Error_Handler_Debug */ @@ -237,14 +238,14 @@ void Error_Handler(void) /* USER CODE END Error_Handler_Debug */ } -#ifdef USE_FULL_ASSERT +#ifdef USE_FULL_ASSERT /** - * @brief Reports the name of the source file and the source line number - * where the assert_param error has occurred. - * @param file: pointer to the source file name - * @param line: assert_param error line source number - * @retval None - */ + * @brief Reports the name of the source file and the source line number + * where the assert_param error has occurred. + * @param file: pointer to the source file name + * @param line: assert_param error line source number + * @retval None + */ void assert_failed(uint8_t *file, uint32_t line) { /* USER CODE BEGIN 6 */ diff --git a/Core/Src/tim.c b/Core/Src/tim.c index cfa9f61..846987f 100644 --- a/Core/Src/tim.c +++ b/Core/Src/tim.c @@ -88,9 +88,9 @@ void MX_TIM3_Init(void) htim3.Instance = TIM3; htim3.Init.Prescaler = 54; htim3.Init.CounterMode = TIM_COUNTERMODE_UP; - htim3.Init.Period = 1000; + htim3.Init.Period = 499; htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; - htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; + htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE; if (HAL_TIM_Base_Init(&htim3) != HAL_OK) { Error_Handler(); diff --git a/MDK-ARM/valve_debugging.uvoptx b/MDK-ARM/valve_debugging.uvoptx index 64a9a32..633d5db 100644 --- a/MDK-ARM/valve_debugging.uvoptx +++ b/MDK-ARM/valve_debugging.uvoptx @@ -1,4 +1,4 @@ - + 1.0 @@ -45,7 +45,7 @@ 79 66 8 - + 1 @@ -104,16 +104,16 @@ 0 0 6 - - - - - - - - - - + + + + + + + + + + STLink\ST-LINKIII-KEIL_SWO.dll @@ -130,7 +130,7 @@ 0 ARMDBGFLAGS - + 0 @@ -148,7 +148,7 @@ -UB -O2254 -SF10000 -C0 -A0 -I0 -HNlocalhost -HP7184 -P1 -N00("ARM CoreSight SW-DP (ARM Core") -D00(2BA01477) -L00(0) -TO131090 -TC10000000 -TT10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_1024.FLM -FS08000000 -FL0100000 -FP0($$Device:STM32F407ZGTx$CMSIS\Flash\STM32F4xx_1024.FLM) -WA0 -WE0 -WVCE4 -WS2710 -WM0 -WP2 - + 0 @@ -308,19 +308,19 @@ 0 0 - - + + 0 0 0 - - - - - - - - + + + + + + + + 1 0 diff --git a/MDK-ARM/valve_debugging.uvprojx b/MDK-ARM/valve_debugging.uvprojx index e77e8ce..ded903d 100644 --- a/MDK-ARM/valve_debugging.uvprojx +++ b/MDK-ARM/valve_debugging.uvprojx @@ -1,10 +1,7 @@ - - - + + 2.1 -
### uVision Project, (C) Keil Software
- valve_debugging @@ -19,28 +16,28 @@ Keil.STM32F4xx_DFP.2.12.0 http://www.keil.com/pack IRAM(0x20000000-0x2001BFFF) IRAM2(0x2001C000-0x2001FFFF) IROM(0x8000000-0x80FFFFF) CLOCK(25000000) FPU2 CPUTYPE("Cortex-M4") TZ - - - + + + 0 - - - - - - - - - - + + + + + + + + + + $$Device:STM32F407ZGTx$CMSIS\SVD\STM32F407.svd 0 0 - - - - - + + + + + 0 0 @@ -55,15 +52,15 @@ 1 1 1 - + 1 0 0 0 0 - - + + 0 0 0 @@ -72,8 +69,8 @@ 0 0 - - + + 0 0 0 @@ -82,15 +79,15 @@ 0 0 - - + + 0 0 0 0 1 - + 0 @@ -104,8 +101,8 @@ 0 0 3 - - + + 0 @@ -138,11 +135,11 @@ 1 BIN\UL2V8M.DLL - - - - - + + + + + 0 @@ -175,7 +172,7 @@ 0 0 "Cortex-M4" - + 0 0 0 @@ -309,7 +306,7 @@ 0x4000 - + 1 @@ -336,9 +333,9 @@ 0 0 - + USE_HAL_DRIVER,STM32F407xx - + ../Core/Inc;../Drivers/STM32F4xx_HAL_Driver/Inc;../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy;../Drivers/CMSIS/Device/ST/STM32F4xx/Include;../Drivers/CMSIS/Include;../LWIP/App;../LWIP/Target;../Middlewares/Third_Party/LwIP/src/include;../Middlewares/Third_Party/LwIP/system;../Middlewares/Third_Party/FreeRTOS/Source/include;../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS;../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F;../Drivers/BSP/Components/lan8742;../Middlewares/Third_Party/LwIP/src/include/netif/ppp;../Middlewares/Third_Party/LwIP/src/include/lwip;../Middlewares/Third_Party/LwIP/src/include/lwip/apps;../Middlewares/Third_Party/LwIP/src/include/lwip/priv;../Middlewares/Third_Party/LwIP/src/include/lwip/prot;../Middlewares/Third_Party/LwIP/src/include/netif;../Middlewares/Third_Party/LwIP/src/include/compat/posix;../Middlewares/Third_Party/LwIP/src/include/compat/posix/arpa;../Middlewares/Third_Party/LwIP/src/include/compat/posix/net;../Middlewares/Third_Party/LwIP/src/include/compat/posix/sys;../Middlewares/Third_Party/LwIP/src/include/compat/stdc;../Middlewares/Third_Party/LwIP/system/arch;../User/driver;../User/system;../User/application/inc @@ -354,9 +351,9 @@ 0 1 - - - + + + ../Core/Inc @@ -367,15 +364,15 @@ 0 1 0 - - - - - - - - - + + + + + + + + + @@ -420,8 +417,6 @@ 2 2 11 - - 1 @@ -449,12 +444,6 @@ 2 2 2 - - - - - - @@ -476,8 +465,6 @@ 2 2 11 - - 1 @@ -505,12 +492,6 @@ 2 2 2 - - - - - - @@ -532,8 +513,6 @@ 2 2 11 - - 1 @@ -561,12 +540,6 @@ 2 2 2 - - - - - - @@ -588,8 +561,6 @@ 2 2 11 - - 1 @@ -617,12 +588,6 @@ 2 2 2 - - - - - - @@ -729,8 +694,6 @@ 2 2 11 - - 1 @@ -758,12 +721,6 @@ 2 2 2 - - - - - - @@ -785,8 +742,6 @@ 2 2 11 - - 1 @@ -814,12 +769,6 @@ 2 2 2 - - - - - - @@ -841,8 +790,6 @@ 2 2 11 - - 1 @@ -870,12 +817,6 @@ 2 2 2 - - - - - - @@ -897,8 +838,6 @@ 2 2 11 - - 1 @@ -926,12 +865,6 @@ 2 2 2 - - - - - - @@ -973,8 +906,6 @@ 2 2 11 - - 1 @@ -1002,12 +933,6 @@ 2 2 2 - - - - - - 2 @@ -1020,12 +945,6 @@ 2 2 1 - - - - - - @@ -1047,8 +966,6 @@ 2 2 11 - - 1 @@ -1076,12 +993,6 @@ 2 2 2 - - - - - - @@ -1103,8 +1014,6 @@ 2 2 11 - - 1 @@ -1132,12 +1041,6 @@ 2 2 2 - - - - - - 2 @@ -1150,12 +1053,6 @@ 2 2 1 - - - - - - @@ -1177,8 +1074,6 @@ 2 2 11 - - 1 @@ -1206,12 +1101,6 @@ 2 2 2 - - - - - - @@ -1233,8 +1122,6 @@ 2 2 11 - - 1 @@ -1262,12 +1149,6 @@ 2 2 2 - - - - - - 2 @@ -1280,12 +1161,6 @@ 2 2 1 - - - - - - @@ -1307,8 +1182,6 @@ 2 2 11 - - 1 @@ -1336,12 +1209,6 @@ 2 2 2 - - - - - - @@ -1363,8 +1230,6 @@ 2 2 11 - - 1 @@ -1392,12 +1257,6 @@ 2 2 2 - - - - - - 2 @@ -1410,12 +1269,6 @@ 2 2 1 - - - - - - @@ -1437,8 +1290,6 @@ 2 2 11 - - 1 @@ -1466,12 +1317,6 @@ 2 2 2 - - - - - - @@ -1493,8 +1338,6 @@ 2 2 11 - - 1 @@ -1522,12 +1365,6 @@ 2 2 2 - - - - - - @@ -1549,8 +1386,6 @@ 2 2 11 - - 1 @@ -1578,12 +1413,6 @@ 2 2 2 - - - - - - @@ -1605,8 +1434,6 @@ 2 2 11 - - 1 @@ -1634,12 +1461,6 @@ 2 2 2 - - - - - - @@ -1661,8 +1482,6 @@ 2 2 11 - - 1 @@ -1690,12 +1509,6 @@ 2 2 2 - - - - - - @@ -1717,8 +1530,6 @@ 2 2 11 - - 1 @@ -1746,12 +1557,6 @@ 2 2 2 - - - - - - @@ -1773,8 +1578,6 @@ 2 2 11 - - 1 @@ -1802,12 +1605,6 @@ 2 2 2 - - - - - - @@ -1829,8 +1626,6 @@ 2 2 11 - - 1 @@ -1858,12 +1653,6 @@ 2 2 2 - - - - - - @@ -1885,8 +1674,6 @@ 2 2 11 - - 1 @@ -1914,12 +1701,6 @@ 2 2 2 - - - - - - @@ -1941,8 +1722,6 @@ 2 2 11 - - 1 @@ -1970,12 +1749,6 @@ 2 2 2 - - - - - - @@ -1997,8 +1770,6 @@ 2 2 11 - - 1 @@ -2026,12 +1797,6 @@ 2 2 2 - - - - - - 2 @@ -2044,12 +1809,6 @@ 2 2 1 - - - - - - @@ -2071,8 +1830,6 @@ 2 2 11 - - 1 @@ -2100,12 +1857,6 @@ 2 2 2 - - - - - - @@ -2127,8 +1878,6 @@ 2 2 11 - - 1 @@ -2156,12 +1905,6 @@ 2 2 2 - - - - - - @@ -2183,8 +1926,6 @@ 2 2 11 - - 1 @@ -2212,12 +1953,6 @@ 2 2 2 - - - - - - @@ -2239,8 +1974,6 @@ 2 2 11 - - 1 @@ -2268,12 +2001,6 @@ 2 2 2 - - - - - - @@ -2295,8 +2022,6 @@ 2 2 11 - - 1 @@ -2324,12 +2049,6 @@ 2 2 2 - - - - - - @@ -2351,8 +2070,6 @@ 2 2 11 - - 1 @@ -2380,12 +2097,6 @@ 2 2 2 - - - - - - @@ -2407,8 +2118,6 @@ 2 2 11 - - 1 @@ -2436,12 +2145,6 @@ 2 2 2 - - - - - - @@ -2463,8 +2166,6 @@ 2 2 11 - - 1 @@ -2492,12 +2193,6 @@ 2 2 2 - - - - - - @@ -2519,8 +2214,6 @@ 2 2 11 - - 1 @@ -2548,12 +2241,6 @@ 2 2 2 - - - - - - @@ -2575,8 +2262,6 @@ 2 2 11 - - 1 @@ -2604,12 +2289,6 @@ 2 2 2 - - - - - - @@ -2631,8 +2310,6 @@ 2 2 11 - - 1 @@ -2660,12 +2337,6 @@ 2 2 2 - - - - - - @@ -2687,8 +2358,6 @@ 2 2 11 - - 1 @@ -2716,12 +2385,6 @@ 2 2 2 - - - - - - @@ -2743,8 +2406,6 @@ 2 2 11 - - 1 @@ -2772,12 +2433,6 @@ 2 2 2 - - - - - - @@ -2799,8 +2454,6 @@ 2 2 11 - - 1 @@ -2828,12 +2481,6 @@ 2 2 2 - - - - - - @@ -2855,8 +2502,6 @@ 2 2 11 - - 1 @@ -2884,12 +2529,6 @@ 2 2 2 - - - - - - @@ -2911,8 +2550,6 @@ 2 2 11 - - 1 @@ -2940,12 +2577,6 @@ 2 2 2 - - - - - - @@ -2967,8 +2598,6 @@ 2 2 11 - - 1 @@ -2996,12 +2625,6 @@ 2 2 2 - - - - - - @@ -3023,8 +2646,6 @@ 2 2 11 - - 1 @@ -3052,12 +2673,6 @@ 2 2 2 - - - - - - @@ -3079,8 +2694,6 @@ 2 2 11 - - 1 @@ -3108,12 +2721,6 @@ 2 2 2 - - - - - - @@ -3135,8 +2742,6 @@ 2 2 11 - - 1 @@ -3164,12 +2769,6 @@ 2 2 2 - - - - - - @@ -3191,8 +2790,6 @@ 2 2 11 - - 1 @@ -3220,12 +2817,6 @@ 2 2 2 - - - - - - @@ -3247,8 +2838,6 @@ 2 2 11 - - 1 @@ -3276,12 +2865,6 @@ 2 2 2 - - - - - - @@ -3303,8 +2886,6 @@ 2 2 11 - - 1 @@ -3332,12 +2913,6 @@ 2 2 2 - - - - - - @@ -3359,8 +2934,6 @@ 2 2 11 - - 1 @@ -3388,12 +2961,6 @@ 2 2 2 - - - - - - @@ -3415,8 +2982,6 @@ 2 2 11 - - 1 @@ -3444,12 +3009,6 @@ 2 2 2 - - - - - - @@ -3471,8 +3030,6 @@ 2 2 11 - - 1 @@ -3500,12 +3057,6 @@ 2 2 2 - - - - - - @@ -3527,8 +3078,6 @@ 2 2 11 - - 1 @@ -3556,12 +3105,6 @@ 2 2 2 - - - - - - @@ -3583,8 +3126,6 @@ 2 2 11 - - 1 @@ -3612,12 +3153,6 @@ 2 2 2 - - - - - - @@ -3639,8 +3174,6 @@ 2 2 11 - - 1 @@ -3668,12 +3201,6 @@ 2 2 2 - - - - - - @@ -3695,8 +3222,6 @@ 2 2 11 - - 1 @@ -3724,12 +3249,6 @@ 2 2 2 - - - - - - @@ -3751,8 +3270,6 @@ 2 2 11 - - 1 @@ -3780,12 +3297,6 @@ 2 2 2 - - - - - - @@ -3807,8 +3318,6 @@ 2 2 11 - - 1 @@ -3836,12 +3345,6 @@ 2 2 2 - - - - - - @@ -3863,8 +3366,6 @@ 2 2 11 - - 1 @@ -3892,12 +3393,6 @@ 2 2 2 - - - - - - @@ -3919,8 +3414,6 @@ 2 2 11 - - 1 @@ -3948,12 +3441,6 @@ 2 2 2 - - - - - - @@ -3975,8 +3462,6 @@ 2 2 11 - - 1 @@ -4004,12 +3489,6 @@ 2 2 2 - - - - - - @@ -4031,8 +3510,6 @@ 2 2 11 - - 1 @@ -4060,12 +3537,6 @@ 2 2 2 - - - - - - @@ -4087,8 +3558,6 @@ 2 2 11 - - 1 @@ -4116,12 +3585,6 @@ 2 2 2 - - - - - - @@ -4143,8 +3606,6 @@ 2 2 11 - - 1 @@ -4172,12 +3633,6 @@ 2 2 2 - - - - - - @@ -4199,8 +3654,6 @@ 2 2 11 - - 1 @@ -4228,12 +3681,6 @@ 2 2 2 - - - - - - @@ -4255,8 +3702,6 @@ 2 2 11 - - 1 @@ -4284,12 +3729,6 @@ 2 2 2 - - - - - - @@ -4311,8 +3750,6 @@ 2 2 11 - - 1 @@ -4340,12 +3777,6 @@ 2 2 2 - - - - - - @@ -4367,8 +3798,6 @@ 2 2 11 - - 1 @@ -4396,12 +3825,6 @@ 2 2 2 - - - - - - @@ -4423,8 +3846,6 @@ 2 2 11 - - 1 @@ -4452,12 +3873,6 @@ 2 2 2 - - - - - - @@ -4479,8 +3894,6 @@ 2 2 11 - - 1 @@ -4508,12 +3921,6 @@ 2 2 2 - - - - - - @@ -4535,8 +3942,6 @@ 2 2 11 - - 1 @@ -4564,12 +3969,6 @@ 2 2 2 - - - - - - @@ -4591,8 +3990,6 @@ 2 2 11 - - 1 @@ -4620,12 +4017,6 @@ 2 2 2 - - - - - - @@ -4647,8 +4038,6 @@ 2 2 11 - - 1 @@ -4676,12 +4065,6 @@ 2 2 2 - - - - - - @@ -4703,8 +4086,6 @@ 2 2 11 - - 1 @@ -4732,12 +4113,6 @@ 2 2 2 - - - - - - @@ -4759,8 +4134,6 @@ 2 2 11 - - 1 @@ -4788,12 +4161,6 @@ 2 2 2 - - - - - - @@ -4815,8 +4182,6 @@ 2 2 11 - - 1 @@ -4844,12 +4209,6 @@ 2 2 2 - - - - - - @@ -4871,8 +4230,6 @@ 2 2 11 - - 1 @@ -4900,12 +4257,6 @@ 2 2 2 - - - - - - @@ -4927,8 +4278,6 @@ 2 2 11 - - 1 @@ -4956,12 +4305,6 @@ 2 2 2 - - - - - - @@ -4983,8 +4326,6 @@ 2 2 11 - - 1 @@ -5012,12 +4353,6 @@ 2 2 2 - - - - - - @@ -5039,8 +4374,6 @@ 2 2 11 - - 1 @@ -5068,12 +4401,6 @@ 2 2 2 - - - - - - @@ -5095,8 +4422,6 @@ 2 2 11 - - 1 @@ -5124,12 +4449,6 @@ 2 2 2 - - - - - - @@ -5151,8 +4470,6 @@ 2 2 11 - - 1 @@ -5180,12 +4497,6 @@ 2 2 2 - - - - - - @@ -5207,8 +4518,6 @@ 2 2 11 - - 1 @@ -5236,12 +4545,6 @@ 2 2 2 - - - - - - @@ -5263,8 +4566,6 @@ 2 2 11 - - 1 @@ -5292,12 +4593,6 @@ 2 2 2 - - - - - - @@ -5319,8 +4614,6 @@ 2 2 11 - - 1 @@ -5348,12 +4641,6 @@ 2 2 2 - - - - - - @@ -5375,8 +4662,6 @@ 2 2 11 - - 1 @@ -5404,12 +4689,6 @@ 2 2 2 - - - - - - @@ -5431,8 +4710,6 @@ 2 2 11 - - 1 @@ -5460,12 +4737,6 @@ 2 2 2 - - - - - - @@ -5487,8 +4758,6 @@ 2 2 11 - - 1 @@ -5516,12 +4785,6 @@ 2 2 2 - - - - - - @@ -5543,8 +4806,6 @@ 2 2 11 - - 1 @@ -5572,12 +4833,6 @@ 2 2 2 - - - - - - @@ -5599,8 +4854,6 @@ 2 2 11 - - 1 @@ -5628,12 +4881,6 @@ 2 2 2 - - - - - - @@ -5655,8 +4902,6 @@ 2 2 11 - - 1 @@ -5684,12 +4929,6 @@ 2 2 2 - - - - - - @@ -5711,8 +4950,6 @@ 2 2 11 - - 1 @@ -5740,12 +4977,6 @@ 2 2 2 - - - - - - @@ -5767,8 +4998,6 @@ 2 2 11 - - 1 @@ -5796,12 +5025,6 @@ 2 2 2 - - - - - - @@ -5823,8 +5046,6 @@ 2 2 11 - - 1 @@ -5852,12 +5073,6 @@ 2 2 2 - - - - - - @@ -5879,8 +5094,6 @@ 2 2 11 - - 1 @@ -5908,12 +5121,6 @@ 2 2 2 - - - - - - @@ -5935,8 +5142,6 @@ 2 2 11 - - 1 @@ -5964,12 +5169,6 @@ 2 2 2 - - - - - - @@ -5991,8 +5190,6 @@ 2 2 11 - - 1 @@ -6020,12 +5217,6 @@ 2 2 2 - - - - - - @@ -6047,8 +5238,6 @@ 2 2 11 - - 1 @@ -6076,12 +5265,6 @@ 2 2 2 - - - - - - @@ -6103,8 +5286,6 @@ 2 2 11 - - 1 @@ -6132,12 +5313,6 @@ 2 2 2 - - - - - - @@ -6159,8 +5334,6 @@ 2 2 11 - - 1 @@ -6188,12 +5361,6 @@ 2 2 2 - - - - - - @@ -6215,8 +5382,6 @@ 2 2 11 - - 1 @@ -6244,12 +5409,6 @@ 2 2 2 - - - - - - @@ -6271,8 +5430,6 @@ 2 2 11 - - 1 @@ -6300,12 +5457,6 @@ 2 2 2 - - - - - - @@ -6327,8 +5478,6 @@ 2 2 11 - - 1 @@ -6356,12 +5505,6 @@ 2 2 2 - - - - - - @@ -6383,8 +5526,6 @@ 2 2 11 - - 1 @@ -6412,12 +5553,6 @@ 2 2 2 - - - - - - @@ -6439,8 +5574,6 @@ 2 2 11 - - 1 @@ -6468,12 +5601,6 @@ 2 2 2 - - - - - - @@ -6495,8 +5622,6 @@ 2 2 11 - - 1 @@ -6524,12 +5649,6 @@ 2 2 2 - - - - - - @@ -6551,8 +5670,6 @@ 2 2 11 - - 1 @@ -6580,12 +5697,6 @@ 2 2 2 - - - - - - @@ -6648,20 +5759,18 @@ - - + - + - + - + - @@ -6670,5 +5779,5 @@ -
+ diff --git a/valve_debugging.ioc b/valve_debugging.ioc index 5b24640..74fccf7 100644 --- a/valve_debugging.ioc +++ b/valve_debugging.ioc @@ -532,7 +532,7 @@ ProjectManager.ToolChainLocation= ProjectManager.UAScriptAfterPath= ProjectManager.UAScriptBeforePath= ProjectManager.UnderRoot=false -ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_LWIP_Init-LWIP-false-HAL-false,4-MX_TIM2_Init-TIM2-false-HAL-true,5-MX_SPI1_Init-SPI1-false-HAL-true,6-MX_FSMC_Init-FSMC-false-HAL-true +ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_LWIP_Init-LWIP-false-HAL-false,4-MX_TIM2_Init-TIM2-false-HAL-true,5-MX_SPI1_Init-SPI1-false-HAL-true,6-MX_FSMC_Init-FSMC-false-HAL-true,7-MX_TIM3_Init-TIM3-false-HAL-true RCC.48MHZClocksFreq_Value=55296000 RCC.AHBFreq_Value=110592000 RCC.APB1CLKDivider=RCC_HCLK_DIV4 @@ -632,8 +632,9 @@ TIM2.Channel-PWM\ Generation4\ CH4=TIM_CHANNEL_4 TIM2.IPParameters=Channel-PWM Generation4 CH4,Period,Pulse-PWM Generation4 CH4 TIM2.Period=119 TIM2.Pulse-PWM\ Generation4\ CH4=60 -TIM3.IPParameters=Prescaler,Period -TIM3.Period=1000 +TIM3.AutoReloadPreload=TIM_AUTORELOAD_PRELOAD_ENABLE +TIM3.IPParameters=Prescaler,Period,AutoReloadPreload +TIM3.Period=499 TIM3.Prescaler=54 VP_FREERTOS_VS_CMSIS_V1.Mode=CMSIS_V1 VP_FREERTOS_VS_CMSIS_V1.Signal=FREERTOS_VS_CMSIS_V1