lpc175x_eth_driver.c
bool_t osSetEventFromIsr(OsEvent *event)
Set an event object to the signaled state from an interrupt service routine.
Definition: os_port_chibios.c:270
__weak_func void lpc175xEthInitGpio(NetInterface *interface)
GPIO configuration.
Definition: lpc175x_eth_driver.c:225
size_t netBufferRead(void *dest, const NetBuffer *src, size_t srcOffset, size_t length)
Read data from a multi-part buffer.
Definition: net_mem.c:690
error_t lpc175xEthInit(NetInterface *interface)
LPC175x Ethernet MAC initialization.
Definition: lpc175x_eth_driver.c:121
void lpc175xEthWriteSmi(uint32_t data, uint_t length)
SMI write operation.
Definition: lpc175x_eth_driver.c:785
error_t lpc175xEthUpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: lpc175x_eth_driver.c:679
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
uint16_t lpc175xEthReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: lpc175x_eth_driver.c:752
error_t lpc175xEthReceivePacket(NetInterface *interface)
Receive a packet.
Definition: lpc175x_eth_driver.c:568
void lpc175xEthEnableIrq(NetInterface *interface)
Enable interrupts.
Definition: lpc175x_eth_driver.c:332
#define LPC175X_ETH_IRQ_GROUP_PRIORITY
Definition: lpc175x_eth_driver.h:74
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
void lpc175xEthEventHandler(NetInterface *interface)
LPC175x Ethernet MAC event handler.
Definition: lpc175x_eth_driver.c:447
void lpc175xEthTick(NetInterface *interface)
LPC175x Ethernet MAC timer handler.
Definition: lpc175x_eth_driver.c:307
LPC1758 Ethernet MAC driver.
#define LPC175X_ETH_IRQ_PRIORITY_GROUPING
Definition: lpc175x_eth_driver.h:67
error_t lpc175xEthSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: lpc175x_eth_driver.c:482
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
void lpc175xEthWritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: lpc175x_eth_driver.c:722
#define RFC_ACCEPT_MULTICAST_HASH_EN
Definition: lpc175x_eth_driver.h:268
uint32_t lpc175xEthCalcCrc(const void *data, size_t length)
CRC calculation.
Definition: lpc175x_eth_driver.c:864
void lpc175xEthInitDesc(NetInterface *interface)
Initialize TX and RX descriptors.
Definition: lpc175x_eth_driver.c:256
TCP/IP stack core.
error_t lpc175xEthUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: lpc175x_eth_driver.c:621
void ENET_IRQHandler(void)
LPC175x Ethernet MAC interrupt service routine.
Definition: lpc175x_eth_driver.c:387
void lpc175xEthDisableIrq(NetInterface *interface)
Disable interrupts.
Definition: lpc175x_eth_driver.c:360
Debugging facilities.