Skip to content

Commit

Permalink
delete WIZNET5K driver and add default host selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemakumar committed Aug 12, 2023
1 parent e7fe64c commit d22e86a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion drivers/wiznet5k
Submodule wiznet5k deleted from 0803fc
4 changes: 2 additions & 2 deletions ports/esp32/network_lan.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ STATIC mp_obj_t get_lan(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_ar
.command_bits = 16,
.address_bits = 8,
};
// spi_host_device_t host = machine_hw_spi_get_host(args[ARG_spi].u_obj);
spi_host_device_t host = machine_hw_spi_get_host(args[ARG_spi].u_obj);

eth_w5500_config_t chip_config = ETH_W5500_DEFAULT_CONFIG(1, &devcfg);
eth_w5500_config_t chip_config = ETH_W5500_DEFAULT_CONFIG(host, &devcfg);
chip_config.int_gpio_num = self->phy_int_pin;
mac = esp_eth_mac_new_w5500(&chip_config, &mac_config);
self->phy = esp_eth_phy_new_w5500(&phy_config);
Expand Down

0 comments on commit d22e86a

Please sign in to comment.