nuc472_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
error_t nuc472EthInit(NetInterface *interface)
NUC472 Ethernet MAC initialization.
Definition: nuc472_eth_driver.c:114
void nuc472EthEnableIrq(NetInterface *interface)
Enable interrupts.
Definition: nuc472_eth_driver.c:340
Nuvoton NUC472 Ethernet MAC driver.
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
void nuc472EthTick(NetInterface *interface)
NUC472 Ethernet MAC timer handler.
Definition: nuc472_eth_driver.c:315
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
error_t nuc472EthReceivePacket(NetInterface *interface)
Receive a packet.
Definition: nuc472_eth_driver.c:558
void nuc472EthDisableIrq(NetInterface *interface)
Disable interrupts.
Definition: nuc472_eth_driver.c:369
error_t nuc472EthUpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: nuc472_eth_driver.c:676
#define NUC472_ETH_IRQ_GROUP_PRIORITY
Definition: nuc472_eth_driver.h:74
void nuc472EthInitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: nuc472_eth_driver.c:259
uint16_t nuc472EthReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: nuc472_eth_driver.c:759
void nuc472EthEventHandler(NetInterface *interface)
NUC472 Ethernet MAC event handler.
Definition: nuc472_eth_driver.c:462
error_t nuc472EthUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: nuc472_eth_driver.c:630
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
error_t nuc472EthSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: nuc472_eth_driver.c:487
__weak_func void nuc472EthInitGpio(NetInterface *interface)
GPIO configuration.
Definition: nuc472_eth_driver.c:214
#define NUC472_ETH_IRQ_PRIORITY_GROUPING
Definition: nuc472_eth_driver.h:67
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
TCP/IP stack core.
Debugging facilities.
void nuc472EthWritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: nuc472_eth_driver.c:719