Commit Graph

243 Commits

Author SHA1 Message Date
Dániel Buga
260c882b08
C6 PMU startup configuration (#974)
* Implement a bunch of missing startup code

* Extract peripheral address retrieval

* Clean up manual register manipulation

* Add missing PMU related setup

* Changelog

* Clean up revision check

* Fix build

* Add note about PMU setup code source

* Use macros to deduplicate hp/lp system setup

* Clean up a bit

* Initialize the correct register in modem_clock_hal_select_wifi_lpclk_source
2023-12-15 16:18:37 +00:00
ripytide
9084d1eeaf
remove double &mut for SetDutyCycle impl on PwmPin (#1033)
* remove double &mut for SetDutyCycle impl on PwmPin

* add entry to changelog
2023-12-15 14:39:56 +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
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
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
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
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
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
Björn Quentin
22f14fd300
Fix ESP32-C6 memory (#997)
* Fix ESP32-C6 memory

* CHANGELOG.md
2023-12-05 10:06:21 +00:00
Scott Mabin
05f9d2109a
Completely remove atomic emulation (#985)
* Completely remove atomic emulation

* changelog
2023-12-04 14:22:15 +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
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
Dániel Buga
4a0af66884
Remove SpiBusDevice and SpiBusController (#978)
* Remove SpiBusDevice and SpiBusController

* Update examples
2023-11-28 08:55:55 +00: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
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
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
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
jneem
5503121bea
Async read implementation for usb serial jtag (#889)
* Async read implementation for usb serial jtag

* Check the example in ci

* Add the example's required features

* Add changelog entry

* Improve the example

* Add examples for other boards

* Fix changelog

* Add required features for examples
2023-11-17 18:26:45 +00:00
Juraj Sadel
4d87e75d71
H2: prepare modem clocks for BLE (#953)
* H2: prepare modem clocks for BLE

* changelog
2023-11-17 11:04:17 +00:00
Dániel Buga
6814822cfd
Decouple default features from esp-hal-common (#867) 2023-11-16 14:09:47 +00:00
Dániel Buga
5a9763aaf7
Only implement __pender if a hal-executor is used (#937) 2023-11-15 00:30:03 -08:00
Jesse Braham
f729f89889
Remove the mcu-boot feature from esp32c3-hal (#938)
* Remove the `mcu-boot` feature from `esp32c3-hal`

* Update `CHANGELOG.md`
2023-11-14 11:49:40 -08:00
Dániel Buga
7084a380a6
Disallow multiple esp-hal-common versions (#934) 2023-11-14 02:31:34 -08:00
Edgar Sousa
957b232413
fix: wrong clear of RMT interrupts (esp-rs/esp-hal#925) (#930) 2023-11-13 14:13:21 +01:00
Björn Quentin
98a52ea808
Re-add API to get a GPIO's interrupt status bit (#929)
* Re-add API to get a GPIO's interrupt status bit

* CHANGELOG.md entry
2023-11-13 14:03:45 +01:00
Dániel Buga
bde317ee69
DMA cleanup (#915) 2023-11-10 13:20:35 +01:00
Dániel Buga
280caad378
RISC-V: Make atomic emulation opt-in (#904)
* RISC-V: Make atomic emulation opt-in

* Update embassy-executor, embassy-sync

* Don't automatically enable portable-atomic

* Update changelog

* Fix warnings
2023-11-10 11:51:47 +00:00
Björn Quentin
c612fecfae
Clear LP/RTC RAM (#916)
* Clear LP_RAM/RTC RAM to make sure .bss is cleared

* Rename `ulp-riscv-hal` to `esp-ulp-riscv-hal`

* CHANGELOG.md entry
2023-11-09 14:06:58 +01:00
Björn Quentin
0659928930
Support inverted pins (#912)
* Support inverted pins

* CHANGELOG.md entry

* Improve docs

* Provide `From`/`Into` for inverted pins
2023-11-09 08:45:13 +01:00
Paul Paterson
594bc65793
Derive Clone and Copy for EspTwaiFrame (#909)
* Derive Clone and Copy for EspTwaiFrame

* Update CHANGELOG.md
2023-11-09 03:36:15 +00:00
Marc-Antoine Manningham
62894e3f84
feat set frequency embedded hal (#880)
* Add SetDutyCycle and PwmPin trait

* Add comments

* Fix method call for esp32c6 and esp32h2

* Add changelog
2023-11-09 03:33:47 +00:00
sanxus
c196b67587
Improve spi master constructor (#901)
* make pins optional for Spi::new (master, full-duplex mode)

* add additional method to setup spi pins (master, full-duplex mode)

* add additional method to setup spi pins (master, half-duplex mode)

* remove generic type parameters for Spi::new

* update documentation

* make `with_pins` could be chained

* update CHANGELOG.md

* update CHANGELOG.md

* make the return value of a method like `with_{*}` owned

* fix (maybe?) all broken examples caused by the change (esp32-hal)

* fix (maybe?) all broken examples caused by the change (esp32c2-hal)

* fix (maybe?) all broken examples caused by the change (esp32c3-hal)

* fix (maybe?) all broken examples caused by the change (esp32c6-hal)

* fix (maybe?) all broken examples caused by the change (esp32h2-hal)

* fix (maybe?) all broken examples caused by the change (esp32s2-hal)

* fix (maybe?) all broken examples caused by the change (esp32s3-hal)

* rerun 'cargo fmt' for esp-hal-common

* rerun 'cargo fmt' for the rest of examples
2023-11-08 12:11:58 +01:00
jneem
aa1fefdc8c
Add more input trait impls for open drain outputs (#905)
* Add more input trait impls for open drain outputs

* Changelog
2023-11-08 12:11:16 +01:00
Björn Quentin
9d0047f4d6
Configurable LP Core clock (#907)
* Configurable LP Core clock

* CHANGELOG.md entry
2023-11-07 17:03:03 +00:00
Scott Mabin
fb31f868f1
Remove direct boot support from esp-hal (#903)
* Remove direct boot support from esp-hal

* changelog
2023-11-07 14:34:46 +00:00
Dániel Buga
780a7f5e4a
Fix us waits in embassy hanging (#906)
* Remove unused field from AlarmState

* Clean up non-idiomatic code

* Simplify timg0 time driver

* Better explain instant firing, hide fn, re-add check

* Add changelog entry
2023-11-07 14:34:14 +00:00
Dániel Buga
111d00617f
S3: Fix the number of GPIO pins (#898) 2023-11-03 08:26:58 +01:00