@@ -77,7 +77,7 @@ async fn main(spawner: Spawner) -> ! {
7777
7878 //IF option("alloc")
7979 //REPLACE 65536 max-dram2-uninit
80- esp_alloc:: heap_allocator!( #[ unsafe ( link_section = ".dram2_uninit" ) ] size: 65536 ) ;
80+ esp_alloc:: heap_allocator!( #[ esp_hal :: ram ( reclaimed ) ] size: 65536 ) ;
8181 //IF option("wifi") && (option("ble-bleps") || option("ble-trouble"))
8282 // COEX needs more RAM - so we've added some more
8383 esp_alloc:: heap_allocator!( size: 64 * 1024 ) ;
@@ -88,9 +88,10 @@ async fn main(spawner: Spawner) -> ! {
8888 //IF option("esp32") || option("esp32s2") || option("esp32s3")
8989 esp_rtos:: start ( timg0. timer0 ) ;
9090 //ELSE
91- let sw_interrupt = esp_hal:: interrupt:: software:: SoftwareInterruptControl :: new ( peripherals. SW_INTERRUPT ) ;
91+ let sw_interrupt =
92+ esp_hal:: interrupt:: software:: SoftwareInterruptControl :: new ( peripherals. SW_INTERRUPT ) ;
9293 esp_rtos:: start ( timg0. timer0 , sw_interrupt. software_interrupt0 ) ;
93- //ENDIF
94+ //ENDIF
9495
9596 //IF option("defmt") || option("log")
9697 info ! ( "Embassy initialized!" ) ;
@@ -99,12 +100,12 @@ async fn main(spawner: Spawner) -> ! {
99100 //ENDIF
100101
101102 //IF option("ble-trouble") || option("ble-bleps") || option("wifi")
102- let radio_init = esp_radio:: init ( )
103- . expect ( "Failed to initialize Wi-Fi/BLE controller" ) ;
103+ let radio_init = esp_radio:: init ( ) . expect ( "Failed to initialize Wi-Fi/BLE controller" ) ;
104104 //ENDIF
105105 //IF option("wifi")
106- let ( mut _wifi_controller, _interfaces) = esp_radio:: wifi:: new ( & radio_init, peripherals. WIFI , Default :: default ( ) )
107- . expect ( "Failed to initialize Wi-Fi controller" ) ;
106+ let ( mut _wifi_controller, _interfaces) =
107+ esp_radio:: wifi:: new ( & radio_init, peripherals. WIFI , Default :: default ( ) )
108+ . expect ( "Failed to initialize Wi-Fi controller" ) ;
108109 //ENDIF
109110 //IF option("ble-trouble")
110111 // find more examples https://github.com/embassy-rs/trouble/tree/main/examples/esp32
0 commit comments