aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/cryp
diff options
context:
space:
mode:
authorCaleb Garrett <[email protected]>2024-02-24 16:14:44 -0500
committerCaleb Garrett <[email protected]>2024-02-25 20:59:07 -0500
commitf352b6d68b17fee886af58494b7e793cea3ea383 (patch)
tree13ccbc3bc16b29d2a39db405a6a891a5ecf5c778 /embassy-stm32/src/cryp
parent25ec838af597cc2e39c530b44f1a101c80b24260 (diff)
Address CI build issues.
Diffstat (limited to 'embassy-stm32/src/cryp')
-rw-r--r--embassy-stm32/src/cryp/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/embassy-stm32/src/cryp/mod.rs b/embassy-stm32/src/cryp/mod.rs
index 9d1a62905..fef5def6a 100644
--- a/embassy-stm32/src/cryp/mod.rs
+++ b/embassy-stm32/src/cryp/mod.rs
@@ -2,12 +2,11 @@
2#[cfg(cryp_v2)] 2#[cfg(cryp_v2)]
3use core::cmp::min; 3use core::cmp::min;
4use core::marker::PhantomData; 4use core::marker::PhantomData;
5
5use embassy_hal_internal::{into_ref, PeripheralRef}; 6use embassy_hal_internal::{into_ref, PeripheralRef};
6 7
7use crate::pac;
8use crate::peripherals::CRYP;
9use crate::rcc::sealed::RccPeripheral; 8use crate::rcc::sealed::RccPeripheral;
10use crate::{interrupt, peripherals, Peripheral}; 9use crate::{interrupt, pac, peripherals, Peripheral};
11 10
12const DES_BLOCK_SIZE: usize = 8; // 64 bits 11const DES_BLOCK_SIZE: usize = 8; // 64 bits
13const AES_BLOCK_SIZE: usize = 16; // 128 bits 12const AES_BLOCK_SIZE: usize = 16; // 128 bits
@@ -827,7 +826,7 @@ pub struct Cryp<'d, T: Instance> {
827impl<'d, T: Instance> Cryp<'d, T> { 826impl<'d, T: Instance> Cryp<'d, T> {
828 /// Create a new CRYP driver. 827 /// Create a new CRYP driver.
829 pub fn new(peri: impl Peripheral<P = T> + 'd) -> Self { 828 pub fn new(peri: impl Peripheral<P = T> + 'd) -> Self {
830 CRYP::enable_and_reset(); 829 T::enable_and_reset();
831 into_ref!(peri); 830 into_ref!(peri);
832 let instance = Self { _peripheral: peri }; 831 let instance = Self { _peripheral: peri };
833 instance 832 instance