sam9x6_eth2_driver.c
Go to the documentation of this file.
211 AIC_REGS->AIC_SMR = AIC_SMR_SRCTYPE_INT_LEVEL_SENSITIVE | AIC_SMR_PRIOR(SAM9X6_ETH2_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
uint16_t sam9x6Eth2ReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: sam9x6_eth2_driver.c:881
void sam9x6Eth2InitBufferDesc(NetInterface *interface)
Initialize buffer descriptors.
Definition: sam9x6_eth2_driver.c:243
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
__weak_func void sam9x6Eth2InitGpio(NetInterface *interface)
GPIO configuration.
Definition: sam9x6_eth2_driver.c:233
void sam9x6Eth2Tick(NetInterface *interface)
SAM9X6 Ethernet MAC timer handler.
Definition: sam9x6_eth2_driver.c:296
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 sam9x6Eth2EnableIrq(NetInterface *interface)
Enable interrupts.
Definition: sam9x6_eth2_driver.c:321
void sam9x6Eth2EventHandler(NetInterface *interface)
SAM9X6 Ethernet MAC event handler.
Definition: sam9x6_eth2_driver.c:438
error_t sam9x6Eth2ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: sam9x6_eth2_driver.c:541
error_t sam9x6Eth2SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: sam9x6_eth2_driver.c:474
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
error_t sam9x6Eth2Init(NetInterface *interface)
SAM9X6 Ethernet MAC initialization.
Definition: sam9x6_eth2_driver.c:119
error_t sam9x6Eth2UpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: sam9x6_eth2_driver.c:799
const NicDriver sam9x6Eth2Driver
SAM9X6 Ethernet MAC driver (EMAC1 instance)
Definition: sam9x6_eth2_driver.c:92
void sam9x6Eth2IrqHandler(void)
SAM9X6 Ethernet MAC interrupt service routine.
Definition: sam9x6_eth2_driver.c:378
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
SAM9X60 Ethernet MAC driver (EMAC1 instance)
void sam9x6Eth2DisableIrq(NetInterface *interface)
Disable interrupts.
Definition: sam9x6_eth2_driver.c:350
TCP/IP stack core.
error_t sam9x6Eth2UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: sam9x6_eth2_driver.c:673
Debugging facilities.
void sam9x6Eth2WritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: sam9x6_eth2_driver.c:842