diff options
| author | Caleb Garrett <[email protected]> | 2024-02-24 16:14:44 -0500 |
|---|---|---|
| committer | Caleb Garrett <[email protected]> | 2024-02-25 20:59:07 -0500 |
| commit | f352b6d68b17fee886af58494b7e793cea3ea383 (patch) | |
| tree | 13ccbc3bc16b29d2a39db405a6a891a5ecf5c778 /embassy-stm32/src/cryp | |
| parent | 25ec838af597cc2e39c530b44f1a101c80b24260 (diff) | |
Address CI build issues.
Diffstat (limited to 'embassy-stm32/src/cryp')
| -rw-r--r-- | embassy-stm32/src/cryp/mod.rs | 7 |
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)] |
| 3 | use core::cmp::min; | 3 | use core::cmp::min; |
| 4 | use core::marker::PhantomData; | 4 | use core::marker::PhantomData; |
| 5 | |||
| 5 | use embassy_hal_internal::{into_ref, PeripheralRef}; | 6 | use embassy_hal_internal::{into_ref, PeripheralRef}; |
| 6 | 7 | ||
| 7 | use crate::pac; | ||
| 8 | use crate::peripherals::CRYP; | ||
| 9 | use crate::rcc::sealed::RccPeripheral; | 8 | use crate::rcc::sealed::RccPeripheral; |
| 10 | use crate::{interrupt, peripherals, Peripheral}; | 9 | use crate::{interrupt, pac, peripherals, Peripheral}; |
| 11 | 10 | ||
| 12 | const DES_BLOCK_SIZE: usize = 8; // 64 bits | 11 | const DES_BLOCK_SIZE: usize = 8; // 64 bits |
| 13 | const AES_BLOCK_SIZE: usize = 16; // 128 bits | 12 | const AES_BLOCK_SIZE: usize = 16; // 128 bits |
| @@ -827,7 +826,7 @@ pub struct Cryp<'d, T: Instance> { | |||
| 827 | impl<'d, T: Instance> Cryp<'d, T> { | 826 | impl<'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 |
