Skip to content

Commit 8ab6aec

Browse files
committed
Move stm32xx_emac_config.h to family specific folder
This allows to specify which hal version to use for each family. It can also be used to modify the thread stack size. Signed-off-by: Vincent Veron <[email protected]>
1 parent 93b8164 commit 8ab6aec

File tree

5 files changed

+75
-2
lines changed

5 files changed

+75
-2
lines changed

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__
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_V2
21+
22+
#define THREAD_STACKSIZE 512
23+
24+
#endif // #define STM32XX_EMAC_CONFIG_H__

targets/targets.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3222,8 +3222,7 @@
32223222
"macros_add": [
32233223
"STM32H743xx",
32243224
"EXTRA_IDLE_STACK_REQUIRED",
3225-
"MBED_TICKLESS",
3226-
"ETH_IP_VERSION_V2"
3225+
"MBED_TICKLESS"
32273226
],
32283227
"overrides": {
32293228
"lpticker_delay_ticks": 0,

0 commit comments

Comments
 (0)