stm32f767-st-nucleo BSP 添加以太网驱动支持
This commit is contained in:
parent
31b6533baa
commit
72fd4f0427
|
@ -38,7 +38,7 @@ NUCLEO-F767ZI 是st推出的一款基于 ARM Cortex-M7 内核的开发板,最
|
||||||
| **板载外设** | **支持情况** | **备注** |
|
| **板载外设** | **支持情况** | **备注** |
|
||||||
| :-----------------| :----------: | :-------------------------------------|
|
| :-----------------| :----------: | :-------------------------------------|
|
||||||
| USB 转串口3 | 支持 | |
|
| USB 转串口3 | 支持 | |
|
||||||
| 以太网 | 暂不支持 | 即将支持 |
|
| 以太网 | 支持 | PHY 选项 LAN8720A(兼容 LAN8742A) |
|
||||||
| **片上外设** | **支持情况** | **备注** |
|
| **片上外设** | **支持情况** | **备注** |
|
||||||
| GPIO | 支持 | PA0, PA1... PK15 ---> PIN: 0, 1...144 |
|
| GPIO | 支持 | PA0, PA1... PK15 ---> PIN: 0, 1...144 |
|
||||||
| UART | 支持 | UART3 |
|
| UART | 支持 | UART3 |
|
||||||
|
|
|
@ -7,11 +7,29 @@ config SOC_STM32F767ZI
|
||||||
|
|
||||||
menu "Onboard Peripheral Drivers"
|
menu "Onboard Peripheral Drivers"
|
||||||
|
|
||||||
config BSP_USING_USB_TO_USART
|
config BSP_USING_USB_TO_USART
|
||||||
bool "Enable USB TO USART (uart3)"
|
bool "Enable USB TO USART (uart3)"
|
||||||
select BSP_USING_UART3
|
select BSP_USING_UART3
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config BSP_USING_ETH
|
||||||
|
bool "Enable Ethernet"
|
||||||
|
select RT_USING_LWIP
|
||||||
|
default n
|
||||||
|
|
||||||
|
if BSP_USING_ETH
|
||||||
|
choice
|
||||||
|
prompt "On-board PHY chip"
|
||||||
|
default PHY_USING_LAN8720A
|
||||||
|
|
||||||
|
config PHY_USING_LAN8720A
|
||||||
|
bool "LAN8720A"
|
||||||
|
|
||||||
|
config PHY_USING_DM9161CEP
|
||||||
|
bool "DM9161CEP"
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
endif
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,12 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('board.c')
|
src = Glob('board.c')
|
||||||
src += Glob('CubeMX_Config/Src/stm32f7xx_hal_msp.c')
|
src += Glob('CubeMX_Config/Src/stm32f7xx_hal_msp.c')
|
||||||
|
|
||||||
|
if GetDepend(['BSP_USING_ETH']):
|
||||||
|
src += Glob('ports/phy_reset.c')
|
||||||
|
|
||||||
path = [cwd]
|
path = [cwd]
|
||||||
path += [cwd + '/CubeMX_Config/Inc']
|
path += [cwd + '/CubeMX_Config/Inc']
|
||||||
|
path += [cwd + '/ports']
|
||||||
|
|
||||||
if rtconfig.CROSS_TOOL == 'gcc':
|
if rtconfig.CROSS_TOOL == 'gcc':
|
||||||
src += [cwd + '/../../libraries/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f767xx.s']
|
src += [cwd + '/../../libraries/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f767xx.s']
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2006-2019, RT-Thread Development Team
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*
|
||||||
|
* Change Logs:
|
||||||
|
* Date Author Notes
|
||||||
|
* 2019-06-27 luhuadong first version
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <board.h>
|
||||||
|
|
||||||
|
void phy_reset(void)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* The PHY reset pin of NUCLEO-F767ZI is connected to the MCU reset pin,
|
||||||
|
* so no additional reset is required.
|
||||||
|
*/
|
||||||
|
|
||||||
|
return ;
|
||||||
|
}
|
Loading…
Reference in New Issue