Skip to content

Commit d0c917c

Browse files
authored
Merge pull request #11274 from VVESTM/vve_eth_h7
Add ethernet support on NUCLEO_H743ZI board
2 parents 590ce2c + 8ab6aec commit d0c917c

File tree

15 files changed

+1890
-20
lines changed

15 files changed

+1890
-20
lines changed

features/lwipstack/lwip-sys/arch/lwip_sys_arch.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@
4747
# else
4848
# define ETHMEM_SECTION __attribute__((section("AHBSRAM0"),aligned))
4949
# endif
50+
#elif defined(TARGET_STM32H7)
51+
# if defined (__ICCARM__)
52+
# define ETHMEM_SECTION
53+
# else
54+
# define ETHMEM_SECTION __attribute__((section(".ethusbram")))
55+
# endif
5056
#else
5157
#define ETHMEM_SECTION
5258
#endif

features/netsocket/emac-drivers/TARGET_STM_EMAC/stm32xx_emac_config.h renamed to features/netsocket/emac-drivers/TARGET_STM_EMAC/TARGET_STM32F2/stm32xx_emac_config.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#ifndef STM32XX_EMAC_CONFIG_H__
1818
#define STM32XX_EMAC_CONFIG_H__
1919

20+
#define ETH_IP_VERSION_V1
21+
2022
#define THREAD_STACKSIZE 512
2123

2224
#endif // #define STM32XX_EMAC_CONFIG_H__
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* Copyright (c) 2017 ARM Limited
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef STM32XX_EMAC_CONFIG_H__
18+
#define STM32XX_EMAC_CONFIG_H__
19+
20+
#define ETH_IP_VERSION_V1
21+
22+
#define THREAD_STACKSIZE 512
23+
24+
#endif // #define STM32XX_EMAC_CONFIG_H__
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* Copyright (c) 2017 ARM Limited
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef STM32XX_EMAC_CONFIG_H__
18+
#define STM32XX_EMAC_CONFIG_H__
19+
20+
#define ETH_IP_VERSION_V1
21+
22+
#define THREAD_STACKSIZE 512
23+
24+
#endif // #define STM32XX_EMAC_CONFIG_H__

0 commit comments

Comments
 (0)