Mistake on this page?
Report an issue in GitHub or email us
sl_emac_config.h
Go to the documentation of this file.
1 /***************************************************************************//**
2  * @file sl_emac_config.h
3  *******************************************************************************
4  * @section License
5  * <b>(C) Copyright 2018 Silicon Labs, http://www.silabs.com</b>
6  *******************************************************************************
7  *
8  * SPDX-License-Identifier: Apache-2.0
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License"); you may
11  * not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  ******************************************************************************/
23 #ifndef SL_EMAC_CONFIG_H
24 #define SL_EMAC_CONFIG_H
25 // -----------------------------------------------------------------------------
26 // Config options
27 // -----------------------------------------------------------------------------
28 /** Number of descriptors in receive list */
29 #define SL_ETH_NUM_RX_BD (16)
30 /** Number of descriptors in transmit list */
31 #define SL_ETH_NUM_TX_BD (8)
32 /** Size of one buffer in a buffer descriptor (must be multiple of 64) */
33 #define SL_ETH_RX_BUF_SIZE (1536)
34 /** Timeout in milliseconds for polling the PHY link status */
35 #define SL_ETH_LINK_POLL_PERIOD_MS (500)
36 /** Default Ethernet worker thread stack size in bytes */
37 #include "mbed_trace.h"
38 #if MBED_CONF_MBED_TRACE_ENABLE == 1
39 #define SL_ETH_THREAD_STACKSIZE (768)
40 #else
41 #define SL_ETH_THREAD_STACKSIZE (512)
42 #endif
43 /** Default Ethernet worker thread stack priority */
44 #define SL_ETH_THREAD_PRIORITY (osPriorityHigh)
45 /** Name of interface */
46 #define SL_ETH_IF_NAME "sl"
47 /** Required alignment (in bytes) for packet buffers */
48 #define SL_ETH_ALIGN (16)
49 /** Link MTU */
50 #define SL_ETH_MTU (1500)
51 
52 #endif /* SL_EMAC_CONFIG_H */
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.