From efa64e0da4b6b5ad7d5260f71fe29aff3130bb54 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 9 May 2021 21:30:14 +0800 Subject: [PATCH 1/5] =?UTF-8?q?[bsp-stm32f407-explorer]=20=E5=AE=8C?= =?UTF-8?q?=E5=96=84F407=E6=8E=A2=E8=B7=AF=E8=80=85=E7=BD=91=E7=BB=9Cboard?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32/stm32f407-atk-explorer/board/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bsp/stm32/stm32f407-atk-explorer/board/Kconfig b/bsp/stm32/stm32f407-atk-explorer/board/Kconfig index 84aa84e42c..5959d41437 100644 --- a/bsp/stm32/stm32f407-atk-explorer/board/Kconfig +++ b/bsp/stm32/stm32f407-atk-explorer/board/Kconfig @@ -54,6 +54,9 @@ menu "Onboard Peripheral Drivers" default n select RT_USING_LWIP select PHY_USING_LAN8720A + select RT_LWIP_USING_HW_CHECKSUM + select RT_USING_SAL + select SAL_USING_POSIX config BSP_USING_MPU6050 bool "Enable MPU6050 (i2c1)" From 61ec310591d3d75b4702fdad4b46829b68b83b13 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 10 May 2021 14:22:06 +0800 Subject: [PATCH 2/5] implement BSP_USING_ETH_SAL --- bsp/stm32/stm32f407-atk-explorer/board/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bsp/stm32/stm32f407-atk-explorer/board/Kconfig b/bsp/stm32/stm32f407-atk-explorer/board/Kconfig index 5959d41437..8aa3a6f9fa 100644 --- a/bsp/stm32/stm32f407-atk-explorer/board/Kconfig +++ b/bsp/stm32/stm32f407-atk-explorer/board/Kconfig @@ -55,6 +55,11 @@ menu "Onboard Peripheral Drivers" select RT_USING_LWIP select PHY_USING_LAN8720A select RT_LWIP_USING_HW_CHECKSUM + + config BSP_USING_ETH_SAL + bool "Enable Ethernet with SAL" + depends on BSP_USING_ETH + default y select RT_USING_SAL select SAL_USING_POSIX From ab6c69fe9e1efc8f4c5c24d4d5898297809a0ed5 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 10 May 2021 16:45:00 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E4=BC=98=E5=8C=96SDIO=5FMAX=5FFREQ?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=20=E5=88=A0=E9=99=A4PHY=5FUSING=5FLAN8720A?= =?UTF-8?q?=E6=97=A0=E7=94=A8=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32/stm32f407-atk-explorer/board/Kconfig | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bsp/stm32/stm32f407-atk-explorer/board/Kconfig b/bsp/stm32/stm32f407-atk-explorer/board/Kconfig index 8aa3a6f9fa..8f198ecd2f 100644 --- a/bsp/stm32/stm32f407-atk-explorer/board/Kconfig +++ b/bsp/stm32/stm32f407-atk-explorer/board/Kconfig @@ -45,9 +45,6 @@ menu "Onboard Peripheral Drivers" bool "Enable I2C EEPROM (i2c1)" select BSP_USING_I2C1 default n - - config PHY_USING_LAN8720A - bool config BSP_USING_ETH bool "Enable Ethernet" @@ -75,12 +72,12 @@ menu "Onboard Peripheral Drivers" select RT_USING_DFS select RT_USING_DFS_ELMFAT default n - if BSP_USING_SDCARD + config SDIO_MAX_FREQ int "sdio max freq" range 0 24000000 + depends on BSP_USING_SDCARD default 1000000 - endif endmenu From 39417ac51a4bd213973e5a19253b1246a0e60553 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 10 May 2021 17:15:46 +0800 Subject: [PATCH 4/5] =?UTF-8?q?[kconfig]=E4=BC=98=E5=8C=96=20PHY=5FUSING?= =?UTF-8?q?=5FLAN8720A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32/stm32f407-atk-explorer/board/Kconfig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bsp/stm32/stm32f407-atk-explorer/board/Kconfig b/bsp/stm32/stm32f407-atk-explorer/board/Kconfig index 8f198ecd2f..7e36d691f8 100644 --- a/bsp/stm32/stm32f407-atk-explorer/board/Kconfig +++ b/bsp/stm32/stm32f407-atk-explorer/board/Kconfig @@ -50,7 +50,6 @@ menu "Onboard Peripheral Drivers" bool "Enable Ethernet" default n select RT_USING_LWIP - select PHY_USING_LAN8720A select RT_LWIP_USING_HW_CHECKSUM config BSP_USING_ETH_SAL @@ -60,6 +59,11 @@ menu "Onboard Peripheral Drivers" select RT_USING_SAL select SAL_USING_POSIX + config PHY_USING_LAN8720A + bool + depends on BSP_USING_ETH + default y + config BSP_USING_MPU6050 bool "Enable MPU6050 (i2c1)" default n From 2b5970e94a2fb07a1bd2de80104acb0a8261a551 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Tue, 11 May 2021 09:15:10 +0800 Subject: [PATCH 5/5] tab->spaces --- bsp/stm32/stm32f407-atk-explorer/board/Kconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bsp/stm32/stm32f407-atk-explorer/board/Kconfig b/bsp/stm32/stm32f407-atk-explorer/board/Kconfig index 7e36d691f8..8df593f4e1 100644 --- a/bsp/stm32/stm32f407-atk-explorer/board/Kconfig +++ b/bsp/stm32/stm32f407-atk-explorer/board/Kconfig @@ -59,10 +59,10 @@ menu "Onboard Peripheral Drivers" select RT_USING_SAL select SAL_USING_POSIX - config PHY_USING_LAN8720A - bool - depends on BSP_USING_ETH - default y + config PHY_USING_LAN8720A + bool + depends on BSP_USING_ETH + default y config BSP_USING_MPU6050 bool "Enable MPU6050 (i2c1)"