Skip to content

Commit 521ca45

Browse files
Merge branch 'main' into feature/esp32h2-blinky
2 parents 1e31d9f + b90ea68 commit 521ca45

File tree

27 files changed

+293
-20
lines changed

27 files changed

+293
-20
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
- Add bare-bones PSRAM support for ESP32-S3 (#517)
1717
- Add async support to the I2C driver (#519)
1818
- Add initial support for SHA in ESP32-H2 (#527)
19+
- Add initial support for AES in ESP32-H2 (#528)
1920
- Add blinky_erased_pins example for ESP32-H2 (#530)
2021

2122
### Fixed
2223

2324
- DMA is supported for SPI3 on ESP32-S3 (#507)
2425
- `change_bus_frequency` is now available on `SpiDma` (#529)
2526

27+
### Changed
28+
- Improve examples documentation (#533)
29+
2630
## [0.9.0] - 2023-05-02
2731

2832
### Added

esp-hal-common/devices/esp32h2.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cores = "single_core"
44

55
peripherals = [
66
# Peripherals available in the PAC:
7-
# "aes",
7+
"aes",
88
"apb_saradc",
99
# "assist_debug",
1010
# "ds",

esp-hal-common/src/aes/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ use crate::{
3232
#[cfg_attr(esp32s2, path = "esp32s2.rs")]
3333
#[cfg_attr(esp32c3, path = "esp32cX.rs")]
3434
#[cfg_attr(esp32c6, path = "esp32cX.rs")]
35+
#[cfg_attr(esp32h2, path = "esp32cX.rs")]
3536
mod aes_spec_impl;
3637

3738
const ALIGN_SIZE: usize = core::mem::size_of::<u32>();

esp-hal-common/src/soc/esp32h2/peripherals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub use pac::Interrupt;
66
pub(crate) use self::peripherals::*;
77

88
crate::peripherals! {
9-
// AES => true,
9+
AES => true,
1010
APB_SARADC => true,
1111
// ASSIST_DEBUG => true,
1212
// DS => true,

esp32-hal/examples/aes.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Encrypt/Decrypt a message using AES
2+
13
#![no_std]
24
#![no_main]
35
use aes::{

esp32-hal/examples/embassy_i2c.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
//! Embassy I2C
2+
//!
3+
//! Folowing pins are used:
4+
//! SDA GPIO32
5+
//! SCL GPIO33
6+
//!
7+
//! Depending on your target and the board you are using you have to change the
8+
//! pins.
9+
//!
10+
//! This is an example of running the embassy executor with IC2. It uses an
11+
//! LIS3DH to get accelerometer data.
12+
113
#![no_std]
214
#![no_main]
315
#![feature(type_alias_impl_trait)]

esp32-hal/examples/embassy_spi.rs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
//! embassy hello world
1+
//! Embassy SPI
22
//!
3-
//! This is an example of running the embassy executor with multiple tasks
4-
//! concurrently.
3+
//! Folowing pins are used:
4+
//! SCLK GPIO19
5+
//! MISO GPIO25
6+
//! MOSI GPIO23
7+
//! CS GPIO22
8+
//!
9+
//! Depending on your target and the board you are using you have to change the
10+
//! pins.
11+
//!
12+
//! Connect MISO and MOSI pins to see the outgoing data is read as incoming
13+
//! data.
14+
//!
15+
//! This is an example of running the embassy executor with SPI.
516
617
#![no_std]
718
#![no_main]

esp32-hal/examples/rsa.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Encrypt/Decrypt a message using RSA.
2+
13
#![no_std]
24
#![no_main]
35

esp32c2-hal/examples/embassy_i2c.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
//! Embassy I2C
2+
//!
3+
//! Folowing pins are used:
4+
//! SDA GPIO1
5+
//! SCL GPIO2
6+
//!
7+
//! Depending on your target and the board you are using you have to change the
8+
//! pins.
9+
//!
10+
//! This is an example of running the embassy executor with IC2. It uses an
11+
//! LIS3DH to get accelerometer data.
12+
113
#![no_std]
214
#![no_main]
315
#![feature(type_alias_impl_trait)]

esp32c2-hal/examples/embassy_spi.rs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
//! embassy hello world
1+
//! Embassy SPI
22
//!
3-
//! This is an example of running the embassy executor with multiple tasks
4-
//! concurrently.
3+
//! Folowing pins are used:
4+
//! SCLK GPIO6
5+
//! MISO GPIO2
6+
//! MOSI GPIO7
7+
//! CS GPIO10
8+
//!
9+
//! Depending on your target and the board you are using you have to change the
10+
//! pins.
11+
//!
12+
//! Connect MISO and MOSI pins to see the outgoing data is read as incoming
13+
//! data.
14+
//!
15+
//! This is an example of running the embassy executor with SPI.
516
617
#![no_std]
718
#![no_main]

0 commit comments

Comments
 (0)