Update
This commit is contained in:
Generated
+1
-1
@@ -946,7 +946,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "esp32p4"
|
name = "esp32p4"
|
||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
source = "git+https://github.com/esp-rs/esp-pacs?rev=0f4c316adbdbddb2479f50a5b931776b9655b23f#0f4c316adbdbddb2479f50a5b931776b9655b23f"
|
source = "git+https://github.com/esp-rs/esp-pacs?rev=5a07030bbe72d57f82314a26ec42b7f93e03bd1d#5a07030bbe72d57f82314a26ec42b7f93e03bd1d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"critical-section",
|
"critical-section",
|
||||||
"vcell",
|
"vcell",
|
||||||
|
|||||||
@@ -36,6 +36,12 @@ esp32 = [
|
|||||||
"esp-radio/esp32",
|
"esp-radio/esp32",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[profile.dev]
|
||||||
|
debug = true
|
||||||
|
debug-assertions = true
|
||||||
|
lto = "fat"
|
||||||
|
codegen-units = 1
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
debug = false
|
debug = false
|
||||||
debug-assertions = false
|
debug-assertions = false
|
||||||
@@ -43,4 +49,5 @@ lto = "fat"
|
|||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
|
||||||
|
|
||||||
|
# in Rust/esp-hal
|
||||||
# cargo xtask run example esp_now_slave --chip=esp32
|
# cargo xtask run example esp_now_slave --chip=esp32
|
||||||
+4
-2
@@ -77,11 +77,13 @@ async fn main(_spawner: Spawner) -> ! {
|
|||||||
let timg0 = TimerGroup::new(peripherals.TIMG0);
|
let timg0 = TimerGroup::new(peripherals.TIMG0);
|
||||||
esp_rtos::start(timg0.timer0, sw_int.software_interrupt0);
|
esp_rtos::start(timg0.timer0, sw_int.software_interrupt0);
|
||||||
|
|
||||||
let controller: &mut esp_radio::wifi::WifiController<'static> = mk_static!(
|
let wifi = peripherals.WIFI;
|
||||||
|
let controller = mk_static!(
|
||||||
esp_radio::wifi::WifiController<'static>,
|
esp_radio::wifi::WifiController<'static>,
|
||||||
esp_radio::wifi::new(peripherals.WIFI, Default::default()).unwrap()
|
esp_radio::wifi::WifiController::new(wifi, Default::default()).unwrap()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
let mut ap_channel = 0;
|
let mut ap_channel = 0;
|
||||||
let scan_config = ScanConfig::default().with_max(10);
|
let scan_config = ScanConfig::default().with_max(10);
|
||||||
let result = controller.scan_async(&scan_config).await.unwrap();
|
let result = controller.scan_async(&scan_config).await.unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user