Commit Graph

984 Commits

Author SHA1 Message Date
Jesse Braham
82c579eb14
Clean up example imports (#1027)
* Don't import directly from `esp-hal-common` in examples

* Do no alias the HAL packages in examples
2023-12-14 15:56:04 +00:00
Jesse Braham
58baecc0d2
Assert that the hardware and software digests match for SHA examples (#1026) 2023-12-14 15:04:46 +00:00
Jesse Braham
1e875c9e9e Begin next release cycle 2023-12-13 18:38:13 +00:00
Jesse Braham
bb58446f91 New patch release for esp-hal-common 2023-12-13 18:34:38 +00:00
Sergio Gasquez Arcos
c40f75d976
Fix SHA (#1021)
* fix: Update dst_ptr with offset

* feat: Use PACs with fixes

* docs: Update changelog
2023-12-13 16:56:15 +00:00
Jesse Braham
9dd3df273e Begin next release cycle 2023-12-12 18:37:34 +00:00
Jesse Braham
990a76852e Bump package versions which were missed in previous commit 2023-12-12 18:37:34 +00:00
Jesse Braham
c55a6b70ae
New package releases (#1018)
* Fix typos in top-level `README.md`

* Bump version numbers of all packages and update necessary dependencies

* Update `CHANGELOG.md` files
2023-12-12 10:17:17 -08:00
Scott Mabin
19c9cef9a8
auto enable interrupts (#1014)
* auto enable interrupts

* changelog

* cfgs
2023-12-12 17:55:37 +00:00
Jesse Braham
6288e6421d
Update top-level README.md, HAL package documentation (#1017)
* Top-level `README.md` updates

* Remove mentions of image formats from documentation
2023-12-12 09:20:53 -08:00
Studiedlist
dd5bcb8509
Fix dma_read and dma_write for SPI slave dma driver (#1013)
* separate SpiDmaTransfer impl for rx and tx

* format code

* update spi_slave_dma example

* update CHANGELOG

* fix changelog entry

* add dma_read and dma_write examples for all supported chips
2023-12-12 10:09:20 +00:00
Björn Quentin
eef9cdb0a7
Update esp-synopsys-usb-otg (#1015) 2023-12-11 17:12:17 +00:00
Björn Quentin
7305ca138c
Make sure to test building with flip-link in CI (#1012) 2023-12-11 13:39:16 +00:00
Björn Quentin
c1912fc079
C6/H2: flip-link feature (#1008)
* C6/H2: flip-link feature

* CHANGELOG.md entry

* Include .wifiextrairam in .rwtext.wifi

* Set exception code 14 if SP was out of bounds
2023-12-11 12:45:07 +00:00
Björn Quentin
dfad09d85c
Panic when DefaultHandler gets invoked (#1005)
* Panic when DefaultHandler gets invoked

* CHANGELOG.md

* Use EspDefaultHandler for unhandled interrupts

* `defmt`safe EspDefaultHandler
2023-12-11 08:45:39 +00:00
Raphael Hetzel
5b177ecc4a
Configurable I2C Timeout (#1011) 2023-12-11 08:34:11 +00:00
Dániel Buga
7bb00d195a
Fix transmutes, clean up some unnecessary ones (#1009) 2023-12-09 17:00:39 +00:00
Jesse Braham
1130ae4f0d
Update to latest release candidate of embedded-hal{-async,-nb} (#994)
* Update to `embedded-hal@1.0.0-rc.2` and friends, bump some other deps

* Update method name in `SetDutyCycle` trait implementation

* Implement `DelayNs` trait

* Update `CHANGELOG.md`

* Update `usb-device` as well

* Use latest `embassy-executor` release
2023-12-08 10:56:27 +00:00
Jesse Braham
df44c2a9c6
Remove some unused imports (#1004) 2023-12-06 12:53:10 +00:00
dimpolo
08bfbbe8d4
let SmartLedsAdapter take its buffer by value (#1002) 2023-12-06 10:38:45 +00:00
Björn Quentin
1ffdbf7b0c
Fix ESP32-H2 memory size (#1003)
* Fix ESP32-H2 memory size

* CHANGELOG.md entry
2023-12-06 10:28:22 +00:00
dimpolo
c68838805f
actually use ADC calibration on xtensa chips (#1000) 2023-12-06 09:20:05 +00:00
Jesse Braham
b88a2ebd08
Various small CI updates (#998)
* Update to latest version of `checkout` action

* Re-order jobs to match order on filesystem

* Check all features of `esp-riscv-rt`

* Check both `esp32s2` and `esp32s3` feature for `esp-ulp-riscv-hal`

* Add a `ci` feature to `esp-riscv-rt` to making testing easier
2023-12-05 11:35:47 +00:00
Björn Quentin
22f14fd300
Fix ESP32-C6 memory (#997)
* Fix ESP32-C6 memory

* CHANGELOG.md
2023-12-05 10:06:21 +00:00
Jesse Braham
39dae9232f
Use published PACs for all HALs (#996) 2023-12-05 09:07:44 +00:00
Scott Mabin
810d849dcd
remove unused mod, use portable-atomic unconditionally (#995) 2023-12-04 15:40:39 +00:00
Scott Mabin
05f9d2109a
Completely remove atomic emulation (#985)
* Completely remove atomic emulation

* changelog
2023-12-04 14:22:15 +00:00
Jesse Braham
84e5a00361
Update heapless to 0.8.0, modify esp-hal-smartled job to build for correct targets (#993)
* Update `heapless` dependency to latest version

* Update CI job for `esp-hal-smartled` to build for correct targets
2023-12-04 10:46:30 +00:00
Björn Quentin
f1e1ec574f
Remove unnecessary pin required by USB peripheral (#990)
* Remove unnecessary pin required by USB peripheral

* CHANGELOG.md
2023-12-01 13:24:38 +00:00
Björn Quentin
17884743bd
Dma convenience macro (#935)
* Add macro to create DMA buffers and descriptors

* Remove WDT disabling from remaining examples

* CHANGELOG.md entry

* Remove redundant `unsafe`

* Easier way to make RX and TX same sized
2023-12-01 10:22:39 +00:00
Björn Quentin
a40ea79277
Fix RISC-V stack allocation (#988) 2023-12-01 09:17:00 +00:00
Jesse Braham
3d169bd80c
Remove unnecessary paste syntax (#986) 2023-12-01 07:14:31 +00:00
Tshepang Mbambo
3e80a72883
typo (#987) 2023-12-01 07:13:37 +00:00
Jesse Braham
c9e0ad2ac2
Update to latest PACs and resolve the (numerous) resulting errors (#984)
* Use latest `esp32c6-lp` package and fix breaking changes

* `esp32c2-hal` and `esp32c3-hal` mostly building (with no features...)

* C6 and H2 sort of close I guess, idk

* どうして。。。

* *Incoherent screaming*

* HAHA ESP32-HAL BUILDS!!!

* C2 and C3 are building!

* S2 builds!

* S3 builds!

* Fix ESP32 (again)

* ???

* Use git dependencies instead of local paths for PACs

* Fix some errors after a dodgy rebase

* Remove unnecessary constants for ESP32

* Fix RSA multiplication (math is hard)
2023-11-30 19:01:22 +00:00
Björn Quentin
6005f802ad
I2S: Less generics, nicer API (#983)
* I2S: Less generics, nicer API

* CHANGELOG.md
2023-11-30 07:55:03 +00:00
konsulten
c884378f94
Uart Async: Improve interrupt handling and irq<-->future communication (#977)
* Uart async: Separate futures types and wakers for rx and tx. Avoids possible deadlock when waker gets replaced

* ...

* Formatting issue resolved

* Remove hej (previous debugging) and removed return type from events, as we never read them

* heapless vec changed to enumset, ovf error docstring removed
2023-11-29 14:07:45 +00:00
Anthony Grondin
755fdd32b5
fix!: Use u32 words instead of u8 bytes for the RSA driver (#981)
BREAKING CHANGE: The RSA driver now takes u32 slices instead of u8
2023-11-29 08:49:53 +00:00
Björn Quentin
e7e0af2135
Improve SmartLED init (#980) 2023-11-28 13:30:42 +00:00
Dániel Buga
4a0af66884
Remove SpiBusDevice and SpiBusController (#978)
* Remove SpiBusDevice and SpiBusController

* Update examples
2023-11-28 08:55:55 +00:00
Jesse Braham
a54588d45b Update esp32s2-ulp and esp32s3-ulp packages and address breaking changes 2023-11-27 03:06:53 -08:00
jneem
b8f8828eb2
Simplify rmt channels by turning Channel0<0> into Channel<0> (#958)
* Simplify rmt channels

* Changelog

* Fix esp32

---------

Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
2023-11-27 10:39:08 +00:00
Jesse Braham
ece40abaed Pin PACs to a commit for esp-ulp-riscv-hal 2023-11-24 05:07:45 -08:00
Scott Mabin
6005f92566
Align stack variable names (#970) 2023-11-22 15:16:16 +00:00
Dániel Buga
39519dfdc9
RISC-V executors (#947)
* RISC-V executors

* Add multiprio example to RISC-V SoCs

* Check new examples

* Hack in support for generic queue

* Reserve SoftwareInterrupt0 for multicore thread-mode executors

* Merge interrupt executors

* Merge thread-mode executors

* Document the new features and expand on time drivers

* Main tasks don't have to return !

* Unify multiprio examples

* Undo C6 log output change
2023-11-22 14:36:53 +00:00
Timo
71e6543430
Add rx timeout functionality to async uart (#911) 2023-11-22 13:16:26 +00:00
Jesse Braham
d98eb026c7
Update the msrv-*, clippy-*, and rustfmt CI jobs (#967)
* Update/improve `clippy-riscv`, `clippy-xtensa`, and `rustfmt` CI jobs

* Update/improve the `msrv-riscv` and `msrv-xtensa` CI jobs
2023-11-21 01:24:42 -08:00
Jesse Braham
8754217f6d
Gate the embedded-io trait impls behind a feature (#964)
* Gate the `embedded-io` trait impls behind a feature

* Update `CHANGELOG.md`
2023-11-20 14:28:35 +00:00
Jesse Braham
04f63b7c7b
Move remaining device-specific linker scripts into esp-hal-common (#963)
* Move remaining linker scripts to `esp-hal-common`, rename as needed

* Update build scripts
2023-11-20 12:25:23 +00:00
Scott Mabin
15f4dad33e
document atomic emulation as breaking (#962)
* document atomic emulation as breaking

* Add build script check for atomic emulation flags without the feature enabled in the hal
2023-11-20 12:12:35 +00:00
Dániel Buga
503eed34b2
Allow accessing xtal and slow clock frequencies (#957) 2023-11-20 08:14:16 +00:00