I've reduced heap_size in config to be able to build without overflowing segments.
:warning: Breaking Change :warning:
The rsa field of Session::new() now take the peripheral directly, instead of an instance of the driver, so that we can instantiate the driver ourselves, in blocking mode. This now also allow creating a session in a trait impl that immutably borrow &self without triggering the borrow checker, by declaring a field with RefCell<Option<esp_hal::peripherals::RSA>>, and calling Session::new() with the following for the rsa field:
if let Ok(ref mut rsa) = self.rsa.try_borrow_mut() {
rsa.as_mut()
} else {
None
},
esp-hal
to the latest current release.nightly-2024-06-12
until the fix in https://github.com/embassy-rs/embassy/issues/3078 gets releasedheap_size
in config to be able to build without overflowing segments.:warning: Breaking Change :warning:
rsa
field ofSession::new()
now take the peripheral directly, instead of an instance of the driver, so that we can instantiate the driver ourselves, in blocking mode. This now also allow creating a session in a trait impl that immutably borrow&self
without triggering the borrow checker, by declaring a field withRefCell<Option<esp_hal::peripherals::RSA>>
, and callingSession::new()
with the following for the rsa field: