Skip to content

Commit 109269d

Browse files
authored
Merge pull request #4414 from tkaman/master
Enable CM3DS_MPS2 target
2 parents 74b6e8c + 9bf298e commit 109269d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+7519
-2
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* Copyright (c) 2017 ARM Limited
2+
*
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
16+
#ifndef LWIPOPTS_CONF_H
17+
#define LWIPOPTS_CONF_H
18+
19+
#define LWIP_TRANSPORT_ETHERNET 1
20+
21+
/* The IEEE 802.3ac standard says the maximum Ethernet frame */
22+
/* size is 1522 bytes to accommodate the four-byte VLAN tag. */
23+
#define ETH_MAX_FLEN 1522u /* recommended size for a VLAN frame */
24+
25+
/* Maximum Transfer Unit
26+
* The IEEE 802.3 specification limits the data portion of the 802.3 frame
27+
* to a minimum of 46 and a maximum of 1500 bytes, this is on L3 level.
28+
*/
29+
#define ETH_L2_HEADER_LEN 22u
30+
31+
#define ETH_MAX_PAYLOAD_LEN (ETH_MAX_FLEN - ETH_L2_HEADER_LEN)
32+
33+
#endif /* LWIPOPTS_CONF_H */

0 commit comments

Comments
 (0)