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
41#ifndef CONFIG_LPC1768_ETH_PHY_TIMEOUT_US
42# define CONFIG_LPC1768_ETH_PHY_TIMEOUT_US 1000U
43#endif
44
48#ifndef CONFIG_LPC1768_ETH_RX_BUF_NUMOF
49# define CONFIG_LPC1768_ETH_RX_BUF_NUMOF 4U
50#endif
51
52static_assert(CONFIG_LPC1768_ETH_RX_BUF_NUMOF > 0,
53 "At least one receive buffer is required");
54
58#ifndef CONFIG_LPC1768_ETH_TX_BUF_NUMOF
59# define CONFIG_LPC1768_ETH_TX_BUF_NUMOF 4U
60#endif
61
62static_assert(CONFIG_LPC1768_ETH_TX_BUF_NUMOF > 0,
63 "At least one transmit buffer is required");
64
65#ifdef __cplusplus
66}
67#endif
68
POSIX.1-2008 compliant version of the assert macro.
#define CONFIG_LPC1768_ETH_TX_BUF_NUMOF
Number of transmit buffers.
Definition config.h:59
#define CONFIG_LPC1768_ETH_RX_BUF_NUMOF
Number of receive buffers.
Definition config.h:49