From f2514f9bc473a335c4e6eb481e054a7f0186174d Mon Sep 17 00:00:00 2001 From: tianjialong Date: Tue, 28 Feb 2023 18:10:50 +0800 Subject: [PATCH] =?UTF-8?q?cubemx=E9=85=8D=E7=BD=AEdebug=E7=81=AFPF10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LWIP.ioc | 49 ++- MDK-ARM/LWIP.uvoptx | 46 +-- MDK-ARM/LWIP.uvprojx | 1088 +++----------------------------------------------- Src/gpio.c | 11 + 4 files changed, 116 insertions(+), 1078 deletions(-) diff --git a/LWIP.ioc b/LWIP.ioc index 73bb8ae..cf4d0ba 100644 --- a/LWIP.ioc +++ b/LWIP.ioc @@ -45,27 +45,28 @@ Mcu.IP7=USART1 Mcu.IPNb=8 Mcu.Name=STM32F407Z(E-G)Tx Mcu.Package=LQFP144 -Mcu.Pin0=PH0-OSC_IN -Mcu.Pin1=PH1-OSC_OUT -Mcu.Pin10=PA13 -Mcu.Pin11=PA14 -Mcu.Pin12=PD3 -Mcu.Pin13=PG11 -Mcu.Pin14=PG13 -Mcu.Pin15=PG14 -Mcu.Pin16=VP_FREERTOS_VS_CMSIS_V1 -Mcu.Pin17=VP_LWIP_VS_Enabled -Mcu.Pin18=VP_SYS_VS_tim1 -Mcu.Pin19=VP_TIM6_VS_ClockSourceINT -Mcu.Pin2=PC1 -Mcu.Pin3=PA1 -Mcu.Pin4=PA2 -Mcu.Pin5=PA7 -Mcu.Pin6=PC4 -Mcu.Pin7=PC5 -Mcu.Pin8=PA9 -Mcu.Pin9=PA10 -Mcu.PinsNb=20 +Mcu.Pin0=PF10 +Mcu.Pin1=PH0-OSC_IN +Mcu.Pin10=PA10 +Mcu.Pin11=PA13 +Mcu.Pin12=PA14 +Mcu.Pin13=PD3 +Mcu.Pin14=PG11 +Mcu.Pin15=PG13 +Mcu.Pin16=PG14 +Mcu.Pin17=VP_FREERTOS_VS_CMSIS_V1 +Mcu.Pin18=VP_LWIP_VS_Enabled +Mcu.Pin19=VP_SYS_VS_tim1 +Mcu.Pin2=PH1-OSC_OUT +Mcu.Pin20=VP_TIM6_VS_ClockSourceINT +Mcu.Pin3=PC1 +Mcu.Pin4=PA1 +Mcu.Pin5=PA2 +Mcu.Pin6=PA7 +Mcu.Pin7=PC4 +Mcu.Pin8=PC5 +Mcu.Pin9=PA9 +Mcu.PinsNb=21 Mcu.ThirdPartyNb=0 Mcu.UserConstants= Mcu.UserName=STM32F407ZETx @@ -114,6 +115,10 @@ PD3.GPIOParameters=GPIO_Label PD3.GPIO_Label=ETH_RST PD3.Locked=true PD3.Signal=GPIO_Output +PF10.GPIOParameters=GPIO_PuPd +PF10.GPIO_PuPd=GPIO_PULLUP +PF10.Locked=true +PF10.Signal=GPIO_Output PG11.Locked=true PG11.Mode=RMII PG11.Signal=ETH_TX_EN @@ -155,7 +160,7 @@ ProjectManager.StackSize=0x400 ProjectManager.TargetToolchain=MDK-ARM V5 ProjectManager.ToolChainLocation= ProjectManager.UnderRoot=false -ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false,3-MX_LWIP_Init-LWIP-false-HAL-false,4-MX_TIM6_Init-TIM6-false-HAL-true +ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false,3-MX_LWIP_Init-LWIP-false-HAL-false,4-MX_TIM6_Init-TIM6-false-HAL-true,5-MX_USART1_UART_Init-USART1-false-HAL-true RCC.48MHZClocksFreq_Value=84000000 RCC.AHBFreq_Value=168000000 RCC.APB1CLKDivider=RCC_HCLK_DIV4 diff --git a/MDK-ARM/LWIP.uvoptx b/MDK-ARM/LWIP.uvoptx index 4e1fa95..cc73efc 100644 --- a/MDK-ARM/LWIP.uvoptx +++ b/MDK-ARM/LWIP.uvoptx @@ -1,4 +1,4 @@ - + 1.0 @@ -45,7 +45,7 @@ 79 66 8 - + 1 @@ -104,16 +104,16 @@ 0 0 3 - - - - - - - - - - + + + + + + + + + + BIN\CMSIS_AGDI.dll @@ -133,7 +133,7 @@ -U-O142 -O2254 -S0 -C0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_512.FLM -FS08000000 -FL080000 -FP0($$Device:STM32F407ZETx$CMSIS\Flash\STM32F4xx_512.FLM) - + 0 @@ -163,19 +163,19 @@ 0 0 - - + + 0 0 0 - - - - - - - - + + + + + + + + 1 0 diff --git a/MDK-ARM/LWIP.uvprojx b/MDK-ARM/LWIP.uvprojx index 7654408..8a4b967 100644 --- a/MDK-ARM/LWIP.uvprojx +++ b/MDK-ARM/LWIP.uvprojx @@ -1,10 +1,7 @@ - - - + + 2.1 -
### uVision Project, (C) Keil Software
- LWIP @@ -19,28 +16,28 @@ Keil.STM32F4xx_DFP.2.16.0 http://www.keil.com/pack/ IRAM(0x20000000-0x2001FFFF) IRAM2(0x10000000-0x1000FFFF) IROM(0x8000000-0x807FFFF) CLOCK(25000000) FPU2 CPUTYPE("Cortex-M4") - - - - - - - - - - - - - - + + + + + + + + + + + + + + $$Device:STM32F407ZETx$CMSIS\SVD\STM32F40x.svd 0 0 - - - - - + + + + + 0 0 @@ -55,15 +52,15 @@ 1 1 0 - + 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 0 - + 0 @@ -104,8 +101,8 @@ 0 0 3 - - + + 0 @@ -138,11 +135,11 @@ 1 STLink\ST-LINKIII-KEIL_SWO.dll - - - - - + + + + + 0 @@ -175,7 +172,7 @@ 0 0 "Cortex-M4" - + 0 0 0 @@ -309,7 +306,7 @@ 0x10000 - + 1 @@ -336,9 +333,9 @@ 0 0 - + USE_HAL_DRIVER,STM32F407xx - + ../Inc;../Middlewares/Third_Party/LwIP/src/include;../Middlewares/Third_Party/LwIP/system;../Drivers/STM32F4xx_HAL_Driver/Inc;../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy;../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F;../Middlewares/Third_Party/LwIP/src/include/netif/ppp;../Drivers/CMSIS/Device/ST/STM32F4xx/Include;../Middlewares/Third_Party/FreeRTOS/Source/include;../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS;../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/system/arch;../Drivers/CMSIS/Include;../Drivers/BSP/Components/lan8742;../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 @@ -354,9 +351,9 @@ 0 1 - - - + + + ..\\Inc;..\Inc @@ -369,13 +366,13 @@ 0 0x08000000 0x20000000 - - - - - - - + + + + + + + @@ -435,8 +432,6 @@ 2 2 11 - - 1 @@ -464,12 +459,6 @@ 2 2 2 - - - - - - @@ -491,8 +480,6 @@ 2 2 11 - - 1 @@ -520,12 +507,6 @@ 2 2 2 - - - - - - @@ -557,8 +538,6 @@ 2 2 11 - - 1 @@ -586,12 +565,6 @@ 2 2 2 - - - - - - @@ -623,8 +596,6 @@ 2 2 11 - - 0 @@ -652,12 +623,6 @@ 2 2 2 - - - - - - 2 @@ -670,12 +635,6 @@ 2 2 0 - - - - - - @@ -697,8 +656,6 @@ 2 2 11 - - 1 @@ -726,12 +683,6 @@ 2 2 2 - - - - - - @@ -753,8 +704,6 @@ 2 2 11 - - 0 @@ -782,12 +731,6 @@ 2 2 2 - - - - - - 2 @@ -800,12 +743,6 @@ 2 2 0 - - - - - - @@ -827,8 +764,6 @@ 2 2 11 - - 1 @@ -856,12 +791,6 @@ 2 2 2 - - - - - - @@ -883,8 +812,6 @@ 2 2 11 - - 1 @@ -912,12 +839,6 @@ 2 2 2 - - - - - - @@ -939,8 +860,6 @@ 2 2 11 - - 1 @@ -968,12 +887,6 @@ 2 2 2 - - - - - - @@ -995,8 +908,6 @@ 2 2 11 - - 1 @@ -1024,12 +935,6 @@ 2 2 2 - - - - - - @@ -1051,8 +956,6 @@ 2 2 11 - - 1 @@ -1080,12 +983,6 @@ 2 2 2 - - - - - - @@ -1107,8 +1004,6 @@ 2 2 11 - - 1 @@ -1136,12 +1031,6 @@ 2 2 2 - - - - - - @@ -1163,8 +1052,6 @@ 2 2 11 - - 1 @@ -1192,12 +1079,6 @@ 2 2 2 - - - - - - @@ -1219,8 +1100,6 @@ 2 2 11 - - 1 @@ -1248,12 +1127,6 @@ 2 2 2 - - - - - - @@ -1275,8 +1148,6 @@ 2 2 11 - - 1 @@ -1304,12 +1175,6 @@ 2 2 2 - - - - - - @@ -1331,8 +1196,6 @@ 2 2 11 - - 1 @@ -1360,12 +1223,6 @@ 2 2 2 - - - - - - @@ -1387,8 +1244,6 @@ 2 2 11 - - 1 @@ -1416,12 +1271,6 @@ 2 2 2 - - - - - - @@ -1443,8 +1292,6 @@ 2 2 11 - - 1 @@ -1472,12 +1319,6 @@ 2 2 2 - - - - - - @@ -1499,8 +1340,6 @@ 2 2 11 - - 1 @@ -1528,12 +1367,6 @@ 2 2 2 - - - - - - @@ -1555,8 +1388,6 @@ 2 2 11 - - 1 @@ -1584,12 +1415,6 @@ 2 2 2 - - - - - - @@ -1611,8 +1436,6 @@ 2 2 11 - - 1 @@ -1640,12 +1463,6 @@ 2 2 2 - - - - - - @@ -1667,8 +1484,6 @@ 2 2 11 - - 1 @@ -1696,12 +1511,6 @@ 2 2 2 - - - - - - @@ -1723,8 +1532,6 @@ 2 2 11 - - 1 @@ -1752,12 +1559,6 @@ 2 2 2 - - - - - - @@ -1779,8 +1580,6 @@ 2 2 11 - - 0 @@ -1808,12 +1607,6 @@ 2 2 2 - - - - - - 2 @@ -1826,12 +1619,6 @@ 2 2 0 - - - - - - @@ -1853,8 +1640,6 @@ 2 2 11 - - 1 @@ -1882,12 +1667,6 @@ 2 2 2 - - - - - - @@ -1909,8 +1688,6 @@ 2 2 11 - - 0 @@ -1938,12 +1715,6 @@ 2 2 2 - - - - - - 2 @@ -1956,12 +1727,6 @@ 2 2 0 - - - - - - @@ -1983,8 +1748,6 @@ 2 2 11 - - 1 @@ -2012,12 +1775,6 @@ 2 2 2 - - - - - - @@ -2039,8 +1796,6 @@ 2 2 11 - - 1 @@ -2068,12 +1823,6 @@ 2 2 2 - - - - - - @@ -2095,8 +1844,6 @@ 2 2 11 - - 1 @@ -2124,12 +1871,6 @@ 2 2 2 - - - - - - @@ -2151,8 +1892,6 @@ 2 2 11 - - 1 @@ -2180,12 +1919,6 @@ 2 2 2 - - - - - - @@ -2207,8 +1940,6 @@ 2 2 11 - - 1 @@ -2236,12 +1967,6 @@ 2 2 2 - - - - - - @@ -2263,8 +1988,6 @@ 2 2 11 - - 1 @@ -2292,12 +2015,6 @@ 2 2 2 - - - - - - @@ -2319,8 +2036,6 @@ 2 2 11 - - 1 @@ -2348,12 +2063,6 @@ 2 2 2 - - - - - - @@ -2375,8 +2084,6 @@ 2 2 11 - - 1 @@ -2404,12 +2111,6 @@ 2 2 2 - - - - - - @@ -2431,8 +2132,6 @@ 2 2 11 - - 1 @@ -2460,12 +2159,6 @@ 2 2 2 - - - - - - @@ -2487,8 +2180,6 @@ 2 2 11 - - 1 @@ -2516,12 +2207,6 @@ 2 2 2 - - - - - - @@ -2543,8 +2228,6 @@ 2 2 11 - - 0 @@ -2572,12 +2255,6 @@ 2 2 2 - - - - - - 2 @@ -2590,12 +2267,6 @@ 2 2 0 - - - - - - @@ -2617,8 +2288,6 @@ 2 2 11 - - 1 @@ -2646,12 +2315,6 @@ 2 2 2 - - - - - - @@ -2673,8 +2336,6 @@ 2 2 11 - - 1 @@ -2702,12 +2363,6 @@ 2 2 2 - - - - - - @@ -2729,8 +2384,6 @@ 2 2 11 - - 1 @@ -2758,12 +2411,6 @@ 2 2 2 - - - - - - @@ -2785,8 +2432,6 @@ 2 2 11 - - 1 @@ -2814,12 +2459,6 @@ 2 2 2 - - - - - - @@ -2841,8 +2480,6 @@ 2 2 11 - - 1 @@ -2870,12 +2507,6 @@ 2 2 2 - - - - - - @@ -2897,8 +2528,6 @@ 2 2 11 - - 1 @@ -2926,12 +2555,6 @@ 2 2 2 - - - - - - @@ -2953,8 +2576,6 @@ 2 2 11 - - 1 @@ -2982,12 +2603,6 @@ 2 2 2 - - - - - - @@ -3009,8 +2624,6 @@ 2 2 11 - - 1 @@ -3038,12 +2651,6 @@ 2 2 2 - - - - - - @@ -3065,8 +2672,6 @@ 2 2 11 - - 1 @@ -3094,12 +2699,6 @@ 2 2 2 - - - - - - @@ -3121,8 +2720,6 @@ 2 2 11 - - 1 @@ -3150,12 +2747,6 @@ 2 2 2 - - - - - - @@ -3177,8 +2768,6 @@ 2 2 11 - - 1 @@ -3206,12 +2795,6 @@ 2 2 2 - - - - - - @@ -3233,8 +2816,6 @@ 2 2 11 - - 1 @@ -3262,12 +2843,6 @@ 2 2 2 - - - - - - @@ -3289,8 +2864,6 @@ 2 2 11 - - 1 @@ -3318,12 +2891,6 @@ 2 2 2 - - - - - - @@ -3345,8 +2912,6 @@ 2 2 11 - - 1 @@ -3374,12 +2939,6 @@ 2 2 2 - - - - - - @@ -3401,8 +2960,6 @@ 2 2 11 - - 1 @@ -3430,12 +2987,6 @@ 2 2 2 - - - - - - @@ -3457,8 +3008,6 @@ 2 2 11 - - 1 @@ -3486,12 +3035,6 @@ 2 2 2 - - - - - - @@ -3513,8 +3056,6 @@ 2 2 11 - - 1 @@ -3542,12 +3083,6 @@ 2 2 2 - - - - - - @@ -3569,8 +3104,6 @@ 2 2 11 - - 1 @@ -3598,12 +3131,6 @@ 2 2 2 - - - - - - @@ -3625,8 +3152,6 @@ 2 2 11 - - 1 @@ -3654,12 +3179,6 @@ 2 2 2 - - - - - - @@ -3681,8 +3200,6 @@ 2 2 11 - - 1 @@ -3710,12 +3227,6 @@ 2 2 2 - - - - - - @@ -3737,8 +3248,6 @@ 2 2 11 - - 1 @@ -3766,12 +3275,6 @@ 2 2 2 - - - - - - @@ -3793,8 +3296,6 @@ 2 2 11 - - 1 @@ -3822,12 +3323,6 @@ 2 2 2 - - - - - - @@ -3849,8 +3344,6 @@ 2 2 11 - - 1 @@ -3878,12 +3371,6 @@ 2 2 2 - - - - - - @@ -3905,8 +3392,6 @@ 2 2 11 - - 1 @@ -3934,12 +3419,6 @@ 2 2 2 - - - - - - @@ -3961,8 +3440,6 @@ 2 2 11 - - 1 @@ -3990,12 +3467,6 @@ 2 2 2 - - - - - - @@ -4017,8 +3488,6 @@ 2 2 11 - - 1 @@ -4046,12 +3515,6 @@ 2 2 2 - - - - - - @@ -4073,8 +3536,6 @@ 2 2 11 - - 1 @@ -4102,12 +3563,6 @@ 2 2 2 - - - - - - @@ -4129,8 +3584,6 @@ 2 2 11 - - 1 @@ -4158,12 +3611,6 @@ 2 2 2 - - - - - - @@ -4185,8 +3632,6 @@ 2 2 11 - - 1 @@ -4214,12 +3659,6 @@ 2 2 2 - - - - - - @@ -4241,8 +3680,6 @@ 2 2 11 - - 1 @@ -4270,12 +3707,6 @@ 2 2 2 - - - - - - @@ -4297,8 +3728,6 @@ 2 2 11 - - 1 @@ -4326,12 +3755,6 @@ 2 2 2 - - - - - - @@ -4353,8 +3776,6 @@ 2 2 11 - - 1 @@ -4382,12 +3803,6 @@ 2 2 2 - - - - - - @@ -4409,8 +3824,6 @@ 2 2 11 - - 1 @@ -4438,12 +3851,6 @@ 2 2 2 - - - - - - @@ -4465,8 +3872,6 @@ 2 2 11 - - 1 @@ -4494,12 +3899,6 @@ 2 2 2 - - - - - - @@ -4521,8 +3920,6 @@ 2 2 11 - - 1 @@ -4550,12 +3947,6 @@ 2 2 2 - - - - - - @@ -4577,8 +3968,6 @@ 2 2 11 - - 1 @@ -4606,12 +3995,6 @@ 2 2 2 - - - - - - @@ -4633,8 +4016,6 @@ 2 2 11 - - 1 @@ -4662,12 +4043,6 @@ 2 2 2 - - - - - - @@ -4689,8 +4064,6 @@ 2 2 11 - - 1 @@ -4718,12 +4091,6 @@ 2 2 2 - - - - - - @@ -4745,8 +4112,6 @@ 2 2 11 - - 1 @@ -4774,12 +4139,6 @@ 2 2 2 - - - - - - @@ -4801,8 +4160,6 @@ 2 2 11 - - 1 @@ -4830,12 +4187,6 @@ 2 2 2 - - - - - - @@ -4857,8 +4208,6 @@ 2 2 11 - - 1 @@ -4886,12 +4235,6 @@ 2 2 2 - - - - - - @@ -4913,8 +4256,6 @@ 2 2 11 - - 1 @@ -4942,12 +4283,6 @@ 2 2 2 - - - - - - @@ -4969,8 +4304,6 @@ 2 2 11 - - 1 @@ -4998,12 +4331,6 @@ 2 2 2 - - - - - - @@ -5025,8 +4352,6 @@ 2 2 11 - - 1 @@ -5054,12 +4379,6 @@ 2 2 2 - - - - - - @@ -5081,8 +4400,6 @@ 2 2 11 - - 1 @@ -5110,12 +4427,6 @@ 2 2 2 - - - - - - @@ -5137,8 +4448,6 @@ 2 2 11 - - 1 @@ -5166,12 +4475,6 @@ 2 2 2 - - - - - - @@ -5193,8 +4496,6 @@ 2 2 11 - - 1 @@ -5222,12 +4523,6 @@ 2 2 2 - - - - - - @@ -5249,8 +4544,6 @@ 2 2 11 - - 1 @@ -5278,12 +4571,6 @@ 2 2 2 - - - - - - @@ -5305,8 +4592,6 @@ 2 2 11 - - 1 @@ -5334,12 +4619,6 @@ 2 2 2 - - - - - - @@ -5361,8 +4640,6 @@ 2 2 11 - - 1 @@ -5390,12 +4667,6 @@ 2 2 2 - - - - - - @@ -5417,8 +4688,6 @@ 2 2 11 - - 1 @@ -5446,12 +4715,6 @@ 2 2 2 - - - - - - @@ -5473,8 +4736,6 @@ 2 2 11 - - 1 @@ -5502,12 +4763,6 @@ 2 2 2 - - - - - - @@ -5529,8 +4784,6 @@ 2 2 11 - - 1 @@ -5558,12 +4811,6 @@ 2 2 2 - - - - - - @@ -5585,8 +4832,6 @@ 2 2 11 - - 1 @@ -5614,12 +4859,6 @@ 2 2 2 - - - - - - @@ -5641,8 +4880,6 @@ 2 2 11 - - 1 @@ -5670,12 +4907,6 @@ 2 2 2 - - - - - - @@ -5697,8 +4928,6 @@ 2 2 11 - - 1 @@ -5726,12 +4955,6 @@ 2 2 2 - - - - - - @@ -5753,8 +4976,6 @@ 2 2 11 - - 1 @@ -5782,12 +5003,6 @@ 2 2 2 - - - - - - @@ -5809,8 +5024,6 @@ 2 2 11 - - 1 @@ -5838,12 +5051,6 @@ 2 2 2 - - - - - - @@ -5865,8 +5072,6 @@ 2 2 11 - - 1 @@ -5894,12 +5099,6 @@ 2 2 2 - - - - - - @@ -5921,8 +5120,6 @@ 2 2 11 - - 1 @@ -5950,12 +5147,6 @@ 2 2 2 - - - - - - @@ -5977,8 +5168,6 @@ 2 2 11 - - 1 @@ -6006,12 +5195,6 @@ 2 2 2 - - - - - - @@ -6033,8 +5216,6 @@ 2 2 11 - - 1 @@ -6062,12 +5243,6 @@ 2 2 2 - - - - - - @@ -6089,8 +5264,6 @@ 2 2 11 - - 1 @@ -6118,12 +5291,6 @@ 2 2 2 - - - - - - @@ -6145,8 +5312,6 @@ 2 2 11 - - 1 @@ -6174,12 +5339,6 @@ 2 2 2 - - - - - - @@ -6201,8 +5360,6 @@ 2 2 11 - - 1 @@ -6230,12 +5387,6 @@ 2 2 2 - - - - - - @@ -6257,8 +5408,6 @@ 2 2 11 - - 1 @@ -6286,12 +5435,6 @@ 2 2 2 - - - - - - @@ -6313,8 +5456,6 @@ 2 2 11 - - 1 @@ -6342,12 +5483,6 @@ 2 2 2 - - - - - - @@ -6369,8 +5504,6 @@ 2 2 11 - - 1 @@ -6398,12 +5531,6 @@ 2 2 2 - - - - - - @@ -6425,8 +5552,6 @@ 2 2 11 - - 1 @@ -6454,12 +5579,6 @@ 2 2 2 - - - - - - @@ -6481,8 +5600,6 @@ 2 2 11 - - 1 @@ -6510,12 +5627,6 @@ 2 2 2 - - - - - - @@ -6537,8 +5648,6 @@ 2 2 11 - - 1 @@ -6566,12 +5675,6 @@ 2 2 2 - - - - - - @@ -6593,8 +5696,6 @@ 2 2 11 - - 1 @@ -6622,12 +5723,6 @@ 2 2 2 - - - - - - @@ -6649,8 +5744,6 @@ 2 2 11 - - 1 @@ -6678,12 +5771,6 @@ 2 2 2 - - - - - - @@ -6705,8 +5792,6 @@ 2 2 11 - - 1 @@ -6734,12 +5819,6 @@ 2 2 2 - - - - - - @@ -6761,8 +5840,6 @@ 2 2 11 - - 1 @@ -6790,12 +5867,6 @@ 2 2 2 - - - - - - @@ -6817,8 +5888,6 @@ 2 2 11 - - 1 @@ -6846,12 +5915,6 @@ 2 2 2 - - - - - - @@ -6873,8 +5936,6 @@ 2 2 11 - - 1 @@ -6902,12 +5963,6 @@ 2 2 2 - - - - - - @@ -6929,8 +5984,6 @@ 2 2 11 - - 1 @@ -6958,12 +6011,6 @@ 2 2 2 - - - - - - @@ -6985,8 +6032,6 @@ 2 2 11 - - 1 @@ -7014,12 +6059,6 @@ 2 2 2 - - - - - - @@ -7041,8 +6080,6 @@ 2 2 11 - - 1 @@ -7070,12 +6107,6 @@ 2 2 2 - - - - - - @@ -7097,8 +6128,6 @@ 2 2 11 - - 1 @@ -7126,12 +6155,6 @@ 2 2 2 - - - - - - @@ -7144,18 +6167,17 @@ - - + - + - + - + -
+ diff --git a/Src/gpio.c b/Src/gpio.c index d0ececb..8d85923 100644 --- a/Src/gpio.c +++ b/Src/gpio.c @@ -45,6 +45,7 @@ void MX_GPIO_Init(void) GPIO_InitTypeDef GPIO_InitStruct = {0}; /* GPIO Ports Clock Enable */ + __HAL_RCC_GPIOF_CLK_ENABLE(); __HAL_RCC_GPIOH_CLK_ENABLE(); __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); @@ -52,8 +53,18 @@ void MX_GPIO_Init(void) __HAL_RCC_GPIOG_CLK_ENABLE(); /*Configure GPIO pin Output Level */ + HAL_GPIO_WritePin(GPIOF, GPIO_PIN_10, GPIO_PIN_RESET); + + /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(ETH_RST_GPIO_Port, ETH_RST_Pin, GPIO_PIN_RESET); + /*Configure GPIO pin : PF10 */ + GPIO_InitStruct.Pin = GPIO_PIN_10; + GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; + GPIO_InitStruct.Pull = GPIO_PULLUP; + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + HAL_GPIO_Init(GPIOF, &GPIO_InitStruct); + /*Configure GPIO pin : PtPin */ GPIO_InitStruct.Pin = ETH_RST_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;