apm32f4xx_eth_driver.c
Go to the documentation of this file.
__weak_func void apm32f4xxEthInitGpio(NetInterface *interface)
GPIO configuration.
Definition: apm32f4xx_eth_driver.c:242
void apm32f4xxEthInitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: apm32f4xx_eth_driver.c:297
void apm32f4xxEthTick(NetInterface *interface)
APM32F4 Ethernet MAC timer handler.
Definition: apm32f4xx_eth_driver.c:366
uint32_t apm32f4xxEthCalcCrc(const void *data, size_t length)
CRC calculation.
Definition: apm32f4xx_eth_driver.c:906
void apm32f4xxEthWritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: apm32f4xx_eth_driver.c:818
error_t apm32f4xxEthReceivePacket(NetInterface *interface)
Receive a packet.
Definition: apm32f4xx_eth_driver.c:583
error_t apm32f4xxEthInit(NetInterface *interface)
APM32F4 Ethernet MAC initialization.
Definition: apm32f4xx_eth_driver.c:117
error_t apm32f4xxEthUpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: apm32f4xx_eth_driver.c:775
void apm32f4xxEthDisableIrq(NetInterface *interface)
Disable interrupts.
Definition: apm32f4xx_eth_driver.c:419
void apm32f4xxEthEventHandler(NetInterface *interface)
APM32F4 Ethernet MAC event handler.
Definition: apm32f4xx_eth_driver.c:499
uint16_t apm32f4xxEthReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: apm32f4xx_eth_driver.c:860
void ETH_IRQHandler(void)
APM32F4 Ethernet MAC interrupt service routine.
Definition: apm32f4xx_eth_driver.c:446
void apm32f4xxEthEnableIrq(NetInterface *interface)
Enable interrupts.
Definition: apm32f4xx_eth_driver.c:391
error_t apm32f4xxEthSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: apm32f4xx_eth_driver.c:524
error_t apm32f4xxEthUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: apm32f4xx_eth_driver.c:653
APM32F4 Ethernet MAC driver.
#define APM32F4XX_ETH_RX_BUFFER_SIZE
Definition: apm32f4xx_eth_driver.h:60
#define APM32F4XX_ETH_TX_BUFFER_SIZE
Definition: apm32f4xx_eth_driver.h:46
#define APM32F4XX_ETH_IRQ_GROUP_PRIORITY
Definition: apm32f4xx_eth_driver.h:74
#define APM32F4XX_ETH_TX_BUFFER_COUNT
Definition: apm32f4xx_eth_driver.h:39
#define APM32F4XX_ETH_IRQ_SUB_PRIORITY
Definition: apm32f4xx_eth_driver.h:81
#define APM32F4XX_ETH_IRQ_PRIORITY_GROUPING
Definition: apm32f4xx_eth_driver.h:67
#define APM32F4XX_ETH_RX_BUFFER_COUNT
Definition: apm32f4xx_eth_driver.h:53
Debugging facilities.
TCP/IP stack core.
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
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:674
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:391
bool_t osSetEventFromIsr(OsEvent *event)
Set an event object to the signaled state from an interrupt service routine.
Definition: os_port_chibios.c:266
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202