Sergio Gasquez Arcos
06a15807e3
Fix C-METADATA violations ( #2874 )
...
* fix: C-METADATA violations of esp-hal
* feat: Normalize keyword and categories for most of the pacakges
2025-01-02 09:44:27 +00:00
Anthony Grondin
0f384992cf
Update smoltcp to 0.12.0 and embassy-net to 0.5.0 ( #2849 )
...
* chore: Update smoltcp to `0.12.0` and embassy-net to `0.5.0`
* Add CHANGELOG entry
* Remove `wifi_dhcp_smoltcp_nal.rs` example
`smoltcp-nal`, a core dependency on which this example depends on doesn't receive the desired amount of maintainability needed to keep up to date with new dependencies releases.
2025-01-02 09:41:31 +00:00
Björn Quentin
36095e447e
Hide Info,State,Instance ( #2856 )
...
* Hide Info,State,Instance
* Fix lp_gpio macro
* Fix visibility
2024-12-23 13:57:31 +00:00
Dániel Buga
c2de8a1859
Mark SPI slave as unstable ( #2853 )
2024-12-20 15:23:29 +00:00
Juraj Sadel
b9ebeb1809
Solve unstable inconsistencies in SPI master driver ( #2852 )
...
* Solve unstable unconsistencies in SPI master driver
* Mark Command, Address, and DataMode unstable as well
2024-12-20 14:49:59 +00:00
Kirill Mikhailov
8b16365c2d
Make ConfigError enum follow naming convention ( #2855 )
...
* Make `ConfigError` follow naming convention
* changelog entry
* !(changelog entry)
2024-12-20 14:36:54 +00:00
Kirill Mikhailov
62c72947dd
Multiple API fixes in UART driver ( #2851 )
...
* Close a number of issues
doctest update
fmt
* changelog entry
* dumb
* addressing reviews
* Add an entry to migration guide
2024-12-20 14:01:11 +00:00
Kirill Mikhailov
286219707c
I2C: Prefer compile-time checks over runtime checks where possible, prefer a fallible API over panics. ( #2831 )
...
* I2C module improvements (raw)
* fmt
* dumb
dumb2
dumb 3
dumb 4
dumb 5
* re-use `ExceedingFifo` instead of new `ExceedingTransactionSize` error
* changelog entry
* address reviews
* rebase
* dumb 6
* rebase
...
2024-12-20 13:18:28 +00:00
Dániel Buga
d66e153686
Remove Pin::gpio_bank ( #2850 )
2024-12-20 12:33:10 +00:00
Dániel Buga
7f8af8a651
Remove prelude ( #2845 )
...
* Remove prelude
* Changelog
2024-12-20 10:24:57 +00:00
C2D
2e6a95ac99
Add SpiDmaBus::split for moving between manual & automatic DMA buffers ( #2824 )
...
* Allow swapping dma buffers
* Deconstruct makes more sense
* Format
* Changelog
* Race-conditioned
* Change SpiDmaBus::deconstruct name to SpiDmaBus::split
* Add flush & bracket references
* Fix mutability
* Fix name of generic param
---------
Co-authored-by: ferris <ferris@devdroplets.com>
Co-authored-by: Dániel Buga <bugadani@gmail.com>
2024-12-20 09:23:33 +00:00
Björn Quentin
5c30c925ca
Make more SPI interrupts available ( #2833 )
...
* Make more SPI interrupts available
* CHANGELOG.md
* SPI interrupts for ESP32/ESP32-S2
* Fix
* Don't offer error interrupts
* Change doc wording
* Renaming
* Rebase fun
---------
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
2024-12-20 07:54:58 +00:00
Scott Mabin
f83ab23f04
Avoid abbreviations in API ( #2844 )
...
* Avoid abbreviations in API
* changelog/migration
2024-12-19 14:39:40 +00:00
C2D
f1c372f250
Fix SpiDmaBus write impl ( #2843 )
...
* Fix SpiDmaBus write impl
* Add hil test for SpiDmaBus::{read,write}
---------
Co-authored-by: ferris <ferris@devdroplets.com>
2024-12-19 13:57:21 +00:00
Dániel Buga
151e66c3b3
Implement missing traits on GPIO types ( #2842 )
2024-12-19 11:31:54 +00:00
Dániel Buga
a3b3547212
Implement some missing traits ( #2823 )
2024-12-19 10:58:49 +00:00
Jesse Braham
1fff464b66
Derive common traits for various types in uart and i2c drivers ( #2825 )
...
* Derive `Eq` for `uart::ConfigError`
* Derive common traits in `i2c::master` module for various types
* Update `CHANGELOG.md`
* Implement `Display` and `Error` traits for I2C/UART error types
* Remove `PartialEq` and `Eq` derives from I2C driver
2024-12-19 10:10:30 +00:00
Jesse Braham
036d08e09f
Annotate builder functions with #[must_use] ( #2841 )
2024-12-19 10:10:23 +00:00
Dániel Buga
cde6169d6d
Walk back on PartialEq/Eq ( #2834 )
2024-12-19 09:00:35 +00:00
Sergio Gasquez Arcos
d4386adfc7
Rename Spi enums ( #2828 )
...
* feat: Rename Spi enums
* docs: Update changelog
* feat: Rename crate::Mode to crate::DriverMode
* docs: Udpate changelog
* feat: Rename DM type parameter to Dm for ECC
* style: rustfmt
* feat: Rename crate::Mode to crate::DriverMode
2024-12-19 08:41:59 +00:00
Dániel Buga
97598968eb
GPIO: prevent woken task interrupting GPIO handler ( #2838 )
...
* Clear interrupt bit before allowing waker to wake a task
* Add test
2024-12-19 07:53:48 +00:00
Dániel Buga
b8f15f0a8b
Refine API-GUIDELINES recommendations ( #2832 )
...
* Refine C-COMMON-TRAITS recommendations
* Recommend deriving Error
* Clarify that Instance, State and Info are private implementation details at this point
2024-12-19 07:08:25 +00:00
Dániel Buga
f2b958b501
Convert into c_char ( #2837 )
2024-12-18 18:59:28 +00:00
Dániel Buga
f7c1bdbfc5
Implement Hash and defmt::Format for InterruptHandler ( #2830 )
2024-12-18 16:27:27 +00:00
Scott Mabin
78c63a7a0f
fix link to esp-wifi self hosted docs ( #2836 )
2024-12-18 14:43:38 +00:00
Dániel Buga
af8eaea1e3
Pin 1.83.0.1 in CI ( #2835 )
2024-12-18 12:29:48 +00:00
Juraj Sadel
1684ba10f0
Rename TOUCHMODE to Tm ( #2829 )
2024-12-18 08:37:09 +00:00
Dániel Buga
2ca1545b50
SPI: Implement interrupt-driven transfer_in_place_async ( #2691 )
...
* Implement transfer_async
* The start of our shiny future
* Add State
* Wake from interrupt
* Rename and remove return value
* Fix register write
* Fix S2
* Rename traits
* Async flushes
* Flush before async operations
* Fix comments
* Rename start fn, place async handler in RAM
* Explicitly stop listening before async operations
2024-12-18 07:32:12 +00:00
Frostie314159
f990957f21
Updated PACs and made Wi-Fi non virtual on the ESP32. ( #2822 )
2024-12-17 16:54:51 +00:00
Juraj Sadel
d9f1e9a53f
Rename DM type parameter to Dm ( #2821 )
...
* Rename DM type parameter to Dm
* Rename M, DmaMode, MODE type parameters to Dm
* fmt
2024-12-17 16:49:23 +00:00
Scott Mabin
85d30e9816
Updates for Xtensa enabled 1.83 compiler ( #2615 )
...
* test ci
* fix ci with new compiler
* god bless clippy fix
* refmuts
* clippy
* tests work
* use new compiler
* use new compiler
* bump MSRV of esp-hal and crates that depend on esp-hal
* fix eyesore
* clippy again
* remove hardcoded compiler version
* bump rust-version as well
* note MSRV bump in changelog
2024-12-17 15:02:03 +00:00
Dániel Buga
a12e7fece1
Fix WIFI_EVENT ( #2817 )
...
* Fix WIFI_EVENT
* Update esp-wifi/src/common_adapter/mod.rs
Co-authored-by: Dominic Fischer <14130965+Dominaezzz@users.noreply.github.com>
---------
Co-authored-by: Dominic Fischer <14130965+Dominaezzz@users.noreply.github.com>
2024-12-16 11:53:45 +00:00
Dániel Buga
bc0bedd628
Add priority-limited locks ( #2684 )
...
* Add priority-limited locks
* Rename to RawMutex, only provide lock() publicly
* Explode implementation and move into the interrupt module
2024-12-16 08:39:42 +00:00
Juraj Sadel
3a03dd88c7
Prefer line comments // over block comments /* */ ( #2738 )
...
* Prefer line comments // over block comments /* */
* esp-wifi: Prefer line comments // over block comments /* */
* Mention in our API guideline that // should be prefered over /* */
2024-12-12 15:53:38 +00:00
Dániel Buga
cc4e527eaf
Fix async USB OTG-FS driver ( #2742 )
...
* Use unwrap macro
* Clean up reset
* Better replicate synopsys init
* Fix indentation
* Clean up constructor
* Initialize before poll
* Remove prefix
* Keep the Usb PeripheralGuard around
* Remove example addition
2024-12-12 13:16:32 +00:00
Kaspar Schleiser
d66281609b
esp-hal: otg_fs: drop obsolete late cnak quirk ( #2621 )
...
* esp-hal: otg_fs: drop obsolete late cnak quirk
* build: bump embassy-usb-synopsys-otg to 0.2.0
2024-12-11 23:49:16 +00:00
Björn Quentin
62994578c2
Fix qa-test build.rs ( #2722 )
...
* Fix qa-test build.rs
* Once is enough
2024-12-10 15:32:29 +00:00
Dániel Buga
35d3ed301c
Clean the correct bit ( #2721 )
2024-12-10 14:09:11 +00:00
Dániel Buga
273fdc0928
ESP32-S2: implement CryptoDMA for AES ( #2699 )
...
* Changelog
* Split up PDMA into modules
* Add CryptoDMA implementation
* Move file
* Import SELECT only in the function where we use it
---------
Co-authored-by: Juraj Sadel <juraj.sadel@espressif.com>
2024-12-10 13:02:20 +00:00
Dániel Buga
3cc8d611bd
Update PACs ( #2719 )
2024-12-10 11:23:52 +00:00
Jesse Braham
f6126502ae
Actually use a random seed in Wi-Fi examples ( #2718 )
2024-12-10 11:02:05 +00:00
Dániel Buga
d2f15d69d7
Fix signal fn recommendation ( #2692 )
2024-12-06 13:36:20 +00:00
Dániel Buga
5135965116
Hide most of the unstable peripherals ( #2667 )
...
* Hide most of the unstable peripherals
* Lint with correct toolchain, lint with unstable enabled
* Require unstable feature and lint using it
* Auto-lint xtensas with esp toolchain
* Fix msrv and ieee802154
* Add feature to examples
* Don't require building ieee802154 for all examples
* Mark modules in documentation
2024-12-06 11:03:56 +00:00
Dániel Buga
6b01f7993b
SPI and related changes ( #2681 )
...
* Define Octal SpiDataMode
* Fix BitOrder capitalization
* Hide DmaError
* Derive more traits
* Return error for unsupported half-duplex parameter combinations
* Remove unnecessary implementation detail
* Return error instead of silently breaking transaction
* Downgrade assert to debug_assert
* Expand on the enum variants
* Remove redundant imports
* Hide some unstable functions
2024-12-06 10:30:43 +00:00
Jesse Braham
d86a079ea9
Seal the PeripheralInput and PeripheralOutput traits ( #2690 )
...
* Seal the `PeripheralInput` and `PeripheralOutput` traits
* Update `CHANGELOG.md`
2024-12-06 09:13:39 +00:00
Dániel Buga
9458fd3ed4
[DMA 8/8] Burst configuration ( #2543 )
...
* Implement burst configuration
* Reject transfers if the DMA in incapable of accessing external memory
* Fix psram
* Rename, documentation
* Address a few review comments
* Check buffer length, too
* Return error instead of panic
* Allow users to only specify the relevant burst config
* Add missing conversion
* Add missing docs
* Fix IN alignment requirements
* Fix test
* Deduplicate chunk size literal
2024-12-06 08:30:58 +00:00
Dániel Buga
2d4ccd735f
Prevent creating GpioPin ( #2688 )
2024-12-06 06:20:49 +00:00
Dániel Buga
b4379b8518
Auto-implement Debug, PartialEq and defmt::Format for peripherals ( #2682 )
2024-12-05 13:33:12 +00:00
Jesse Braham
b26b31f1ce
Mention that config structs should derive procmacros::BuilderLite in the API guidelines ( #2686 )
2024-12-05 13:23:09 +00:00
Tommaso Clini
dfa96820f0
DHCP support added to wifi embassy access point example ( #2683 )
...
* added dhcp to access point example, also GW IP is configure from environment as shown in Cargo.toml
* changelog entry
* Revert "changelog entry"
This reverts commit 3412d1c194 .
* default gateway IP in case env IP isn't provided
* dhcp server runs in a loop so that it will restart on an error
2024-12-05 11:22:36 +00:00