stm32h5xx_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
STM32H5 Ethernet MAC driver.
#define STM32H5XX_ETH_IRQ_SUB_PRIORITY
Definition: stm32h5xx_eth_driver.h:81
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
uint16_t stm32h5xxEthReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: stm32h5xx_eth_driver.c:918
#define STM32H5XX_ETH_TX_BUFFER_COUNT
Definition: stm32h5xx_eth_driver.h:39
void stm32h5xxEthEnableIrq(NetInterface *interface)
Enable interrupts.
Definition: stm32h5xx_eth_driver.c:405
#define STM32H5XX_ETH_TX_BUFFER_SIZE
Definition: stm32h5xx_eth_driver.h:46
error_t stm32h5xxEthReceivePacket(NetInterface *interface)
Receive a packet.
Definition: stm32h5xx_eth_driver.c:603
void ETH_IRQHandler(void)
STM32H5 Ethernet MAC interrupt service routine.
Definition: stm32h5xx_eth_driver.c:460
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
#define STM32H5XX_ETH_RX_BUFFER_SIZE
Definition: stm32h5xx_eth_driver.h:60
error_t stm32h5xxEthInit(NetInterface *interface)
STM32H5 Ethernet MAC initialization.
Definition: stm32h5xx_eth_driver.c:115
error_t stm32h5xxEthSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: stm32h5xx_eth_driver.c:538
void stm32h5xxEthWritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: stm32h5xx_eth_driver.c:876
void stm32h5xxEthInitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: stm32h5xx_eth_driver.c:329
#define STM32H5XX_ETH_IRQ_GROUP_PRIORITY
Definition: stm32h5xx_eth_driver.h:74
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
__weak_func void stm32h5xxEthInitGpio(NetInterface *interface)
GPIO configuration.
Definition: stm32h5xx_eth_driver.c:248
void stm32h5xxEthEventHandler(NetInterface *interface)
STM32H5 Ethernet MAC event handler.
Definition: stm32h5xx_eth_driver.c:513
error_t stm32h5xxEthUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: stm32h5xx_eth_driver.c:689
void stm32h5xxEthTick(NetInterface *interface)
STM32H5 Ethernet MAC timer handler.
Definition: stm32h5xx_eth_driver.c:380
#define STM32H5XX_ETH_RX_BUFFER_COUNT
Definition: stm32h5xx_eth_driver.h:53
#define STM32H5XX_ETH_IRQ_PRIORITY_GROUPING
Definition: stm32h5xx_eth_driver.h:67
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
void stm32h5xxEthDisableIrq(NetInterface *interface)
Disable interrupts.
Definition: stm32h5xx_eth_driver.c:433
error_t stm32h5xxEthUpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: stm32h5xx_eth_driver.c:833
TCP/IP stack core.
uint32_t stm32h5xxEthCalcCrc(const void *data, size_t length)
CRC calculation.
Definition: stm32h5xx_eth_driver.c:964
Debugging facilities.