Loading...
Searching...
No Matches

Default configuration for the GRETH Ethernet driver. More...

Detailed Description

Default configuration for the GRETH Ethernet driver.

Board-specific values (base address, IRQ) are expected to be defined in the board's periph_conf.h via GRETH_PARAM_BASE and GRETH_PARAM_IRQ.

Author
Matvii Ivashchenko

Definition in file greth_params.h.

#include "greth.h"
#include "board.h"
+ Include dependency graph for greth_params.h:

Go to the source code of this file.

Variables

static const greth_params_t greth_params []
 GRETH device configuration table.
 

GRETH default parameters

Override in periph_conf.h or at compile time with -DGRETH_PARAM_BASE=...

#define GRETH_PARAM_BASE   (0xff984000UL)
 APB base address.
 
#define GRETH_PARAM_IRQ   (5U)
 PLIC interrupt line.
 
#define GRETH_PARAM_MAC   { 0x02, 0x00, 0x00, 0x00, 0x00, 0x01 }
 Default MAC address.
 
#define GRETH_PARAMS
 Driver initialization parameter set.
 

Macro Definition Documentation

◆ GRETH_PARAM_BASE

#define GRETH_PARAM_BASE   (0xff984000UL)

APB base address.

Definition at line 35 of file greth_params.h.

◆ GRETH_PARAM_IRQ

#define GRETH_PARAM_IRQ   (5U)

PLIC interrupt line.

Definition at line 39 of file greth_params.h.

◆ GRETH_PARAM_MAC

#define GRETH_PARAM_MAC   { 0x02, 0x00, 0x00, 0x00, 0x00, 0x01 }

Default MAC address.

Definition at line 44 of file greth_params.h.

◆ GRETH_PARAMS

#define GRETH_PARAMS
Value:
{ .base_addr = GRETH_PARAM_BASE, \
.irq = GRETH_PARAM_IRQ, \
.mac = GRETH_PARAM_MAC }
#define GRETH_PARAM_IRQ
GRETH interrupt line.
Definition periph_conf.h:85
#define GRETH_PARAM_BASE
GRETH base address.
Definition periph_conf.h:84
#define GRETH_PARAM_MAC
Default MAC address.

Driver initialization parameter set.

Definition at line 49 of file greth_params.h.

Variable Documentation

◆ greth_params

const greth_params_t greth_params[]
static
Initial value:
= {
}
#define GRETH_PARAMS
Driver initialization parameter set.

GRETH device configuration table.

Definition at line 58 of file greth_params.h.