Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Bas Stottelaar <basstottelaar@gmail.com>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
8#include <assert.h>
9
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
27#ifndef CONFIG_EFM32_ETH_AN_TIMEOUT_MS
28# define CONFIG_EFM32_ETH_AN_TIMEOUT_MS 5000U
29#endif
30
34#ifndef CONFIG_EFM32_ETH_LINK_POLL_MS
35# define CONFIG_EFM32_ETH_LINK_POLL_MS 1000U
36#endif
37
44#ifndef CONFIG_EFM32_ETH_PHY_TIMEOUT_MS
45# define CONFIG_EFM32_ETH_PHY_TIMEOUT_MS 1U
46#endif
47
51#ifndef CONFIG_EFM32_ETH_RX_BUF_NUMOF
52# define CONFIG_EFM32_ETH_RX_BUF_NUMOF 4U
53#endif
54
55static_assert(CONFIG_EFM32_ETH_RX_BUF_NUMOF > 0,
56 "At least one receive buffer is required");
57
61#ifndef CONFIG_EFM32_ETH_TX_BUF_NUMOF
62# define CONFIG_EFM32_ETH_TX_BUF_NUMOF 4U
63#endif
64
65static_assert(CONFIG_EFM32_ETH_TX_BUF_NUMOF > 0,
66 "At least one transmit buffer is required");
67
74#ifndef CONFIG_EFM32_XTIMER_USE_LETIMER
75# define CONFIG_EFM32_XTIMER_USE_LETIMER 0
76#endif
77
81#ifndef CONFIG_EFM32_ZTIMER_USE_LETIMER
82# if CONFIG_EFM32_XTIMER_USE_LETIMER
83# define CONFIG_EFM32_ZTIMER_USE_LETIMER 1
84# else
85# define CONFIG_EFM32_ZTIMER_USE_LETIMER 0
86# endif
87#endif
88
89#ifdef __cplusplus
90}
91#endif
92
POSIX.1-2008 compliant version of the assert macro.
#define CONFIG_EFM32_ETH_RX_BUF_NUMOF
Number of receive buffers.
Definition config.h:52
#define CONFIG_EFM32_ETH_TX_BUF_NUMOF
Number of transmit buffers.
Definition config.h:62