1104 Commits

Author SHA1 Message Date
Sycrosity
842eb7c92e
Update embassy to its embedded-* v1.0.0 versions (#1076)
* update embassy in Cargo.toml and add embassy-time-driver

* fix embassy-time for esp-hal-common

* update CHANGELOG.md

* fix clippy warning by removing manual adc implimentation for esp32

* undo change, fixing clippy error by removing unused use statement

* remove embassy crates-io patches

* remove a remaining embassy patch

* Update embassy-time version in esp-hal-common/Cargo.toml

Co-authored-by: Scott Mabin <scott@mabez.dev>

* remove the remaining embassy patches

* remove embassy-time as a dependency for esp*-hal

---------

Co-authored-by: Scott Mabin <scott@mabez.dev>
2024-01-16 20:25:22 +00:00
Björn Quentin
a23d6a05a6
Fix stack-top calculation for app-core (#1081)
* Fix stack-top calculation for app-core

* CHANGELOG.md entry
2024-01-15 14:46:34 +00:00
yanshay
0f9e2466ec
Add support for 80Mhz psram, selected using 'psram-80mhz' feature (#1073)
* Add support for 80Mhz psram, selected using 'psram-80mhz' feature

Default stays 40 MHz

* Added changelog regarding 80MHz PSRAM support

* Add 80Mhz support also to octal psram

* Add documentation for 80Mhz psram in lib.rs

* Linker script adjustments needed for wifi drivers (#1074)

* Add `embedded-io` feature to each chip-specific HAL (#1072)

* Add `embedded-io` feature to each chip-specific HAL

* Update `CHANGELOG.md`

* Update to `1.0.0` releases of `embedded-hal-*` packages (#1068)

* Update to `1.0.0` releases of `embedded-hal-*` packages

* Update `CHANGELOG.md`

* Added changelog regarding 80MHz PSRAM support

---------

Co-authored-by: Björn Quentin <bjoernQ@users.noreply.github.com>
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
2024-01-12 14:12:47 +00:00
Torben Hansing
944ce9a33e
Make GPIO4 an InputOutputAnalog pin on ESP32 (#1079)
* Make GPIO4 an InputOutputAnalog pin on ESP32

* Add the change to the CHANGELOG.md

* Use nightly rustfmt to format the file
2024-01-12 13:49:07 +00:00
Jesse Braham
63408cf8a3
Update to 1.0.0 releases of embedded-hal-* packages (#1068)
* Update to `1.0.0` releases of `embedded-hal-*` packages

* Update `CHANGELOG.md`
2024-01-11 14:33:23 +00:00
Jesse Braham
c53f3095ec
Add embedded-io feature to each chip-specific HAL (#1072)
* Add `embedded-io` feature to each chip-specific HAL

* Update `CHANGELOG.md`
2024-01-11 14:03:04 +00:00
Björn Quentin
df1374dd1a
Linker script adjustments needed for wifi drivers (#1074) 2024-01-11 11:04:36 +00:00
Jesse Braham
6afc988f88
Ignore changes to CHANGELOG.md files for the CI workflow (#1070) 2024-01-10 13:47:09 +00:00
Kirill Mikhailov
fdc1dbfa1d
Unify the low-power peripheral names (RTC_CNTL and LP_CLKRST to LPWR) (#1064)
* WIP

* Adjusting to changes in driver

* Adding CHANGELOG entry
2024-01-08 14:00:26 +00:00
Jesse Braham
cf66cc05fc
Move initialization functions into esp-hal-common package's soc module (#1049)
* Move initialization functions into `esp-hal-common` package's `soc` module

* Simplify module paths
2024-01-03 15:38:33 +00:00
Dániel Buga
e9d6a2157a
C6 deep sleep driver MVP (#918)
* Restructure sleep-related files

* Port most of esp-idf deep sleep code

* Add example

* Remove extra newline

* Hide RtcioWakeupSource from esp32 api

* Explain commented constants

---------

Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
2024-01-03 15:14:17 +00:00
Jesse Braham
62ae9dc05c
Add rt-riscv and rt-xtensa features to esp-hal-common (#1057)
* Add `rt-riscv` and `rt-xtensa` features to `esp-hal-common` to allow enabling/disable runtime support

* Update the CI workflow to check the chip-specific HAL packages without default features

* Update `CHANGELOG.md`
2024-01-03 14:24:05 +00:00
liebman
2e2d67f315
correct errata36() for gpio 32 and 33 (#1053)
* correct errata36() for gpio 32 and 33

* update changelog
2023-12-28 07:26:48 +00:00
Juraj Sadel
07b2b0d9ea
Check missing embassy_XX examples to the CI (#1048)
* CI: add missing examples

* H2: remove embassy-time-systick feature from embassy_i2c example
2023-12-20 14:24:15 +00:00
Kamil Koczurek
2b2c001e7a
efuse: allow overriding base mac (#1044)
ESP-IDF defines several kinds of mac addresses, but this doesn't map
well to the esp-hal design, because:
1. This isn't actually required by hardware.
2. Wifi / Ble drivers are external to esp-hal.

Hence this patch only allows overriding the base mac and does not
introduce the concept of other types of mac addresses.
2023-12-20 13:58:31 +00:00
Juraj Sadel
244c74776a
Don't enable async interrupts without async feature (#1042)
* only enable interrupts if the async feature is present

* remove warnings and fmt

* changelog
2023-12-19 16:34:17 +00:00
Björn Quentin
8b01421c8e
Fix/c6 h2 interrupt disabling (#1040)
* Remove debug print

* C6/H2: Fix interrupt disabling

* CHANGELOG.md entry
2023-12-19 13:39:25 +00:00
Björn Quentin
36954e740d
Merge .text_init into .text on RISC-V (#1038)
* Merge `.text_init` into `.text`

* Only merge `init.*` into `.text` for RISC-V
2023-12-18 15:15:59 +00:00
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
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 v0.14.1 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 v0.14.0 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