f2838x_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
void f2838xEthEnableIrq(NetInterface *interface)
Enable interrupts.
Definition: f2838x_eth_driver.c:362
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
#define ETHERNET_DMA_CH0_TXDESC_TAIL_POINTER_R
Definition: f2838x_eth_driver.h:274
#define ETHERNET_DMA_CH0_TX_CONTROL_R
Definition: f2838x_eth_driver.h:270
#define ETHERNET_MMC_TX_INTERRUPT_MASK_R
Definition: f2838x_eth_driver.h:128
void f2838xEthInitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: f2838x_eth_driver.c:286
void f2838xEthTick(NetInterface *interface)
TMS320F2838xD Ethernet MAC timer handler.
Definition: f2838x_eth_driver.c:337
error_t f2838xEthUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: f2838x_eth_driver.c:642
#define ETHERNET_MAC_HASH_TABLE_REG0_R
Definition: f2838x_eth_driver.h:77
void f2838xEthEventHandler(NetInterface *interface)
TMS320F2838xD Ethernet MAC event handler.
Definition: f2838x_eth_driver.c:480
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
void f2838xEthDisableIrq(NetInterface *interface)
Disable interrupts.
Definition: f2838x_eth_driver.c:395
#define ETHERNET_MMC_RX_INTERRUPT_MASK_R
Definition: f2838x_eth_driver.h:127
#define ETHERNET_DMA_CH0_TXDESC_RING_LENGTH_R
Definition: f2838x_eth_driver.h:276
#define ETHERNET_MTL_TXQ0_OPERATION_MODE_R
Definition: f2838x_eth_driver.h:309
#define ETHERNET_DMA_CH0_TXDESC_LIST_ADDRESS_R
Definition: f2838x_eth_driver.h:272
__interrupt void f2838xEthIrqHandler(void)
TMS320F2838xD Ethernet MAC interrupt service routine.
Definition: f2838x_eth_driver.c:427
#define ETHERNET_MMC_IPC_RX_INTERRUPT_MASK_R
Definition: f2838x_eth_driver.h:185
uint32_t f2838xEthCalcCrc(const void *data, size_t length)
CRC calculation.
Definition: f2838x_eth_driver.c:929
#define ETHERNET_MAC_INTERRUPT_ENABLE_R
Definition: f2838x_eth_driver.h:91
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
error_t f2838xEthSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: f2838x_eth_driver.c:505
#define ETHERNET_DMA_CH0_INTERRUPT_ENABLE_R
Definition: f2838x_eth_driver.h:278
uint16_t f2838xEthReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: f2838x_eth_driver.c:877
#define ETHERNET_MAC_EXT_CONFIGURATION_R
Definition: f2838x_eth_driver.h:74
#define ETHERNET_MAC_Q0_TX_FLOW_CTRL_R
Definition: f2838x_eth_driver.h:84
#define ETHERNET_DMA_CH0_RXDESC_TAIL_POINTER_R
Definition: f2838x_eth_driver.h:275
error_t f2838xEthReceivePacket(NetInterface *interface)
Receive a packet.
Definition: f2838x_eth_driver.c:567
error_t f2838xEthInit(NetInterface *interface)
TMS320F2838xD Ethernet MAC initialization.
Definition: f2838x_eth_driver.c:120
#define ETHERNET_DMA_CH0_RXDESC_RING_LENGTH_R
Definition: f2838x_eth_driver.h:277
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
#define ETHERNET_DMA_CH0_RXDESC_LIST_ADDRESS_R
Definition: f2838x_eth_driver.h:273
__weak_func void f2838xEthInitGpio(NetInterface *interface)
GPIO configuration.
Definition: f2838x_eth_driver.c:273
TCP/IP stack core.
#define ETHERNET_MTL_RXQ0_OPERATION_MODE_R
Definition: f2838x_eth_driver.h:315
TMS320F2838xD Ethernet MAC driver.
#define ETHERNET_DMA_CH0_RX_CONTROL_R
Definition: f2838x_eth_driver.h:271
Debugging facilities.
#define ETHERNET_MAC_HASH_TABLE_REG1_R
Definition: f2838x_eth_driver.h:78
error_t f2838xEthUpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: f2838x_eth_driver.c:788
void f2838xEthWritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: f2838x_eth_driver.c:831