sam9x6_eth1_driver.c
Go to the documentation of this file.
211 AIC_REGS->AIC_SMR = AIC_SMR_SRCTYPE_INT_LEVEL_SENSITIVE | AIC_SMR_PRIOR(SAM9X6_ETH1_IRQ_PRIORITY);
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 sam9x6Eth1ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: sam9x6_eth1_driver.c:563
void sam9x6Eth1DisableIrq(NetInterface *interface)
Disable interrupts.
Definition: sam9x6_eth1_driver.c:372
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 sam9x6Eth1InitBufferDesc(NetInterface *interface)
Initialize buffer descriptors.
Definition: sam9x6_eth1_driver.c:265
error_t sam9x6Eth1SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: sam9x6_eth1_driver.c:496
SAM9X60 Ethernet MAC driver (EMAC0 instance)
__weak_func void sam9x6Eth1InitGpio(NetInterface *interface)
GPIO configuration.
Definition: sam9x6_eth1_driver.c:233
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 sam9x6Eth1ReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: sam9x6_eth1_driver.c:903
const NicDriver sam9x6Eth1Driver
SAM9X6 Ethernet MAC driver (EMAC0 instance)
Definition: sam9x6_eth1_driver.c:92
error_t sam9x6Eth1UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: sam9x6_eth1_driver.c:695
void sam9x6Eth1WritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: sam9x6_eth1_driver.c:864
void sam9x6Eth1Tick(NetInterface *interface)
SAM9X6 Ethernet MAC timer handler.
Definition: sam9x6_eth1_driver.c:318
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
error_t sam9x6Eth1UpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: sam9x6_eth1_driver.c:821
void sam9x6Eth1IrqHandler(void)
SAM9X6 Ethernet MAC interrupt service routine.
Definition: sam9x6_eth1_driver.c:400
void sam9x6Eth1EnableIrq(NetInterface *interface)
Enable interrupts.
Definition: sam9x6_eth1_driver.c:343
error_t sam9x6Eth1Init(NetInterface *interface)
SAM9X6 Ethernet MAC initialization.
Definition: sam9x6_eth1_driver.c:119
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
TCP/IP stack core.
void sam9x6Eth1EventHandler(NetInterface *interface)
SAM9X6 Ethernet MAC event handler.
Definition: sam9x6_eth1_driver.c:460
Debugging facilities.