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_LPC1768_ETH_AN_TIMEOUT_MS
28# define CONFIG_LPC1768_ETH_AN_TIMEOUT_MS 5000U
29#endif
30
34#ifndef CONFIG_LPC1768_ETH_LINK_POLL_MS
35# define CONFIG_LPC1768_ETH_LINK_POLL_MS 1000U
36#endif
37
44#ifndef CONFIG_LPC1768_ETH_PHY_TIMEOUT_MS
45# define CONFIG_LPC1768_ETH_PHY_TIMEOUT_MS 1U
46#endif
47
51#ifndef CONFIG_LPC1768_ETH_RX_BUF_NUMOF
52# define CONFIG_LPC1768_ETH_RX_BUF_NUMOF 4U
53#endif
54
55static_assert(CONFIG_LPC1768_ETH_RX_BUF_NUMOF > 0,
56 "At least one receive buffer is required");
57
61#ifndef CONFIG_LPC1768_ETH_TX_BUF_NUMOF
62# define CONFIG_LPC1768_ETH_TX_BUF_NUMOF 4U
63#endif
64
65static_assert(CONFIG_LPC1768_ETH_TX_BUF_NUMOF > 0,
66 "At least one transmit buffer is required");
67
68#ifdef __cplusplus
69}
70#endif
71
POSIX.1-2008 compliant version of the assert macro.
#define CONFIG_LPC1768_ETH_TX_BUF_NUMOF
Number of transmit buffers.
Definition config.h:62
#define CONFIG_LPC1768_ETH_RX_BUF_NUMOF
Number of receive buffers.
Definition config.h:52