IT FINALLY WORKS!! A working, simple web page running on the ethernet esp32s3
This commit is contained in:
+5
-2
@@ -5,7 +5,7 @@ use esp_idf_svc::eth::{BlockingEth, EspEth, EthDriver, SpiEthChipset};
|
|||||||
use esp_idf_svc::eventloop::EspSystemEventLoop;
|
use esp_idf_svc::eventloop::EspSystemEventLoop;
|
||||||
use esp_idf_svc::hal::peripherals::Peripherals;
|
use esp_idf_svc::hal::peripherals::Peripherals;
|
||||||
use esp_idf_svc::hal::prelude::*;
|
use esp_idf_svc::hal::prelude::*;
|
||||||
use esp_idf_svc::hal::spi::{config::DriverConfig, SpiDriver};
|
use esp_idf_svc::hal::spi::{config::DriverConfig, Dma, SpiDriver};
|
||||||
use esp_idf_svc::http::server::{Configuration as HttpServerConfig, EspHttpServer};
|
use esp_idf_svc::http::server::{Configuration as HttpServerConfig, EspHttpServer};
|
||||||
use esp_idf_svc::http::Method;
|
use esp_idf_svc::http::Method;
|
||||||
use esp_idf_svc::io::Write;
|
use esp_idf_svc::io::Write;
|
||||||
@@ -24,7 +24,10 @@ fn main() -> anyhow::Result<()> {
|
|||||||
pins.gpio13, // SCLK
|
pins.gpio13, // SCLK
|
||||||
pins.gpio11, // MOSI (sdo)
|
pins.gpio11, // MOSI (sdo)
|
||||||
Some(pins.gpio12), // MISO (sdi)
|
Some(pins.gpio12), // MISO (sdi)
|
||||||
&DriverConfig::new(),
|
&DriverConfig {
|
||||||
|
dma: Dma::Auto(4096),
|
||||||
|
..Default::default()
|
||||||
|
},
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
let eth_driver = EthDriver::new_spi(
|
let eth_driver = EthDriver::new_spi(
|
||||||
|
|||||||
Reference in New Issue
Block a user