mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
Corrected hash CI build issues.
This commit is contained in:
parent
079bb7b490
commit
09973ad482
@ -7,7 +7,7 @@ mod common;
|
||||
use common::*;
|
||||
use embassy_executor::Spawner;
|
||||
use embassy_stm32::hash::*;
|
||||
use embassy_stm32::{bind_interrupts, peripherals, hash};
|
||||
use embassy_stm32::{bind_interrupts, hash, peripherals};
|
||||
use sha2::{Digest, Sha224, Sha256};
|
||||
use {defmt_rtt as _, panic_probe as _};
|
||||
|
||||
@ -39,7 +39,7 @@ async fn main(_spawner: Spawner) {
|
||||
hw_hasher.update(&mut sha256context, test_2).await;
|
||||
let mut sha_256_digest_buffer: [u8; 64] = [0; 64];
|
||||
let sha256_digest = hw_hasher.finish(sha256context, &mut sha_256_digest_buffer).await;
|
||||
|
||||
|
||||
// Compute the SHA-256 digest in software.
|
||||
let mut sw_sha256_hasher = Sha256::new();
|
||||
sw_sha256_hasher.update(test_1);
|
||||
|
@ -201,7 +201,7 @@ define_peris!(
|
||||
);
|
||||
#[cfg(feature = "stm32l552ze")]
|
||||
define_peris!(
|
||||
HASH_DMA = DMA1_CH0,
|
||||
HASH_DMA = DMA1_CH1,
|
||||
UART = USART3, UART_TX = PD8, UART_RX = PD9, UART_TX_DMA = DMA1_CH1, UART_RX_DMA = DMA1_CH2,
|
||||
SPI = SPI1, SPI_SCK = PA5, SPI_MOSI = PA7, SPI_MISO = PA6, SPI_TX_DMA = DMA1_CH1, SPI_RX_DMA = DMA1_CH2,
|
||||
@irq UART = {USART3 => embassy_stm32::usart::InterruptHandler<embassy_stm32::peripherals::USART3>;},
|
||||
|
Loading…
Reference in New Issue
Block a user