22 #ifndef LIBBSP_ARM_LPC32XX_LPC_ETHERNET_CONFIG_H 23 #define LIBBSP_ARM_LPC32XX_LPC_ETHERNET_CONFIG_H 48 #define LPC_ETH_CONFIG_INTERRUPT LPC32XX_IRQ_ETHERNET 50 #define LPC_ETH_CONFIG_REG_BASE LPC32XX_BASE_ETHERNET 52 #define LPC_ETH_CONFIG_RX_UNIT_COUNT_DEFAULT 16 53 #define LPC_ETH_CONFIG_RX_UNIT_COUNT_MAX INT_MAX 55 #define LPC_ETH_CONFIG_TX_UNIT_COUNT_DEFAULT 32 56 #define LPC_ETH_CONFIG_TX_UNIT_COUNT_MAX INT_MAX 58 #define LPC_ETH_CONFIG_UNIT_MULTIPLE 8U 60 #ifdef LPC32XX_ETHERNET_RMII 61 #define LPC_ETH_CONFIG_RMII 63 static void lpc_eth_config_module_enable(
void)
65 LPC32XX_MAC_CLK_CTRL = 0x1f;
68 static void lpc_eth_config_module_enable(
void)
70 LPC32XX_MAC_CLK_CTRL = 0x0f;
74 static void lpc_eth_config_module_disable(
void)
76 LPC32XX_MAC_CLK_CTRL = 0;
79 #define LPC_ETH_CONFIG_USE_TRANSMIT_DMA 81 static char *lpc_eth_config_alloc_table_area(
size_t size)
86 static void lpc_eth_config_free_table_area(
char *table_area)
89 free(table_area, (
int) 0xdeadbeef);
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.
unsigned size
Definition: tte.h:74