Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package releases #1018

Merged
merged 3 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ Please note that only changes to the `esp-hal-common` package are tracked in thi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [0.14.0] - 2023-12-12

### Added

- ESP32-C6: LP core clock is configurable (#907)
- Derive `Clone` and `Copy` for `EspTwaiFrame` (#914)
- A way to configure inverted pins (#912)
Expand All @@ -26,12 +27,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Improve DMA documentation & clean up module (#915)
- Only allow a single version of `esp-hal-common` to be present in an application (#934)
- C3, C6 and H2 can now use the `zero-rtc-bss` feature to enable `esp-hal-common/rv-zero-rtc-bss` (#867)
- ESP32-C3/C6 and ESP32-H2 can now use the `zero-rtc-bss` feature to enable `esp-hal-common/rv-zero-rtc-bss` (#867)
- Reuse `ieee802154_clock_enable/disable()` functions for BLE and rename `ble_ieee802154_clock_enable()` (#953)
- The `embedded-io` trait implementations are now gated behind the `embedded-io` feature (#964)
- Simplifed RMT channels and channel creators (#958)
- Reworked construction of I2S driver instances (#983)
- S2 / S3: Don't require GPIO 18 to create a USB peripheral driver instance (#990)
- ESP32-S2/S3: Don't require GPIO 18 to create a USB peripheral driver instance (#990)
- Updated to latest release candidate (`1.0.0-rc.2`) for `embedded-hal{-async,-nb}` (#994)
- Explicit panic when hitting the `DefaultHandler` (#1005)
- Relevant interrupts are now auto enabled in `embassy::init` (#1014).
Expand All @@ -52,14 +53,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

- Direct boot support has been removed (#903).
- Removed the `mcu-boot` feature from `esp32c3-hal` (#938)
- Removed SpiBusController and SpiBusDevice in favour of embedded-hal-bus and embassy-embedded-hal implementataions. (#978)

### Breaking
- Direct boot support has been removed (#903).

- `Spi::new`/`Spi::new_half_duplex` takes no gpio pin now, instead you need to call `with_pins` to setup those (#901).
- ESP32C2, ESP32C3, ESP32S2: atomic emulation trap has been removed. When upgrading you must either remove [these lines](https://github.com/esp-rs/riscv-atomic-emulation-trap#usage) from your `.cargo/config.toml`. Usage of `core::sync::atomic::*` in dependent crates should be replaced with [portable-atomic](https://github.com/taiki-e/portable-atomic). (#904) (#985)
- RSA driver now takes u32 words instead of u8 bytes. The expected slice length is now 4 times shorter. (#981)
- ESP32-C2, ESP32-C3, ESP32-S2: atomic emulation trap has been removed. (#904) (#985)
- When upgrading you must either remove [these lines](https://github.com/esp-rs/riscv-atomic-emulation-trap#usage) from your `.cargo/config.toml`.
- Usage of `core::sync::atomic::*` in dependent crates should be replaced with [portable-atomic](https://github.com/taiki-e/portable-atomic).
- RSA driver now takes `u32` words instead of `u8` bytes. The expected slice length is now 4 times shorter. (#981)

## [0.13.1] - 2023-11-02

Expand Down Expand Up @@ -337,7 +341,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.1.0] - 2022-08-05

[Unreleased]: https://github.com/esp-rs/esp-hal/compare/v0.13.1...HEAD
[0.14.0]: https://github.com/esp-rs/esp-hal/compare/v0.13.1...v0.14.0
[0.13.1]: https://github.com/esp-rs/esp-hal/compare/v0.13.0...v0.13.1
[0.13.0]: https://github.com/esp-rs/esp-hal/compare/v0.12.0...v0.13.0
[0.12.0]: https://github.com/esp-rs/esp-hal/compare/v0.11.0...v0.12.0
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ For information about the HAL and how to use it in your own projects, please ref

| Crate | Documentation | Target |
| :-----------------: | :------------------------: | :----------------------------: |
| [esp-ulp-riscv-hal] | N/A (_Not yet ppublished_) | `riscv32imc-unknown-none-elf` |
| [esp32c6-lp-hal] | N/A (_Not yet ppublished_) | `riscv32imac-unknown-none-elf` |
| [esp-ulp-riscv-hal] | N/A (_Not yet published_) | `riscv32imc-unknown-none-elf` |
| [esp32c6-lp-hal] | N/A (_Not yet published_) | `riscv32imac-unknown-none-elf` |

[esp-ulp-riscv-hal]: https://github.com/esp-rs/esp-hal/tree/main/esp-ulp-riscv-hal
[esp32c6-lp-hal]: https://github.com/esp-rs/esp-hal/tree/main/esp32c6-lp-hal
Expand Down
28 changes: 12 additions & 16 deletions esp-hal-common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
[package]
name = "esp-hal-common"
version = "0.13.1"
authors = [
"Jesse Braham <jesse@beta7.io>",
"Björn Quentin <bjoern.quentin@mobile-j.de>",
]
name = "esp-hal-common"
version = "0.14.0"
edition = "2021"
rust-version = "1.67.0"
description = "HAL implementations for peripherals common among Espressif devices; should not be used directly"
Expand Down Expand Up @@ -33,12 +29,12 @@ embedded-io = { version = "0.6.1", optional = true }
enumset = "1.1.3"
esp-synopsys-usb-otg = { version = "0.4.0", optional = true, features = ["fs", "esp32sx"] }
fugit = "0.3.7"
heapless = "0.8"
heapless = "0.8.0"
log = { version = "0.4.20", optional = true }
nb = "1.1.0"
paste = "1.0.14"
portable-atomic = { version = "1.5.1", default-features = false }
procmacros = { version = "0.7.0", features = ["enum-dispatch", "ram"], package = "esp-hal-procmacros", path = "../esp-hal-procmacros" }
portable-atomic = { version = "1.6.0", default-features = false }
procmacros = { version = "0.8.0", features = ["enum-dispatch", "ram"], package = "esp-hal-procmacros", path = "../esp-hal-procmacros" }
strum = { version = "0.25.0", default-features = false, features = ["derive"] }
void = { version = "1.0.2", default-features = false }
usb-device = { version = "0.3.1", optional = true }
Expand All @@ -52,7 +48,7 @@ embassy-sync = { version = "0.5.0", optional = true }
embassy-time = { version = "0.2.0", optional = true }

# RISC-V
esp-riscv-rt = { version = "0.5.0", optional = true, path = "../esp-riscv-rt" }
esp-riscv-rt = { version = "0.6.0", optional = true, path = "../esp-riscv-rt" }

# Xtensa
xtensa-lx = { version = "0.8.0", optional = true }
Expand All @@ -67,7 +63,7 @@ ufmt-write = { version = "0.1.0", optional = true }
esp32 = { version = "0.28.0", features = ["critical-section"], optional = true }
esp32c2 = { version = "0.16.0", features = ["critical-section"], optional = true }
esp32c3 = { version = "0.19.0", features = ["critical-section"], optional = true }
esp32c6 = { version = "0.10.0", features = ["critical-section"], optional = true }
esp32c6 = { version = "0.10.0", features = ["critical-section"], optional = true }
esp32h2 = { version = "0.6.0", features = ["critical-section"], optional = true }
esp32s2 = { version = "0.19.0", features = ["critical-section"], optional = true }
esp32s3 = { version = "0.23.0", features = ["critical-section"], optional = true }
Expand All @@ -89,7 +85,7 @@ esp32s3 = ["xtensa", "esp32s3/rt", "procmacros/esp32s3", "xtensa-lx/esp32s3", "x
xtal-26mhz = []
xtal-40mhz = []

# Only certain chips support flip-link
# Only certain chips support flip-link (ESP32-C6 and ESPS32-H2)
flip-link = ["esp-riscv-rt/fix-sp"]

# PSRAM support
Expand All @@ -98,9 +94,9 @@ psram-4m = []
psram-8m = []

# Octal RAM support
opsram-2m = []
opsram-4m = []
opsram-8m = []
opsram-2m = []
opsram-4m = []
opsram-8m = []
opsram-16m = []

# USB OTG support (ESP32-S2 and ESP32-S3 only! Enabled by default)
Expand Down Expand Up @@ -145,7 +141,7 @@ embassy-executor-thread = ["embassy", "embassy-executor"]
embassy-time-systick = []
embassy-time-timg0 = []

# prefer integrated timers, but allow using the generic queue if needed
# Prefer integrated timers, but allow using the generic queue if needed
embassy-integrated-timers = ["embassy-executor?/integrated-timers"]
embassy-generic-queue-8 = ["embassy-time/generic-queue-8"]
embassy-generic-queue-16 = ["embassy-time/generic-queue-16"]
Expand Down
8 changes: 4 additions & 4 deletions esp-hal-procmacros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "esp-hal-procmacros"
version = "0.7.0"
version = "0.8.0"
edition = "2021"
rust-version = "1.67.0"
description = "Procedural macros for ESP-HAL"
Expand All @@ -17,11 +17,11 @@ proc-macro = true
darling = "0.20.3"
litrs = "0.4.1"
object = { version = "0.32.1", optional = true }
proc-macro-crate = "2.0.0"
proc-macro-crate = "2.0.1"
proc-macro-error = "1.0.4"
proc-macro2 = "1.0.69"
proc-macro2 = "1.0.70"
quote = "1.0.33"
syn = { version = "2.0.38", features = ["extra-traits", "full"] }
syn = { version = "2.0.40", features = ["extra-traits", "full"] }

[features]
# Select a target device:
Expand Down
4 changes: 2 additions & 2 deletions esp-hal-smartled/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "esp-hal-smartled"
version = "0.6.0"
version = "0.7.0"
edition = "2021"
rust-version = "1.67.0"
description = "RMT adapter for smartleds"
Expand All @@ -12,7 +12,7 @@ features = ["esp32c3"]

[dependencies]
defmt = { version = "=0.3.5", optional = true }
esp-hal-common = { version = "0.13.0", path = "../esp-hal-common" }
esp-hal-common = { version = "0.14.0", path = "../esp-hal-common" }
fugit = "0.3.7"
smart-leds-trait = "0.2.1"

Expand Down
13 changes: 6 additions & 7 deletions esp-riscv-rt/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Added

### Changed
## 0.6.0 - 2023-12-12

### Fixed
- Fix overwriting rtc-uninit-data when there is no rtc-bss data (#952)

- Fix overwriting `rtc-uninit-data` when there is no rtc-bss data (#952)
- Fix RISC-V stack allocation (#988)
- ESP32-C6/ESP32-H2: Add `fix-sp` feature to support `flip-link` in `esp-hal-common` (#1008)

### Removed

## 0.5.0
## 0.5.0 - 2023-09-05

### Changed

Expand Down
33 changes: 15 additions & 18 deletions esp-riscv-rt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "esp-riscv-rt"
version = "0.5.0"
version = "0.6.0"
edition = "2021"
rust-version = "1.65"
description = "Minimal runtime / startup for RISC-V CPUs from Espressif"
Expand All @@ -13,31 +13,28 @@ categories = ["embedded", "no-std"]
riscv = "0.10.1"
riscv-rt-macros = "0.2.0"

[dev-dependencies]
panic-halt = "0.2.0"

[features]
direct-vectoring = []
direct-vectoring = []
fix-sp = []
has-mie-mip = []
init-data = []
init-rtc-fast-data = []
init-rtc-fast-text = []
init-rw-text = []
interrupt-preemption = []
has-mie-mip = []
zero-bss = []
zero-rtc-fast-bss = []
init-data = []
init-rw-text = []
init-rtc-fast-data = []
init-rtc-fast-text = []
fix-sp = []
zero-bss = []
zero-rtc-fast-bss = []

# This feature is intended for testing; you probably don't want to enable it:
ci = [
"direct-vectoring",
"interrupt-preemption",
"fix-sp",
"has-mie-mip",
"zero-bss",
"zero-rtc-fast-bss",
"init-data",
"init-rw-text",
"init-rtc-fast-data",
"init-rtc-fast-text",
"fix-sp",
"init-rw-text",
"interrupt-preemption",
"zero-bss",
"zero-rtc-fast-bss",
]
20 changes: 8 additions & 12 deletions esp32-hal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
[package]
name = "esp32-hal"
version = "0.16.0"
authors = [
"Jesse Braham <jesse@beta7.io>",
"Björn Quentin <bjoern.quentin@mobile-j.de>",
]
name = "esp32-hal"
version = "0.17.0"
edition = "2021"
rust-version = "1.67.0"
description = "HAL for ESP32 microcontrollers"
Expand All @@ -25,25 +21,25 @@ categories = [
]

[dependencies]
esp-hal-common = { version = "0.13.0", features = ["esp32"], path = "../esp-hal-common" }
esp-hal-common = { version = "0.14.0", features = ["esp32"], path = "../esp-hal-common" }
embassy-time = { version = "0.2.0", optional = true }

[dev-dependencies]
aes = "0.8.3"
critical-section = "1.1.2"
crypto-bigint = { version = "0.5.3", default-features = false }
crypto-bigint = { version = "0.5.5", default-features = false }
embassy-executor = { version = "0.4.0", features = ["nightly"] }
embassy-sync = "0.5.0"
embedded-graphics = "0.8.1"
embedded-hal-1 = { version = "=1.0.0-rc.2", package = "embedded-hal" }
embedded-hal-async = "=1.0.0-rc.2"
embedded-io-async = "0.6.0"
embedded-io-async = "0.6.1"
embedded-hal-bus = "0.1.0-rc.2"
esp-alloc = "0.3.0"
esp-backtrace = { version = "0.9.0", features = ["esp32", "panic-handler", "exception-handler", "print-uart"] }
esp-hal-smartled = { version = "0.6.0", features = ["esp32"], path = "../esp-hal-smartled" }
esp-println = { version = "0.7.0", features = ["esp32"] }
heapless = "0.8"
esp-hal-smartled = { version = "0.7.0", features = ["esp32"], path = "../esp-hal-smartled" }
esp-println = { version = "0.7.1", features = ["esp32"] }
heapless = "0.8.0"
lis3dh-async = "0.8.0"
sha2 = { version = "0.10.8", default-features = false}
smart-leds = "0.3.0"
Expand Down
32 changes: 14 additions & 18 deletions esp32c2-hal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
[package]
name = "esp32c2-hal"
version = "0.11.0"
authors = [
"Jesse Braham <jesse@beta7.io>",
"Björn Quentin <bjoern.quentin@mobile-j.de>",
]
name = "esp32c2-hal"
version = "0.12.0"
edition = "2021"
rust-version = "1.67.0"
description = "HAL for ESP32-C2 microcontrollers"
Expand All @@ -25,30 +21,30 @@ categories = [
]

[dependencies]
esp-hal-common = { version = "0.13.0", features = ["esp32c2"], path = "../esp-hal-common" }
embassy-time = { version = "0.2.0", optional = true }
esp-hal-common = { version = "0.14.0", features = ["esp32c2"], path = "../esp-hal-common" }
embassy-time = { version = "0.2.0", optional = true }

[dev-dependencies]
critical-section = "1.1.2"
embassy-executor = { version = "0.4.0", features = ["nightly"] }
crypto-bigint = { version = "0.5.5", default-features = false }
elliptic-curve = { version = "0.13.8", default-features = false, features = ["sec1"] }
embassy-executor = { version = "0.4.0", features = ["nightly"] }
embassy-sync = "0.5.0"
embedded-graphics = "0.8.1"
embedded-hal-1 = { version = "=1.0.0-rc.2", package = "embedded-hal" }
embedded-hal-async = "=1.0.0-rc.2"
embedded-io-async = "0.6.0"
embedded-io-async = "0.6.1"
embedded-hal-bus = "0.1.0-rc.2"
esp-backtrace = { version = "0.9.0", features = ["esp32c2", "panic-handler", "exception-handler", "print-uart"] }
esp-println = { version = "0.7.0", features = ["esp32c2"] }
heapless = "0.8"
esp-println = { version = "0.7.1", features = ["esp32c2"] }
heapless = "0.8.0"
hex-literal = "0.4.1"
lis3dh-async = "0.8.0"
p192 = { version = "0.13.0", default-features = false, features = ["arithmetic"] }
p256 = { version = "0.13.2", default-features = false, features = ["arithmetic"] }
sha2 = { version = "0.10.8", default-features = false}
ssd1306 = "0.8.4"
static_cell = { version = "2.0.0", features = ["nightly"] }
hex-literal = "0.4.1"
crypto-bigint = { version = "0.5.3", default-features = false }
elliptic-curve = { version = "0.13.6", default-features = false, features = ["sec1"] }
p192 = { version = "0.13.0", default-features = false, features = ["arithmetic"] }
p256 = { version = "0.13.2", default-features = false, features = ["arithmetic"] }
embassy-sync = "0.5.0"

[features]
default = ["rt", "vectored", "xtal-40mhz", "embassy-integrated-timers"]
Expand Down
Loading