drivers: eth_enc28j60: fix typo and build for half duplex
Fix typo and build for half duplex configuration. Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
parent
fe06e4276f
commit
45c6ead099
2 changed files with 4 additions and 4 deletions
|
@ -29,7 +29,7 @@ config ETH_ENC28J60_RX_THREAD_PRIO
|
||||||
Priority level for internal thread which is ran for incoming
|
Priority level for internal thread which is ran for incoming
|
||||||
packet processing.
|
packet processing.
|
||||||
|
|
||||||
config ETH_EN28J60_TIMEOUT
|
config ETH_ENC28J60_TIMEOUT
|
||||||
int "IP buffer timeout"
|
int "IP buffer timeout"
|
||||||
depends on ETH_ENC28J60
|
depends on ETH_ENC28J60
|
||||||
default 100
|
default 100
|
||||||
|
@ -45,7 +45,7 @@ config ETH_ENC28J60_0
|
||||||
Include port 0 driver
|
Include port 0 driver
|
||||||
|
|
||||||
if ETH_ENC28J60 && ETH_ENC28J60_0
|
if ETH_ENC28J60 && ETH_ENC28J60_0
|
||||||
config ETH_EN28J60_0_FULL_DUPLEX
|
config ETH_ENC28J60_0_FULL_DUPLEX
|
||||||
bool "ENC28J60 full duplex"
|
bool "ENC28J60 full duplex"
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
|
|
|
@ -767,8 +767,8 @@ static const struct eth_enc28j60_config eth_enc28j60_0_config = {
|
||||||
.spi_cs_port = DT_MICROCHIP_ENC28J60_0_CS_GPIO_CONTROLLER,
|
.spi_cs_port = DT_MICROCHIP_ENC28J60_0_CS_GPIO_CONTROLLER,
|
||||||
.spi_cs_pin = DT_MICROCHIP_ENC28J60_0_CS_GPIO_PIN,
|
.spi_cs_pin = DT_MICROCHIP_ENC28J60_0_CS_GPIO_PIN,
|
||||||
#endif /* CONFIG_ETH_ENC28J60_0_GPIO_SPI_CS */
|
#endif /* CONFIG_ETH_ENC28J60_0_GPIO_SPI_CS */
|
||||||
.full_duplex = CONFIG_ETH_EN28J60_0_FULL_DUPLEX,
|
.full_duplex = IS_ENABLED(CONFIG_ETH_ENC28J60_0_FULL_DUPLEX),
|
||||||
.timeout = CONFIG_ETH_EN28J60_TIMEOUT,
|
.timeout = CONFIG_ETH_ENC28J60_TIMEOUT,
|
||||||
};
|
};
|
||||||
|
|
||||||
NET_DEVICE_INIT(enc28j60_0, DT_MICROCHIP_ENC28J60_0_LABEL,
|
NET_DEVICE_INIT(enc28j60_0, DT_MICROCHIP_ENC28J60_0_LABEL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue