36#ifndef LIBBSP_ARM_LPC32XX_LPC_ETHERNET_CONFIG_H
37#define LIBBSP_ARM_LPC32XX_LPC_ETHERNET_CONFIG_H
62#define LPC_ETH_CONFIG_INTERRUPT LPC32XX_IRQ_ETHERNET
64#define LPC_ETH_CONFIG_REG_BASE LPC32XX_BASE_ETHERNET
66#define LPC_ETH_CONFIG_RX_UNIT_COUNT_DEFAULT 16
67#define LPC_ETH_CONFIG_RX_UNIT_COUNT_MAX INT_MAX
69#define LPC_ETH_CONFIG_TX_UNIT_COUNT_DEFAULT 128
70#define LPC_ETH_CONFIG_TX_UNIT_COUNT_MAX INT_MAX
72#define LPC_ETH_CONFIG_UNIT_MULTIPLE 8U
74#ifdef LPC32XX_ETHERNET_RMII
75 #define LPC_ETH_CONFIG_RMII
77 static void lpc_eth_config_module_enable(
void)
79 LPC32XX_MAC_CLK_CTRL = 0x1f;
82 static void lpc_eth_config_module_enable(
void)
84 LPC32XX_MAC_CLK_CTRL = 0x0f;
88static void lpc_eth_config_module_disable(
void)
90 LPC32XX_MAC_CLK_CTRL = 0;
93#define LPC_ETH_CONFIG_USE_TRANSMIT_DMA
95static char *lpc_eth_config_alloc_table_area(
size_t size)
100static void lpc_eth_config_free_table_area(
char *table_area)
103 free(table_area, NULL);
void * rtems_heap_allocate_aligned_with_boundary(size_t size, uintptr_t alignment, uintptr_t boundary) RTEMS_MALLOCLIKE RTEMS_ALLOC_SIZE(1) RTEMS_ALLOC_ALIGN(2) RTEMS_WARN_UNUSED_RESULT
Allocates a memory area of size size bytes from the heap.
This header file defines interfaces to support and use dynamic memory allocation.
This header file defines the RTEMS Classic API.